Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # $OpenBSD: Makefile,v 1.23 2017/04/19 11:16:03 sthen Exp $
  2. ONLY_FOR_ARCHS = ${GCC4_ARCHS} ${CLANG_ARCHS}
  3. COMMENT = portable, easy to use, and efficient C++ crypto library
  4. PORTROACH = limit:^1\.10\.
  5. VERSION = 1.10.16
  6. DISTNAME = Botan-${VERSION}
  7. PKGNAME = botan-${VERSION}
  8. SHARED_LIBS = botan-1.10 1.0
  9. CATEGORIES = security
  10. HOMEPAGE = https://botan.randombit.net/
  11. MAINTAINER = Alexander Bluhm <bluhm@openbsd.org>
  12. # BSD 2-Clause
  13. PERMIT_PACKAGE_CDROM = Yes
  14. WANTLIB = bz2 crypto gmp m pthread ${LIBCXX} z
  15. MASTER_SITES = ${HOMEPAGE}releases/
  16. SUPDISTFILES = ${DISTFILES}.asc
  17. EXTRACT_SUFX = .tgz
  18. MODULES = lang/python
  19. MODPY_RUNDEP = No
  20. LIB_DEPENDS = archivers/bzip2 \
  21. devel/gmp
  22. BUILD_DEPENDS = devel/boost
  23. CXXFLAGS += -I${LOCALBASE}/include
  24. MAKE_FLAGS = CXX="${CXX}" LIB_OPT="${CXXFLAGS} -finline-functions" \
  25. CHECK_OPT="${CXXFLAGS}" LDFLAGS="-L${LOCALBASE}/lib" \
  26. LIBbotan_VERSION=${LIBbotan-1.10_VERSION}
  27. FAKE_FLAGS = LIBbotan_VERSION=${LIBbotan-1.10_VERSION}
  28. CONFIGURE_STYLE = simple
  29. CONFIGURE_SCRIPT = ${WRKSRC}/configure.py
  30. CONFIGURE_ARGS = --cpu=${MACHINE_ARCH} \
  31. --prefix=${PREFIX} \
  32. --with-bzip2 \
  33. --with-gnump \
  34. --with-openssl \
  35. --with-zlib \
  36. --without-sphinx
  37. .if ${MACHINE_ARCH} == "amd64"
  38. CONFIGURE_ARGS += --disable-asm
  39. PKG_ARGS += -Damd64=1
  40. .else
  41. PKG_ARGS += -Damd64=0
  42. .endif
  43. pre-configure:
  44. ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
  45. do-test:
  46. cd ${WRKBUILD} && \
  47. ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${ALL_TEST_FLAGS} check
  48. cd ${WRKSRC} && LD_LIBRARY_PATH=${WRKBUILD} ${WRKBUILD}/check --test
  49. .include <bsd.port.mk>