1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/math/py-libpoly/Makefile

39 lines
909 B
Makefile

# $FreeBSD$
PORTNAME= libpoly
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.8
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 localbase:ldflags python
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
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/polypy.so
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>