1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/math/ntl/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

49 lines
1.1 KiB
Makefile

# Created by: bauerm
# $FreeBSD$
PORTNAME= ntl
PORTVERSION= 6.0.0
CATEGORIES= math
MASTER_SITES= http://www.shoup.net/ntl/
MAINTAINER= ports@FreeBSD.org
COMMENT= Victor Shoup's Number Theory Library
# ntl is faster with libgmp4, but you can disable it
.if !defined(WITHOUT_GMP)
LIB_DEPENDS= libgmp.so:math/gmp
CONFIGURE_ARGS= NTL_GMP_LIP=on
.endif
USES= perl5
USE_PERL5= build
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= AR="${AR}" \
CC="${CC}" CFLAGS="${CFLAGS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
DEF_PREFIX="${LOCALBASE}" \
LDFLAGS="${LDFLAGS}" NTL_STD_CXX=on \
PREFIX="${PREFIX}" RANLIB="${RANLIB}"
CFLAGS+= -fPIC
WRKSRC= ${WRKDIR}/${DISTNAME}/src
MAKEFILE= makefile
OPTIONS_DEFINE= DOCS
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/NTL
${INSTALL_DATA} ${WRKSRC}/../include/NTL/* ${STAGEDIR}${PREFIX}/include/NTL/
${INSTALL_DATA} ${WRKSRC}/ntl.a ${STAGEDIR}${PREFIX}/lib/libntl.a
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../doc/* ${STAGEDIR}${DOCSDIR}
test: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
.include <bsd.port.mk>