2007-09-15 14:44:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2007/09/15 18:44:36 steven Exp $
|
2001-05-05 21:58:40 -04:00
|
|
|
|
2007-09-15 14:44:36 -04:00
|
|
|
COMMENT= Victor Shoup's Number Theory Library
|
2001-01-08 11:15:35 -05:00
|
|
|
|
2002-12-19 14:10:56 -05:00
|
|
|
DISTNAME= ntl-5.3.1
|
2005-11-18 18:26:43 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2001-01-08 11:15:35 -05:00
|
|
|
CATEGORIES= math
|
2002-01-28 18:02:50 -05:00
|
|
|
HOMEPAGE= http://www.shoup.net/ntl/
|
|
|
|
|
|
|
|
MAINTAINER= Tom Knienieder <tom@knienieder.com>
|
|
|
|
|
|
|
|
# GPL
|
2001-01-08 11:15:35 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2002-01-28 18:02:50 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
2001-01-08 11:15:35 -05:00
|
|
|
|
2005-11-18 18:26:43 -05:00
|
|
|
BUILD_DEPENDS= :gmp-*:devel/gmp
|
2001-01-08 11:15:35 -05:00
|
|
|
|
2002-01-28 18:02:50 -05:00
|
|
|
WRKBUILD= ${WRKSRC}/src
|
2001-02-09 09:41:36 -05:00
|
|
|
MAKE_FILE= makefile
|
2001-01-08 11:15:35 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= simple
|
2002-01-28 18:02:50 -05:00
|
|
|
CONFIGURE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
|
|
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
NTL_GMP_LIP=on GMP_PREFIX="${LOCALBASE}"
|
|
|
|
|
|
|
|
REGRESS_TARGET= check
|
2001-01-08 11:15:35 -05:00
|
|
|
|
2001-02-16 03:56:16 -05:00
|
|
|
do-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/include/NTL
|
2002-01-28 18:02:50 -05:00
|
|
|
@cd ${WRKSRC}/include/NTL; ${INSTALL_DATA} *.h ${PREFIX}/include/NTL
|
|
|
|
@cd ${WRKBUILD}; ${INSTALL_DATA} ntl.a ${PREFIX}/lib/libntl.a
|
2001-02-16 03:56:16 -05:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/NTL
|
2002-01-28 18:02:50 -05:00
|
|
|
@cd ${WRKSRC}/doc; ${INSTALL_DATA} *.txt ${PREFIX}/share/doc/NTL
|
|
|
|
@cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html ${PREFIX}/share/doc/NTL
|
2001-02-16 03:56:16 -05:00
|
|
|
|
2001-01-08 11:15:35 -05:00
|
|
|
.include <bsd.port.mk>
|