2000-07-10 05:42:46 +02:00
|
|
|
# New ports collection makefile for: ntl
|
|
|
|
# Date created: 18 June 2000
|
|
|
|
# Whom: bauerm
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ntl
|
2005-06-27 22:18:22 +02:00
|
|
|
PORTVERSION= 5.4
|
2006-05-10 16:46:47 +02:00
|
|
|
PORTREVISION= 1
|
2000-07-10 05:42:46 +02:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= http://www.shoup.net/ntl/
|
|
|
|
|
|
|
|
MAINTAINER= matthiasb@acm.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= Victor Shoup's Number Theory Library
|
2000-07-10 05:42:46 +02:00
|
|
|
|
2005-06-27 22:18:22 +02:00
|
|
|
# ntl is faster with libgmp4, but you can disable it
|
|
|
|
.if !defined(WITHOUT_GMP)
|
2006-05-10 16:46:47 +02:00
|
|
|
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
|
2005-06-27 22:18:22 +02:00
|
|
|
.endif
|
2001-09-03 05:33:45 +02:00
|
|
|
|
2005-06-30 19:33:54 +02:00
|
|
|
USE_PERL5_BUILD= yes
|
2000-09-05 03:52:20 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2002-02-03 23:15:22 +01:00
|
|
|
CONFIGURE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \
|
2005-06-27 22:18:22 +02:00
|
|
|
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" NTL_STD_CXX=on
|
2002-02-03 23:15:22 +01:00
|
|
|
|
2005-06-27 22:18:22 +02:00
|
|
|
.if !defined(WITHOUT_GMP)
|
|
|
|
CONFIGURE_ARGS+= NTL_GMP_LIP=on GMP_PREFIX="${LOCALBASE}"
|
|
|
|
.endif
|
2002-02-03 23:15:22 +01:00
|
|
|
|
2005-06-27 22:18:22 +02:00
|
|
|
CONFIGURE_WRKSRC= ${BUILD_WRKSRC}
|
2002-02-03 23:15:22 +01:00
|
|
|
|
2005-06-27 22:18:22 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
|
|
MAKEFILE= makefile
|
2000-07-10 05:42:46 +02:00
|
|
|
|
2000-09-05 03:52:20 +02:00
|
|
|
do-install:
|
2000-07-10 05:42:46 +02:00
|
|
|
${MKDIR} ${PREFIX}/include/NTL
|
2002-02-03 23:15:22 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/NTL/* ${PREFIX}/include/NTL/
|
|
|
|
${INSTALL_DATA} ${BUILD_WRKSRC}/ntl.a ${PREFIX}/lib/libntl.a
|
2005-06-27 22:18:22 +02:00
|
|
|
|
|
|
|
post-install:
|
2000-07-10 05:42:46 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-06-27 22:18:22 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
2000-07-10 05:42:46 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|