Edit

IABSD.fr/ports/security/softhsm2/Makefile

Branch :

  • Show log

    Commit

  • Author : pvk
    Date : 2020-09-22 03:20:26
    Hash : 534402b8
    Message : Build softhsm2 with botan2 crypto backend for EDDSA/GOST support

  • security/softhsm2/Makefile
  • # $OpenBSD: Makefile,v 1.4 2020/09/22 03:20:26 pvk Exp $
    
    COMMENT =	software PKCS\#11 cryptographic token
    
    DISTNAME =	softhsm-2.6.1
    PKGNAME =	${DISTNAME:S/-/2-/}
    REVISION =	0
    
    CATEGORIES =	security
    
    HOMEPAGE =	http://www.opendnssec.org/softhsm/
    
    MAINTAINER =	Pavel Korovin <pvk@openbsd.org>
    
    # BSD
    PERMIT_PACKAGE =	Yes
    
    WANTLIB +=	${COMPILER_LIBCXX} botan-2 bz2 c crypto lzma m sqlite3 z
    
    MASTER_SITES =	http://dist.opendnssec.org/source/
    
    COMPILER =	base-clang ports-gcc base-gcc
    
    BUILD_DEPENDS = devel/cppunit
    
    LIB_DEPENDS =	databases/sqlite3 \
    		security/botan2
    
    TEST_DEPENDS =	${BUILD_DEPENDS}
    
    FAKE_FLAGS =	sysconfdir=${PREFIX}/share/examples/softhsm2
    
    SEPARATE_BUILD =	Yes
    CONFIGURE_STYLE =	gnu
    
    CONFIGURE_ARGS =	--with-crypto-backend=botan \
    			--with-botan=${PREFIX} \
    			--with-migrate \
    			--with-objectstore-backend-db \
    			--with-sqlite3=${PREFIX} \
    			--with-p11-kit=${PREFIX}/share/examples/softhsm2
    
    post-install:
    	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/softhsm2
    	cd ${WRKSRC}; ${INSTALL_DATA} LICENSE ${PREFIX}/share/doc/softhsm2
    	rm ${PREFIX}/lib/softhsm/libsofthsm2.*a
    
    .include <bsd.port.mk>