git: 2f991d8acb0c - main - science/py-dlib: Use more system dependencies
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 08 Jun 2025 11:03:37 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2f991d8acb0c6c7855ac1255373e5922e0d128cc
commit 2f991d8acb0c6c7855ac1255373e5922e0d128cc
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-06-08 10:56:53 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-06-08 11:03:31 +0000
science/py-dlib: Use more system dependencies
PR: 287377
---
science/py-dlib/Makefile | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/science/py-dlib/Makefile b/science/py-dlib/Makefile
index d32d7c528d13..18631607cec6 100644
--- a/science/py-dlib/Makefile
+++ b/science/py-dlib/Makefile
@@ -1,5 +1,6 @@
PORTNAME= dlib
DISTVERSION= 20.0.0
+PORTREVISION= 1
CATEGORIES= science devel math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,8 +16,8 @@ LIB_DEPENDS= ${PY_BOOST} \
libpng.so:graphics/png \
libgif.so:graphics/giflib
-USES= cmake:indirect compiler:c++11-lang pkgconfig python shebangfix \
- sqlite xorg
+USES= cmake:indirect compiler:c++11-lang jpeg pkgconfig python \
+ shebangfix sqlite xorg
USE_PYTHON= autoplist distutils
USE_XORG= ice sm x11 xext
SHEBANG_FILES= python_examples/*.py
@@ -28,7 +29,10 @@ BLASLAPACK_DESC= Use OpenBLAS for matrix operations
BLASLAPACK_USES= blaslapack:openblas
BLASLAPACK_VARS_OFF= blaslapackargs="--no DLIB_USE_BLAS --no DLIB_USE_LAPACK"
-PYDISTUTILS_BUILDARGS= --set BOOST_PYTHON_SUFFIX:STRING=${PYTHON_SUFFIX} ${X11ARGS} ${JPEGARGS} ${PNGARGS} ${GIFARGS} ${SQLITEARGS} ${BLASLAPACKARGS} ${AVXARGS} ${BLASLAPACK}
+PYDISTUTILS_BUILDARGS= --set BOOST_PYTHON_SUFFIX:STRING=${PYTHON_SUFFIX} ${BLASLAPACKARGS}
+
+post-extract:
+ ${FIND} ${WRKSRC}/dlib/external -d 1 -not -name pybind11 -exec rm -rf {} +
# due to a build system bug the code gets recompiled twice during "build" and "stage"
do-build: