mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= beid
|
|
PORTVERSION= 4.4.21
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= security
|
|
|
|
MAINTAINER= tijl@FreeBSD.org
|
|
COMMENT= Belgian eID middleware
|
|
|
|
LICENSE= LGPL3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
libpcsclite.so:devel/pcsc-lite \
|
|
libproxy.so:net/libproxy
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Fedict
|
|
GH_PROJECT= eid-mw
|
|
|
|
USES= autoreconf compiler:c++11-lang gettext-tools gmake gnome \
|
|
libtool pkgconfig ssl
|
|
USE_GNOME= gtk30 libxml2
|
|
GLIB_SCHEMAS= eid-viewer.gschema.xml
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-p11kit --disable-static --with-gtkvers=3 \
|
|
--enable-webextension \
|
|
--with-mozext=${PREFIX}/lib/firefox/browser/extensions \
|
|
SSL_CFLAGS="-I${OPENSSLINC}" \
|
|
SSL_LIBS="-L${OPENSSLLIB} -lcrypto" \
|
|
SSL_PREFIX="${OPENSSLBASE}"
|
|
INSTALL_TARGET= install-strip
|
|
|
|
OPTIONS_DEFINE= NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
NLS_USES= gettext-runtime
|
|
|
|
post-patch:
|
|
@${ECHO_CMD} ${PORTVERSION}-release > ${WRKSRC}/.version
|
|
@${REINPLACE_CMD} -e '/^MODUTIL=/s,/usr/bin,${LOCALBASE}/bin,' \
|
|
-e '/^CERTUTIL=/s,/usr/bin,${LOCALBASE}/bin,' \
|
|
-e '/^LIBS=/s,=.*,=${PREFIX}/lib,' \
|
|
${WRKSRC}/plugins_tools/chrome_pkcs11/beid-update-nssdb
|
|
@${REINPLACE_CMD} '/^Exec=/s,/usr/bin,${PREFIX}/bin,' \
|
|
${WRKSRC}/plugins_tools/chrome_pkcs11/beid-update-nssdb.desktop
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/pkcs11
|
|
${LN} -s ../libbeidpkcs11.so.0 \
|
|
${STAGEDIR}${PREFIX}/lib/pkcs11/beidpkcs11.so
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/p11-kit/modules
|
|
${INSTALL_DATA} ${WRKSRC}/cardcomm/pkcs11/src/beid.module \
|
|
${STAGEDIR}${PREFIX}/share/p11-kit/modules
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/share/locale/en@boldquot/LC_MESSAGES
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/share/locale/en@boldquot
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/share/locale/en@quot/LC_MESSAGES
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/share/locale/en@quot
|
|
|
|
.include <bsd.port.mk>
|