blob: 065f3975ab2506dda2606e5bdf2eb426271e0301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $FreeBSD$
PORTNAME= dlib
DISTVERSION= 19.17
PORTREVISION= 1
CATEGORIES= science devel math python
MASTER_SITES= http://dlib.net/files/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Machine learning framework written in C++ (python bindings)
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/dlib/LICENSE.txt
BUILD_DEPENDS= cmake:devel/cmake
LIB_DEPENDS= ${PY_BOOST}
USES= compiler:c++11-lang pkgconfig python shebangfix \
tar:bzip2
USE_PYTHON= autoplist distutils
SHEBANG_FILES= python_examples/*.py
OPTIONS_DEFINE= X11 JPEG PNG GIF SQLITE BLASLAPACK AVX
OPTIONS_DEFAULT= X11 JPEG PNG GIF SQLITE
BLASLAPACK_DESC= Use Blas and Lapack libraries from ports
AVX_DESC= Use AVX instructions if supported by CPU
X11_USE= xorg=x11
JPEG_USES= jpeg
JPEG_VARS_OFF= jpegargs="--no DLIB_JPEG_SUPPORT"
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_VARS_OFF= pngargs="--no DLIB_PNG_SUPPORT"
GIF_LIB_DEPENDS= libgif.so:graphics/giflib
GIF_VARS_OFF= gifargs="--no DLIB_GIF_SUPPORT"
SQLITE_USES= sqlite
SQLITE_VARS_OFF= sqliteargs="--no DLIB_LINK_WITH_SQLITE3"
BLASLAPACK_USES= blaslapack
BLASLAPACK_VARS_OFF= blaslapackargs="--no DLIB_USE_BLAS --no DLIB_USE_LAPACK --no DLIB_USE_MKL_FFT"
AVX_VARS= avxargs="--yes USE_AVX_INSTRUCTIONS"
AVX_VARS_OFF= avxargs="--no USE_AVX_INSTRUCTIONS"
PYDISTUTILS_BUILDARGS= --set BOOST_PYTHON_SUFFIX:STRING=${PYTHON_SUFFIX} ${X11ARGS} ${JPEGARGS} ${PNGARGS} ${GIFARGS} ${SQLITEARGS} ${BLASLAPACKARGS} ${AVXARGS} ${BLASLAPACK}
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/dlib.so
.include <bsd.port.mk>
|