Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.46 2017/04/10 11:46:23 sthen Exp $
  2. COMMENT = Victor Shoup's Number Theory Library
  3. DISTNAME = ntl-9.11.0
  4. SHARED_LIBS = ntl 9.2 # 0.0
  5. CATEGORIES = math
  6. HOMEPAGE = http://www.shoup.net/ntl/
  7. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB = m gmp ${LIBCXX}
  11. MASTER_SITES = ${HOMEPAGE}
  12. LIB_DEPENDS = devel/gmp
  13. MAKE_FILE = makefile
  14. CONFIGURE_STYLE = simple
  15. CONFIGURE_ARGS = CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
  16. NTL_GMP_LIP=on GMP_PREFIX="${LOCALBASE}" \
  17. LIBntl_VERSION=${LIBntl_VERSION} \
  18. SHARED=on DEF_PREFIX="${LOCALBASE}" \
  19. NATIVE=off
  20. WRKBUILD = ${WRKSRC}/src
  21. TEST_TARGET = check
  22. do-install:
  23. @${INSTALL_DATA_DIR} ${PREFIX}/include/NTL
  24. @cd ${WRKSRC}/include/NTL; ${INSTALL_DATA} *.h ${PREFIX}/include/NTL
  25. @cd ${WRKBUILD}; ${INSTALL_DATA} .libs/libntl.a ${PREFIX}/lib/libntl.a
  26. @cd ${WRKBUILD}; ${INSTALL_DATA} .libs/libntl.so.${LIBntl_VERSION} ${PREFIX}/lib/libntl.so.${LIBntl_VERSION}
  27. @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/NTL
  28. @cd ${WRKSRC}/doc; ${INSTALL_DATA} * ${PREFIX}/share/doc/NTL
  29. .include <bsd.port.mk>