1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/science/py-dlib/Makefile

55 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= dlib
DISTVERSION= 19.21
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} \
libpng.so:graphics/png
USES= compiler:c++11-lang pkgconfig python:3.6+ shebangfix \
tar:bzip2
USE_PYTHON= autoplist distutils
SHEBANG_FILES= python_examples/*.py
OPTIONS_DEFINE= X11 JPEG GIF SQLITE BLASLAPACK AVX
OPTIONS_DEFAULT= X11 JPEG GIF SQLITE
BLASLAPACK_DESC= Use Blas and Lapack libraries from ports
AVX_DESC= Use AVX instructions if supported by CPU
X11_USES= xorg
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_OFF= avxargs="--no USE_AVX_INSTRUCTIONS"
PYDISTUTILS_BUILDARGS= --set BOOST_PYTHON_SUFFIX:STRING=${PYTHON_SUFFIX} ${X11ARGS} ${JPEGARGS} ${PNGARGS} ${GIFARGS} ${SQLITEARGS} ${BLASLAPACKARGS} ${AVXARGS} ${BLASLAPACK}
PLIST_SUB= PYTHON2="@comment " PYTHON3=""
.include <bsd.port.mk>