a9f015d155
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
# Created by: bauerm
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ntl
|
|
PORTVERSION= 11.3.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://www.shoup.net/ntl/
|
|
|
|
MAINTAINER= ndowens@yahoo.com
|
|
COMMENT= Victor Shoup's Number Theory Library
|
|
|
|
LICENSE= LGPL21+
|
|
LICENSE_FILE= ${WRKSRC}/../doc/copying.txt
|
|
|
|
USES= compiler:c11 libtool perl5
|
|
USE_LDCONFIG= yes
|
|
USE_PERL5= build
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=AR="${AR}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
DEF_PREFIX="${LOCALBASE}" LDFLAGS="${LDFLAGS}" \
|
|
PREFIX="${PREFIX}" RANLIB="${RANLIB}" SHARED=on
|
|
|
|
CFLAGS+= -fPIC
|
|
WRKSRC_SUBDIR= src
|
|
MAKEFILE= makefile
|
|
TEST_TARGET= check
|
|
|
|
NTLDOCSDIR= share/doc/NTL
|
|
PLIST_SUB= NTLDOCS=${NTLDOCSDIR}
|
|
|
|
OPTIONS_DEFINE= DOCS GMP
|
|
OPTIONS_DEFAULT= GMP
|
|
|
|
GMP_DESC= Arbitrary precision arithmetic(Faster)
|
|
GMP_LIB_DEPENDS= libgmp.so:math/gmp
|
|
GMP_CONFIGURE_OFF= NTL_GMP_LIP=off
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libntl.so.*
|
|
|
|
.include <bsd.port.mk>
|