# Created by: thierry@pompo.net # $FreeBSD: head/math/zn_poly/Makefile 533987 2020-05-04 20:47:51Z thierry $ PORTNAME= zn_poly PORTVERSION= 0.9.2 CATEGORIES= math MASTER_SITES= https://gitlab.com/sagemath/${PORTNAME}/-/archive/${PORTVERSION}/ MAINTAINER= thierry@FreeBSD.org COMMENT= C library for polynomial arithmetic LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING LIB_DEPENDS= libgmp.so:math/gmp USES= gmake python:build tar:bz2 OPTIONS_DEFINE= DOCS HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix="${STAGEDIR}${PREFIX}" \ --cppflags="${CPPFLAGS}" \ --cflags="${CFLAGS} -fPIC" \ --cxxflags="${CXXFLAGS}" \ --ldflags="${LDFLAGS}" \ --gmp-prefix="${LOCALBASE}" MAKEFILE= makefile ALL_TARGET= all libzn_poly.so USE_LDCONFIG= yes TEST_TARGET= check .if defined(PACKAGE_BUILDING) CONFIGURE_ARGS+=--disable-tuning .endif pre-configure: ${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' \ ${WRKSRC}/${CONFIGURE_SCRIPT} post-install: ${INSTALL_PROGRAM} ${WRKSRC}/libzn_poly-${PORTVERSION}.so \ ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION}.so.0.0.0 ${RLN} ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION}.so.0.0.0 \ ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION:R}.so.0 ${RLN} ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION}.so.0.0.0 \ ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION:R}.so .include