1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/math/e-antic/Makefile
Charlie Li 9a80a6ee5e
devel/py-setuptools: convert individual consumers to ${PY_SETUPTOOLS}
Currently a no-op, but in the future outputs the correct setuptools
port depending on whether USES_PYTHON=distutils is specified.

With hat: python
PR: 270510, 270358
2023-07-17 20:53:09 -04:00

61 lines
1.7 KiB
Makefile

PORTNAME= e-antic
DISTVERSION= 1.2.1
PORTREVISION= 3
#MASTER_SITES= https://www.labri.fr/perso/vdelecro/e-antic/
CATEGORIES= math
MAINTAINER= thierry@FreeBSD.org
COMMENT= Real Embedded Algebraic Number Theory In C
WWW= https://github.com/flatsurf/e-antic
LICENSE= GPLv3 LGPL3
LICENSE_COMB= dual
BUILD_DEPENDS= ${PY_SETUPTOOLS}
LIB_DEPENDS= libarb.so:math/arb \
libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
libantic.so:math/antic \
libflint.so:math/flint2 \
libbenchmark.so:devel/benchmark \
libboost_thread.so:devel/boost-libs
USES= autoreconf compiler:c++11-lang gmake libtool localbase \
python
USE_GITHUB= yes
ANTIC_TAG= f4e8a60
CATCH_TAG= ff349a5
CEREAL_TAG= ebef1e9
FLINT_TAG= ae7ec89
GH_ACCOUNT= flatsurf catchorg:c1 USCiLab:c2 wbhart:f
GH_PROJECT= ${PORTNAME} antic:a Catch2:c1 cereal:c2 flint2:f
GH_TAGNAME= ${ANTIC_TAG}:a ${CATCH_TAG}:c1 ${CEREAL_TAG}:c2 ${FLINT_TAG}:f
GH_SUBDIR= libeantic/upstream/antic:a \
libeantic/upstream/flint:f \
libeantic/test/external/catch2:c1 \
libeantic/test/external/cereal:c2
LIBS+= "-lm"
GNU_CONFIGURE= yes
# pytest requires cppyy, doc requires standardese
CONFIGURE_ARGS= --without-byexample \
--without-pytest \
--without-doc
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
PLIST_SUB= VER=${DISTVERSION}
post-install:
${REINPLACE_CMD} -e 's|${STAGEDIR}||' \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyeantic/install_files.txt
${RM} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyeantic/install_files.txt.bak
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d \
${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d \
${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
.include <bsd.port.mk>