64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.45 2018/02/18 10:35:31 sthen Exp $
|
|
|
|
COMMENT= set of libraries and utilities to access smart cards
|
|
|
|
VERSION= 0.17.0
|
|
DISTNAME= OpenSC-${VERSION}
|
|
PKGNAME= opensc-${VERSION}
|
|
REVISION= 2
|
|
GH_ACCOUNT= OpenSC
|
|
GH_PROJECT= ${GH_ACCOUNT}
|
|
GH_TAGNAME= ${VERSION}
|
|
SUBST_VARS += GH_TAGNAME
|
|
|
|
SHARED_LIBS += opensc 6.0 # 5.0
|
|
SHARED_LIBS += smm-local 2.0 # 5.0
|
|
|
|
CATEGORIES= security
|
|
|
|
HOMEPAGE= https://github.com/OpenSC/OpenSC/wiki
|
|
|
|
MAINTAINER= David Coppa <dcoppa@openbsd.org>
|
|
|
|
# LGPLv2.1+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB= c crypto ncurses pthread readline z
|
|
|
|
BUILD_DEPENDS= devel/libtool \
|
|
${MODGNU_AUTOCONF_DEPENDS} \
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
security/pcsc-lite \
|
|
textproc/docbook-xsl
|
|
RUN_DEPENDS= security/ccid
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --enable-static \
|
|
--sysconfdir=${SYSCONFDIR} \
|
|
--enable-sm \
|
|
--disable-cryptotokenkit \
|
|
--with-xsl-stylesheetsdir=${LOCALBASE}/share/xsl/docbook
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/PCSC"
|
|
|
|
FAKE_FLAGS= mandir="${PREFIX}/man/" \
|
|
sysconfdir="${PREFIX}/share/examples/opensc/"
|
|
|
|
AUTOCONF_VERSION = 2.69
|
|
AUTOMAKE_VERSION = 1.14
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoreconf -f -i
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
|
${SUBST_CMD} -c -m 0644 -o ${BINOWN} -g ${BINGRP} \
|
|
${FILESDIR}/libopensc.pc \
|
|
${PREFIX}/lib/pkgconfig/libopensc.pc
|
|
@find ${PREFIX}/lib/pkcs11/ -name '*.la' -print0 | \
|
|
xargs -0r rm -f
|
|
|
|
.include <bsd.port.mk>
|