diff options
author | naddy <naddy@FreeBSD.org> | 2002-02-04 06:15:22 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2002-02-04 06:15:22 +0800 |
commit | d5196be1990df5ba641a74ae4edc73549e053820 (patch) | |
tree | d8a3b2b0a0e61dcde432414138f17edfe6058df4 /math/ntl | |
parent | 280dc68b5ce3353c8ca61e651ccaa08f569f7b64 (diff) | |
download | freebsd-ports-graphics-d5196be1990df5ba641a74ae4edc73549e053820.tar.gz freebsd-ports-graphics-d5196be1990df5ba641a74ae4edc73549e053820.tar.zst freebsd-ports-graphics-d5196be1990df5ba641a74ae4edc73549e053820.zip |
Clarify dependency and add a flag to make NTL an ISO compliant lib.
Thanks to Jeff Brown <jabrown@SDSC.EDU> for pointing this out.
PR: 34556
Submitted by: Matthias Bauer <matthiasb@acm.org>
Additionally respect CC/CXX/CFLAGS/CXXFLAGS and generally overhaul
the Makefile.
Obtained from: OpenBSD
Diffstat (limited to 'math/ntl')
-rw-r--r-- | math/ntl/Makefile | 31 | ||||
-rw-r--r-- | math/ntl/pkg-plist | 1 |
2 files changed, 22 insertions, 10 deletions
diff --git a/math/ntl/Makefile b/math/ntl/Makefile index f46db51d345..b88809d28ff 100644 --- a/math/ntl/Makefile +++ b/math/ntl/Makefile @@ -12,23 +12,34 @@ MASTER_SITES= http://www.shoup.net/ntl/ MAINTAINER= matthiasb@acm.org -BUILD_DEPENDS= libgmp3:${PORTSDIR}/math/libgmp3 -RUN_DEPENDS= libgmp3:${PORTSDIR}/math/libgmp3 +LIB_DEPENDS= gmp.4:${PORTSDIR}/math/libgmp3 -USE_GMAKE= yes -WRKSRC= ${WRKDIR}/${DISTNAME}/src -MAKEFILE= makefile HAS_CONFIGURE= yes -CONFIGURE_ARGS= "GMP_INCDIR=${LOCALBASE}/include" "GMP_LIBDIR=${LOCALBASE}/lib" "GMP_PREFIX=${LOCALBASE}" "NTL_GMP_LIP=on" -MAKE_ARGS= "DOCDIR=${LOCALBASE}/share/doc GMP_PREFIX=${LOCALBASE}" +CONFIGURE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \ + CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ + NTL_GMP_LIP=on GMP_PREFIX="${LOCALBASE}" +CONFIGURE_WRKSRC= ${BUILD_WRKSRC} + +BUILD_WRKSRC= ${WRKSRC}/src +MAKEFILE= makefile + +# Build with WITH_ISO_CXX=yes if you want to use the "Standard C++" +# version of NTL. In this version, all of NTL is "wrapped" inside +# the namespace NTL, and are no longer directly accessible---you must +# either use explicit qualification, or using directives, or +# using declarations. + +.if defined(WITH_ISO_CXX) +CONFIGURE_ARGS+= NTL_STD_CXX=on +.endif do-install: ${MKDIR} ${PREFIX}/include/NTL - ${INSTALL_DATA} ${WRKSRC}/../include/NTL/* ${PREFIX}/include/NTL/. - ${INSTALL_DATA} ${WRKSRC}/ntl.a ${PREFIX}/lib/libntl.a + ${INSTALL_DATA} ${WRKSRC}/include/NTL/* ${PREFIX}/include/NTL/ + ${INSTALL_DATA} ${BUILD_WRKSRC}/ntl.a ${PREFIX}/lib/libntl.a .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/NTL - ${INSTALL_DATA} ${WRKSRC}/../doc/* ${PREFIX}/share/doc/NTL/. + ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/NTL/ .endif .include <bsd.port.mk> diff --git a/math/ntl/pkg-plist b/math/ntl/pkg-plist index 9601b574b26..4c8bf34c43f 100644 --- a/math/ntl/pkg-plist +++ b/math/ntl/pkg-plist @@ -1,3 +1,4 @@ +@comment $FreeBSD$ include/NTL/FFT.h include/NTL/FacVec.h include/NTL/GF2.h |