384c2bae3b
- Upgrade to 1.2.9.b.7 - Use libtool15 - make hier(7)-compliant by moving the pcsc/drivers to lib/pcsc/drivers - Compile with USB support per default. Use WITHOUT_USB to disable usb support - Chase libusb shared library version (Forgotten by leeym) Based on: PR 76068 Reviewed by: maintainer, sem (earlier patch) ifd-devkit: - Chase pcsclite sharedlibrary version ifd-gempc410: - Unbreak by updating to 0.9.3 - Move library to lib/pcsc/drivers - Chase pcsclite sharedlibrary version NOTE: This was not tested, I don't own the specific hardware ifd-gpr400: - Chase pcsclite sharedlibrary version - Fix build with new pcsc-lite - Chase new pcsclite drivers location ifd-slb_rf60: - Chase pcsclite sharedlibrary version ifd-test: - Chase pcsclite sharedlibrary version - Fix build with new pcsclite libchipcard: - Update to 0.9.1[1] - Chase pcsclite shared library version - Fix build with new pcsclite [1]PR: 78815 [1]Submitted by: lofi opensc: - Chase pcsclite shared library version - Fix build on CURRENT opensc-esteid - Chase pcsclite shared library version - Fix build with new pcsclite p5-PCSC-Card: - Update to 1.4.2 - Chase pcsclite shared library version - Fix build with new pcsclite ruby-pcsc-lite - Mark broken, does not compile with new pcsc-lite Maintainer will work on new version Submitted by: maintainer
94 lines
2.3 KiB
Makefile
94 lines
2.3 KiB
Makefile
# New ports collection makefile for: opensc
|
|
# Date created: 10 September 2002
|
|
# Whom: Bruce M Simpson
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= opensc
|
|
PORTVERSION= 0.9.4
|
|
PORTREVSION= 1
|
|
CATEGORIES= security devel
|
|
MASTER_SITES= http://www.opensc.org/files/
|
|
|
|
MAINTAINER= bms@FreeBSD.org
|
|
COMMENT= ISO 7816 Smartcard API
|
|
|
|
USE_GNOME= pkgconfig
|
|
INSTALLS_SHLIB= yes
|
|
USE_OPENSSL= yes
|
|
USE_GMAKE= yes
|
|
USE_LIBTOOL_VER= 15
|
|
GNU_CONFIGURE= yes
|
|
USE_REINPLACE= yes
|
|
|
|
MANCOMPRESSED= no
|
|
MAN1= pkcs15-crypt.1 pkcs15-init.1 pkcs15-tool.1 opensc-tool.1 \
|
|
opensc-explorer.1 opensc-config.1 cryptoflex-tool.1 \
|
|
pkcs11-tool.1 cardos-info.1
|
|
MAN3= sc_select_file.3 sc_release_context.3 sc_read_record.3 \
|
|
sc_read_binary.3 sc_pkcs15_compute_signature.3 sc_lock.3 \
|
|
sc_list_files.3 sc_file_new.3 sc_file_free.3 sc_file.3 \
|
|
sc_establish_context.3 sc_disconnect_card.3 \
|
|
sc_detect_card_presence.3 sc_connect_card.3
|
|
MAN5= pkcs15-profile.5
|
|
MAN7= pkcs15.7 opensc.7
|
|
|
|
# Compilation Options
|
|
#
|
|
# Define boolean switches:
|
|
# WITHOUT_PAM WITHOUT_PCSC_LITE WITHOUT_LDAP
|
|
# WITH_DEBUG WITH_DOCBOOK WITH_FIREFOX_PLUGIN WITH_MOZILLA_PLUGIN
|
|
#
|
|
# Default: WITH_PAM, WITH_PCSC_LITE, WITH_LDAP.
|
|
#
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --disable-dependency-tracking
|
|
|
|
.if !defined(WITHOUT_PAM)
|
|
CONFIGURE_ARGS+= --with-pam
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_PCSC_LITE)
|
|
LIB_DEPENDS+= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
|
|
CONFIGURE_ARGS+= --with-pcsclite=${LOCALBASE}
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_LDAP)
|
|
USE_OPENLDAP= yes
|
|
CONFIGURE_ARGS+= --enable-ldap \
|
|
--with-ldap-lib=openldap \
|
|
--with-ldap-dir=${LOCALBASE}
|
|
PLIST_SUB+= LDAP=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
PLIST_SUB+= LDAP="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_FIREFOX_PLUGIN)
|
|
RUN_DEPENDS?= firefox:${PORTSDIR}/www/firefox
|
|
PLUGIN_DIR?= lib/firefox/plugins
|
|
CONFIGURE_ARGS+= --with-plugin-dir="${PREFIX}/${PLUGIN_DIR}"
|
|
.elif defined(WITH_MOZILLA_PLUGIN)
|
|
RUN_DEPENDS?= mozilla:${PORTSDIR}/www/mozilla
|
|
PLUGIN_DIR?= lib/browser_plugins
|
|
CONFIGURE_ARGS+= --with-plugin-dir="${PREFIX}/${PLUGIN_DIR}"
|
|
.endif
|
|
|
|
.if defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
.endif
|
|
|
|
.if !defined(WITH_DOCBOOK)
|
|
CONFIGURE_ARGS+= --without-docbook
|
|
.endif
|
|
|
|
.if defined(WITH_OPENCT)
|
|
CONFIGURE_ARGS+= --with-openct=${LOCALBASE}
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s,ulong,u_long," ${WRKSRC}/src/openscd/openscd.c
|
|
|
|
.include <bsd.port.post.mk>
|