36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
|
# 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
|
||
|
}
|
||
|
}
|