mirror of
https://git.freebsd.org/ports.git
synced 2025-05-08 13:28:48 -04:00
Any missed ports, feel free to bump. Any ports that need setuptools at runtime can have the devel/py-setuptools manually added back to RUN_DEPENDS, but understand that this practice is deprecated; see CHANGES for details.
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
PORTNAME= nlopt
|
|
DISTVERSION= 2.9.0
|
|
PORTREVISION= 1
|
|
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} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
|
|
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:75dd16e:nlopt/extern/nlopt
|
|
|
|
#CMAKE_ARGS= -DFREEBSD_PYTHON_VER=${PYTHON_VER}
|
|
MAKE_ENV= FREEBSD_PYTHON_VER=${PYTHON_VER}
|
|
|
|
xpost-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/nlopt/_nlopt.so
|
|
|
|
do-test:
|
|
@${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${FILESDIR}/example.py
|
|
|
|
.include <bsd.port.mk>
|