2018-11-02 18:48:39 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.51 2018/11/02 18:48:39 naddy Exp $
|
2001-05-06 01:58:40 +00:00
|
|
|
|
2009-05-22 09:03:24 +00:00
|
|
|
COMMENT = Victor Shoup's Number Theory Library
|
2001-01-08 16:15:35 +00:00
|
|
|
|
2016-08-30 06:52:57 +00:00
|
|
|
DISTNAME = ntl-9.11.0
|
2018-11-02 18:48:39 +00:00
|
|
|
REVISION = 3
|
2016-08-30 06:52:57 +00:00
|
|
|
SHARED_LIBS = ntl 9.2 # 0.0
|
2009-05-22 09:03:24 +00:00
|
|
|
CATEGORIES = math
|
2002-01-28 23:02:50 +00:00
|
|
|
|
2009-05-22 09:03:24 +00:00
|
|
|
HOMEPAGE = http://www.shoup.net/ntl/
|
2002-01-28 23:02:50 +00:00
|
|
|
|
2009-05-22 09:03:24 +00:00
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
2001-01-08 16:15:35 +00:00
|
|
|
|
2009-05-22 09:03:24 +00:00
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
2001-01-08 16:15:35 +00:00
|
|
|
|
2017-07-16 19:18:47 +00:00
|
|
|
WANTLIB = m gmp ${COMPILER_LIBCXX}
|
2001-01-08 16:15:35 +00:00
|
|
|
|
2018-10-24 14:27:57 +00:00
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
|
2009-05-22 09:03:24 +00:00
|
|
|
MASTER_SITES = ${HOMEPAGE}
|
2001-01-08 16:15:35 +00:00
|
|
|
|
2010-11-19 07:23:05 +00:00
|
|
|
LIB_DEPENDS = devel/gmp
|
2002-01-28 23:02:50 +00:00
|
|
|
|
2009-05-22 09:03:24 +00:00
|
|
|
MAKE_FILE = makefile
|
|
|
|
|
|
|
|
CONFIGURE_STYLE = simple
|
2014-11-09 14:35:25 +00:00
|
|
|
CONFIGURE_ARGS = CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
2009-05-22 09:03:24 +00:00
|
|
|
NTL_GMP_LIP=on GMP_PREFIX="${LOCALBASE}" \
|
2014-11-09 14:35:25 +00:00
|
|
|
LIBntl_VERSION=${LIBntl_VERSION} \
|
2016-04-20 07:59:45 +00:00
|
|
|
SHARED=on DEF_PREFIX="${LOCALBASE}" \
|
|
|
|
NATIVE=off
|
2009-05-22 09:03:24 +00:00
|
|
|
|
|
|
|
WRKBUILD = ${WRKSRC}/src
|
|
|
|
|
2013-03-11 11:20:26 +00:00
|
|
|
TEST_TARGET = check
|
2001-01-08 16:15:35 +00:00
|
|
|
|
2001-02-16 08:56:16 +00:00
|
|
|
do-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/include/NTL
|
2002-01-28 23:02:50 +00:00
|
|
|
@cd ${WRKSRC}/include/NTL; ${INSTALL_DATA} *.h ${PREFIX}/include/NTL
|
2009-05-22 09:03:24 +00:00
|
|
|
@cd ${WRKBUILD}; ${INSTALL_DATA} .libs/libntl.a ${PREFIX}/lib/libntl.a
|
|
|
|
@cd ${WRKBUILD}; ${INSTALL_DATA} .libs/libntl.so.${LIBntl_VERSION} ${PREFIX}/lib/libntl.so.${LIBntl_VERSION}
|
2001-02-16 08:56:16 +00:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/NTL
|
2009-05-22 09:03:24 +00:00
|
|
|
@cd ${WRKSRC}/doc; ${INSTALL_DATA} * ${PREFIX}/share/doc/NTL
|
2001-02-16 08:56:16 +00:00
|
|
|
|
2001-01-08 16:15:35 +00:00
|
|
|
.include <bsd.port.mk>
|