git: 7c6de6cb9652 - main - math/nlopt: Flavorize in full and minimize
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Jan 2024 19:40:59 UTC
The branch main has been updated by rhurlin: URL: https://cgit.FreeBSD.org/ports/commit/?id=7c6de6cb9652c5af4852ace681208646b93ed716 commit 7c6de6cb9652c5af4852ace681208646b93ed716 Author: Alexey Dokuchaev <danfe@freebsd.org> AuthorDate: 2024-01-24 19:27:31 +0000 Commit: Rainer Hurling <rhurlin@FreeBSD.org> CommitDate: 2024-01-24 19:32:20 +0000 math/nlopt: Flavorize in full and minimize - full: Complete installation as before [default] - minimum: No NumPy and Guile2 support, mainly C++ --- math/nlopt/Makefile | 27 +++++++++++++++++++-------- math/nlopt/pkg-plist | 4 ---- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/math/nlopt/Makefile b/math/nlopt/Makefile index 7f2b6edbb997..eeb959b8d964 100644 --- a/math/nlopt/Makefile +++ b/math/nlopt/Makefile @@ -1,7 +1,7 @@ PORTNAME= nlopt DISTVERSIONPREFIX= v DISTVERSION= 2.7.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MAINTAINER= rhurlin@FreeBSD.org @@ -15,15 +15,26 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_armv6= fails to package: Unable to access file site-packages/_nlopt.a:No such file or directory BROKEN_armv7= fails to package: Unable to access file site-packages/_nlopt.a:No such file or directory -BUILD_DEPENDS= swig:devel/swig \ - ${PYNUMPY} -RUN_DEPENDS= ${PYNUMPY} - -USES= cmake:testing compiler:features guile:2.2,alias,conflicts \ - localbase pathfix pkgconfig python - +USES= cmake:testing USE_GITHUB= yes GH_ACCOUNT= stevengj USE_LDCONFIG= yes +FLAVORS= full minimal + +.if ${FLAVOR:U} == minimal +PKGNAMESUFFIX= -${FLAVOR} +CMAKE_OFF= NLOPT_GUILE NLOPT_PYTHON NLOPT_SWIG +CONFLICTS_INSTALL= ${PORTNAME} +.else +USES+= guile:2.2,alias localbase pkgconfig python +BUILD_DEPENDS= swig:devel/swig ${PYNUMPY} +RUN_DEPENDS= ${PYNUMPY} +CONFLICTS_INSTALL= ${PORTNAME}-minimal +PLIST_FILES= lib/guile/2.2/extensions/nlopt_guile.so \ + ${PYTHON_SITELIBDIR}/_nlopt.so \ + ${PYTHON_SITELIBDIR}/nlopt.py \ + ${GUILE_SITE_DIR}/nlopt.scm +.endif + .include <bsd.port.mk> diff --git a/math/nlopt/pkg-plist b/math/nlopt/pkg-plist index cb367a91b99d..e54a29a5e4e9 100644 --- a/math/nlopt/pkg-plist +++ b/math/nlopt/pkg-plist @@ -5,14 +5,10 @@ lib/cmake/nlopt/NLoptConfig.cmake lib/cmake/nlopt/NLoptConfigVersion.cmake lib/cmake/nlopt/NLoptLibraryDepends-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/nlopt/NLoptLibraryDepends.cmake -lib/guile/2.2/extensions/nlopt_guile.so lib/libnlopt.so lib/libnlopt.so.0 lib/libnlopt.so.0.11.1 -%%PYTHON_SITELIBDIR%%/_nlopt.so -%%PYTHON_SITELIBDIR%%/nlopt.py libdata/pkgconfig/nlopt.pc share/man/man3/nlopt.3.gz share/man/man3/nlopt_minimize.3.gz share/man/man3/nlopt_minimize_constrained.3.gz -share/guile/site/2.2/nlopt.scm