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