# $FreeBSD: head/science/dlib-cpp/Makefile 553954 2020-11-03 08:03:19Z arrowd $ PORTNAME= dlib DISTVERSION= 19.21 PORTREVISION= 1 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 # uses gcc until https://reviews.freebsd.org/D11482 lands BLASLAPACK_USE= gcc=yes BLASLAPACK_USES= blaslapack:openblas fortran 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