b812f09509
- New CCSA and MMA parameters inner_gradients and always_improve - Various minor bugfixes Changelog: https://github.com/stevengj/nlopt/compare/v2.10.1...v2.11.0 Reported by: portscout, Repology
54 lines
1.8 KiB
Makefile
54 lines
1.8 KiB
Makefile
PORTNAME= nlopt
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.11.0
|
|
CATEGORIES= math
|
|
|
|
MAINTAINER= rhurlin@FreeBSD.org
|
|
COMMENT= Nonlinear optimization library
|
|
WWW= https://nlopt.readthedocs.io/ \
|
|
https://github.com/stevengj/nlopt/
|
|
|
|
LICENSE= LGPL21 MIT
|
|
LICENSE_COMB= multi
|
|
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
|
|
|
|
FLAVORS= full minimal
|
|
FLAVOR?= ${FLAVORS:[1]}
|
|
|
|
full_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \
|
|
swig:devel/swig
|
|
full_LIB_DEPENDS= liboctave.so:math/octave
|
|
full_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
|
|
full_CONFLICTS_INSTALL= ${PORTNAME}-minimal
|
|
minimal_PKGNAMESUFFIX= -minimal
|
|
minimal_CONFLICTS_INSTALL= ${PORTNAME}
|
|
|
|
USES= cmake:testing
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= stevengj
|
|
USE_LDCONFIG= yes
|
|
|
|
# 'make FLAVOR=full test': 100% tests passed, 0 tests failed out of 84
|
|
# 'make FLAVOR=minimal test': 100% tests passed, 0 tests failed out of 77
|
|
CMAKE_TESTING_ON= NLOPT_TESTS
|
|
|
|
.if ${FLAVOR} == full
|
|
USES+= guile:3.0,alias localbase octave:env pkgconfig python
|
|
# Because guile-config-3.0 crashes, nlopt avoids this by using
|
|
# files/patch-cmake_FindGuile.cmake and setting GUILE_EXECUTABLE
|
|
# and GUILE_CONFIG_EXECUTABLE
|
|
MAKE_ENV+= GUILE_EXECUTABLE=${PREFIX}/bin/guile-3.0 \
|
|
GUILE_CONFIG_EXECUTABLE=${PREFIX}/bin/guile-config-3.0
|
|
CMAKE_OFF= NLOPT_JAVA
|
|
GNU_HOST= ${ARCH}-portbld-freebsd${OSREL}
|
|
PLIST= ${PKGDIR}/pkg-plist.${FLAVOR}
|
|
PLIST_SUB= GNU_HOST=${GNU_HOST} OCTAVE_VERSION=${OCTAVE_VERSION}
|
|
.elif ${FLAVOR} == minimal
|
|
CMAKE_OFF= NLOPT_GUILE NLOPT_JAVA NLOPT_OCTAVE NLOPT_PYTHON NLOPT_SWIG
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|