mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
d892e08344
To be used by SageMath.
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: thierry@pompo.net
|
|
# $FreeBSD$
|
|
|
|
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 <bsd.port.mk>
|