mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
- New Java bindings - Allow disabling exceptions with set_exceptions_enabled - Configurable tolg tolerance parameter for Luksan gradient stopping condition - Restored LD_LBFGS_NOCEDAL enum value (dropped in 2.9) to ease backwards compatibility for wrappers in other languages (though this algorithm is currently unimplemented) Changelog: https://github.com/stevengj/nlopt/blob/master/NEWS.md#nlopt-210 PR: 284934 Reported by: portscout, Repology
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
PORTNAME= nlopt
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.10.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= ${PYNUMPY} \
|
|
swig:devel/swig
|
|
full_RUN_DEPENDS= ${PYNUMPY}
|
|
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 test': 100% tests passed, 0 tests failed out of 83
|
|
CMAKE_TESTING_ON= NLOPT_TESTS
|
|
|
|
.if ${FLAVOR} == full
|
|
USES+= guile:3.0,alias localbase 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
|
|
PLIST= ${PKGDIR}/pkg-plist.${FLAVOR}
|
|
.elif ${FLAVOR} == minimal
|
|
CMAKE_OFF= NLOPT_GUILE NLOPT_JAVA NLOPT_PYTHON NLOPT_SWIG
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|