diff options
Diffstat (limited to 'math/py-libpoly/Makefile')
-rw-r--r-- | math/py-libpoly/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/math/py-libpoly/Makefile b/math/py-libpoly/Makefile new file mode 100644 index 000000000000..537d19a1d277 --- /dev/null +++ b/math/py-libpoly/Makefile @@ -0,0 +1,35 @@ +# $FreeBSD$ + +PORTNAME= libpoly +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.7 +CATEGORIES= math +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python binding for libpoly + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENCE + +LIB_DEPENDS= libpoly.so:math/libpoly + +USES= cmake:outsource localbase:ldflags python:2.7 +USE_GITHUB= yes +GH_ACCOUNT= SRI-CSL +USE_LDCONFIG= yes +USE_PYTHON= distutils autoplist + +CFLAGS+= -I${WRKSRC}/include +LDFLAGS+= -lpoly + +BUILD_WRKSRC= ${WRKSRC}/python +INSTALL_WRKSRC= ${WRKSRC}/python + +do-build: + @cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_BUILD_TARGET} ${PYDISTUTILS_BUILDARGS} + +do-install: + @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_INSTALL_TARGET} ${PYDISTUTILS_INSTALLARGS} + +.include <bsd.port.mk> |