some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.50 2018/10/24 14:28:07 sthen Exp $
|
|
|
|
COMMENT = Victor Shoup's Number Theory Library
|
|
|
|
DISTNAME = ntl-9.11.0
|
|
REVISION = 2
|
|
SHARED_LIBS = ntl 9.2 # 0.0
|
|
CATEGORIES = math
|
|
|
|
HOMEPAGE = http://www.shoup.net/ntl/
|
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB = m gmp ${COMPILER_LIBCXX}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES = ${HOMEPAGE}
|
|
|
|
LIB_DEPENDS = devel/gmp
|
|
|
|
MAKE_FILE = makefile
|
|
|
|
CONFIGURE_STYLE = simple
|
|
CONFIGURE_ARGS = CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
NTL_GMP_LIP=on GMP_PREFIX="${LOCALBASE}" \
|
|
LIBntl_VERSION=${LIBntl_VERSION} \
|
|
SHARED=on DEF_PREFIX="${LOCALBASE}" \
|
|
NATIVE=off
|
|
|
|
WRKBUILD = ${WRKSRC}/src
|
|
|
|
TEST_TARGET = check
|
|
|
|
do-install:
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/include/NTL
|
|
@cd ${WRKSRC}/include/NTL; ${INSTALL_DATA} *.h ${PREFIX}/include/NTL
|
|
@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}
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/NTL
|
|
@cd ${WRKSRC}/doc; ${INSTALL_DATA} * ${PREFIX}/share/doc/NTL
|
|
|
|
.include <bsd.port.mk>
|