2003-01-08 13:02:38 +01:00
|
|
|
# New ports collection makefile for: opensc
|
|
|
|
# Date created: 10 September 2002
|
2003-12-10 13:55:36 +01:00
|
|
|
# Whom: Bruce M Simpson
|
2003-01-08 13:02:38 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= opensc
|
2008-08-27 11:27:02 +02:00
|
|
|
PORTVERSION= 0.11.6
|
2003-01-08 13:02:38 +01:00
|
|
|
CATEGORIES= security devel
|
2006-11-28 08:00:17 +01:00
|
|
|
MASTER_SITES= http://www.opensc-project.org/files/${PORTNAME}/ \
|
|
|
|
http://www.opensc-project.org/files/${PORTNAME}/testing/
|
2003-01-08 13:02:38 +01:00
|
|
|
|
2006-06-12 23:30:00 +02:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2006-06-12 18:55:50 +02:00
|
|
|
COMMENT= Libraries and utilities to access smart cards
|
2003-01-08 13:02:38 +01:00
|
|
|
|
2007-07-17 11:22:46 +02:00
|
|
|
OPTIONS= OPENCT "Enable direct OpenCT backend support" on \
|
|
|
|
PCSC "Enable PC/SC backend support" off \
|
2007-09-10 20:57:01 +02:00
|
|
|
SIGNER "Enable signer browser plugin" off
|
2006-06-12 18:55:50 +02:00
|
|
|
|
|
|
|
USE_AUTOTOOLS= libltdl:15
|
2003-01-08 13:02:38 +01:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-08-26 17:39:09 +02:00
|
|
|
USE_GNOME= pkgconfig
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-12-10 13:55:36 +01:00
|
|
|
|
2008-08-26 17:39:09 +02:00
|
|
|
CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \
|
2006-06-12 18:55:50 +02:00
|
|
|
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
|
|
|
|
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl"
|
2003-12-10 13:55:36 +01:00
|
|
|
|
2006-06-12 18:55:50 +02:00
|
|
|
PORTDOCS= *
|
2003-12-10 13:55:36 +01:00
|
|
|
|
2006-06-12 18:55:50 +02:00
|
|
|
MANCOMPRESSED= no
|
|
|
|
MAN1= cardos-info.1 cryptoflex-tool.1 netkey-tool.1 \
|
|
|
|
opensc-config.1 opensc-explorer.1 opensc-tool.1 \
|
|
|
|
pkcs11-tool.1 pkcs15-crypt.1 pkcs15-init.1 pkcs15-tool.1
|
|
|
|
MAN3= sc_app_info_t.3 sc_append_record.3 sc_asn1_decode.3 \
|
|
|
|
sc_asn1_encode.3 sc_asn1_entry.3 sc_asn1_find_tag.3 \
|
|
|
|
sc_asn1_print_tags.3 sc_asn1_put_tag.3 sc_asn1_read_tag.3 \
|
|
|
|
sc_asn1_skip_tag.3 sc_asn1_verify_tag.3 sc_base64_decode.3 \
|
|
|
|
sc_base64_encode.3 sc_card_ctl.3 sc_card_t.3 \
|
|
|
|
sc_card_valid.3 sc_check_sw.3 sc_connect_card.3 \
|
|
|
|
sc_copy_asn1_entry.3 sc_create_file.3 sc_delete_file.3 \
|
|
|
|
sc_delete_record.3 sc_der_clear.3 sc_der_copy.3 \
|
|
|
|
sc_detect_card_presence.3 sc_disconnect_card.3 \
|
|
|
|
sc_enum_apps.3 sc_establish_context.3 sc_file_dup.3 \
|
|
|
|
sc_file_free.3 sc_file_new.3 sc_file_t.3 \
|
|
|
|
sc_find_app_by_aid.3 sc_find_pkcs15_app.3 sc_format_apdu.3 \
|
|
|
|
sc_format_asn1_entry.3 sc_free_apps.3 sc_get_cache_dir.3 \
|
|
|
|
sc_get_challenge.3 sc_get_data.3 sc_list_files.3 \
|
|
|
|
sc_lock.3 sc_make_cache_dir.3 sc_put_data.3 \
|
|
|
|
sc_read_binary.3 sc_read_record.3 sc_release_context.3 \
|
|
|
|
sc_select_file.3 sc_set_card_driver.3 sc_strerror.3 \
|
|
|
|
sc_transmit_apdu.3 sc_unlock.3 sc_update_binary.3 \
|
|
|
|
sc_update_dir.3 sc_update_record.3 sc_wait_for_event.3 \
|
|
|
|
sc_write_binary.3 sc_write_record.3
|
|
|
|
MAN5= pkcs15-profile.5
|
2005-01-14 16:08:23 +01:00
|
|
|
|
2006-06-12 18:55:50 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-01-14 16:08:23 +01:00
|
|
|
|
2007-07-17 11:22:46 +02:00
|
|
|
.if !defined(WITHOUT_OPENCT)
|
2006-06-12 18:55:50 +02:00
|
|
|
LIB_DEPENDS+= openct.1:${PORTSDIR}/security/openct
|
2008-08-26 17:39:09 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-openct
|
2003-12-10 13:55:36 +01:00
|
|
|
.endif
|
|
|
|
|
2007-07-17 11:22:46 +02:00
|
|
|
.if defined(WITH_PCSC)
|
2006-06-12 18:55:50 +02:00
|
|
|
LIB_DEPENDS+= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
|
2008-08-26 17:39:09 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-pcsc \
|
|
|
|
--with-pcsc-provider=${LOCALBASE}/lib/libpcsclite.so
|
2003-12-10 13:55:36 +01:00
|
|
|
.endif
|
|
|
|
|
2007-09-10 20:57:01 +02:00
|
|
|
.if defined(WITH_SIGNER)
|
2006-11-28 08:00:17 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libassuan.a:${PORTSDIR}/security/libassuan
|
|
|
|
PINENTRY?= ${LOCALBASE}/bin/pinentry
|
|
|
|
PINENTRY_PORT?= security/pinentry
|
|
|
|
RUN_DEPENDS+= pinentry:${PORTSDIR}/${PINENTRY_PORT}
|
2008-03-22 09:55:40 +01:00
|
|
|
USE_XORG= x11
|
2008-08-26 17:39:09 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-nsplugin \
|
|
|
|
--with-libassuan-prefix=${LOCALBASE} \
|
|
|
|
--with-plugindir=${LOCALBASE}/lib/browser_plugins \
|
|
|
|
--with-pinentry=${PINENTRY}
|
2006-11-28 08:00:17 +01:00
|
|
|
PLIST_SUB+= SIGNER=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SIGNER="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-06-12 18:55:50 +02:00
|
|
|
.ifndef(NOPORTDOCS)
|
2008-08-26 17:39:09 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-doc
|
2003-12-10 13:55:36 +01:00
|
|
|
.endif
|
2008-08-26 17:39:09 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.if !defined(WITH_SIGNER)
|
|
|
|
@${REINPLACE_CMD} 's|install-data-am: install-pluginDATA|install-data-am:|' \
|
|
|
|
${WRKSRC}/src/signer/Makefile.in
|
|
|
|
.endif
|
|
|
|
.ifdef(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA|install-data-am:|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA install-dist_htmlDATA|install-data-am:|' \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2006-06-12 18:55:50 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-04-20 14:42:06 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|