1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/science/dlib-cpp/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

52 lines
1.3 KiB
Makefile

PORTNAME= dlib
DISTVERSION= 19.22
CATEGORIES= science devel math
MASTER_SITES= http://dlib.net/files/
PKGNAMESUFFIX= -cpp
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Machine learning framework written in C++
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/dlib/LICENSE.txt
USES= cmake compiler:c++11-lang pkgconfig tar:bzip2
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
OPTIONS_DEFINE= X11 JPEG PNG GIF SQLITE BLASLAPACK PYTHON 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
PYTHON_DESC= Add dependency on science/py-dlib
X11_USES= xorg
X11_USE= xorg=ice,sm,x11,xext
X11_CMAKE_OFF= -DDLIB_NO_GUI_SUPPORT=1
JPEG_USES= jpeg
JPEG_CMAKE_BOOL= DLIB_JPEG_SUPPORT
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CMAKE_BOOL= DLIB_PNG_SUPPORT
GIF_LIB_DEPENDS= libgif.so:graphics/giflib
GIF_CMAKE_BOOL= DLIB_GIF_SUPPORT
SQLITE_USES= sqlite
SQLITE_CMAKE_BOOL= DLIB_LINK_WITH_SQLITE3
BLASLAPACK_USES= blaslapack:openblas
BLASLAPACK_CMAKE_OFF= -DDLIB_USE_BLAS=0 -DDLIB_USE_LAPACK=0 -DDLIB_USE_MKL_FFT=0
# for PYTHON_PKGNAMEPREFIX
PYTHON_USES= python
PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dlib>=0:science/py-dlib@${PY_FLAVOR}
PYTHON_NO_DEPENDS= yes
AVX_CMAKE_BOOL= USE_AVX_INSTRUCTIONS
.include <bsd.port.mk>