parent
89f54ff0d8
commit
3b42d1cc0d
2 changed files with 36 additions and 0 deletions
1
srcpkgs/dlib-devel
Symbolic link
1
srcpkgs/dlib-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
dlib
|
35
srcpkgs/dlib/template
Normal file
35
srcpkgs/dlib/template
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Template file for 'dlib'
|
||||
pkgname=dlib
|
||||
version=19.20
|
||||
revision=1
|
||||
build_style=cmake
|
||||
configure_args="-DBUILD_SHARED_LIBS=ON"
|
||||
makedepends="libjpeg-turbo-devel libpng-devel zlib-devel
|
||||
$(vopt_if openblas openblas-devel) $(vopt_if x11 libX11-devel)"
|
||||
short_desc="Modern C++ toolkit containing machine learning algorithms and tools"
|
||||
maintainer="Felix Hanley <felix@userspace.com.au>"
|
||||
license="BSL-1.0"
|
||||
homepage="http://dlib.net"
|
||||
distfiles="https://github.com/davisking/${pkgname}/archive/v${version}.tar.gz"
|
||||
checksum=fc3f0986350e8e53aceadf95a71d2f413f1eedc469abda99a462cb528741d411
|
||||
|
||||
build_options="openblas x11"
|
||||
desc_option_openblas="Enable OpenBlas for performance"
|
||||
desc_option_x11="Enable X11 for GUI components"
|
||||
build_options_default="openblas x11"
|
||||
|
||||
post_extract() {
|
||||
# don't prefer bundled libs
|
||||
rm -rf ./dlib/external
|
||||
}
|
||||
|
||||
dlib-devel_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/lib/cmake
|
||||
vmove usr/lib/pkgconfig
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue