PORTNAME= nlopt DISTVERSION= 2.7.1.2 CATEGORIES= math #MASTER_SITES= PYPI # https://github.com/DanielBok/nlopt-python/issues/15 PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Nonlinear optimization library WWW= https://github.com/DanielBok/nlopt-python LICENSE= LGPL21 MIT LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= cmake:devel/cmake-core \ swig:devel/swig \ ${PYNUMPY} RUN_DEPENDS= ${PYNUMPY} USES= python USE_PYTHON= distutils # autoplist is broken, see https://github.com/DanielBok/nlopt-python/issues/17 USE_GITHUB= yes GH_ACCOUNT= DanielBok GH_PROJECT= nlopt-python GH_TUPLE= stevengj:nlopt:7a7587e:nlopt/extern/nlopt #CMAKE_ARGS= -DFREEBSD_PYTHON_VER=${PYTHON_VER} MAKE_ENV= FREEBSD_PYTHON_VER=${PYTHON_VER} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/nlopt/_nlopt${PYTHON_EXT_SUFFIX}.so do-test: @${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${FILESDIR}/example.py .include