Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # $OpenBSD: Makefile,v 1.8 2017/04/10 11:46:33 sthen Exp $
  2. PORTROACH= limit:^1\.
  3. PORTROACH_COMMENT= the 2.x version has a different user interface
  4. COMMENT= software PKCS\#11 cryptographic token
  5. DISTNAME= softhsm-1.3.8
  6. CATEGORIES= security
  7. HOMEPAGE= http://www.opendnssec.org/softhsm/
  8. MAINTAINER= Patrik Lundin <patrik@sigterm.se>
  9. # BSD
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB += botan-1.10 bz2 c crypto gmp m pthread sqlite3 ${LIBCXX} z
  12. MASTER_SITES= http://dist.opendnssec.org/source/
  13. LIB_DEPENDS= security/botan \
  14. databases/sqlite3
  15. FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/softhsm
  16. SEPARATE_BUILD= Yes
  17. CONFIGURE_STYLE= gnu
  18. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  19. LDFLAGS="-L${LOCALBASE}/lib"
  20. CONFIGURE_ARGS= --with-botan="${LOCALBASE}"
  21. post-install:
  22. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/softhsm
  23. cd ${WRKSRC}; ${INSTALL_DATA} LICENSE ${PREFIX}/share/doc/softhsm
  24. rm ${PREFIX}/lib/softhsm/libsofthsm.*a
  25. ${INSTALL_DATA} ${FILESDIR}/softhsm.module \
  26. ${PREFIX}/share/examples/softhsm
  27. .include <bsd.port.mk>