2013-03-29 20:33:41 +01:00
|
|
|
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
2005-07-06 16:35:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openct
|
2010-02-16 12:22:05 +01:00
|
|
|
PORTVERSION= 0.6.20
|
2013-07-05 15:21:07 +02:00
|
|
|
PORTREVISION= 1
|
2005-07-06 16:35:12 +02:00
|
|
|
CATEGORIES= security
|
2014-05-13 14:32:51 +02:00
|
|
|
MASTER_SITES= SF/opensc/${PORTNAME}
|
2005-07-06 16:35:12 +02:00
|
|
|
|
2006-06-12 18:53:46 +02:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2013-03-29 20:33:41 +01:00
|
|
|
COMMENT= Middleware framework for smart card terminals
|
2005-07-06 16:35:12 +02:00
|
|
|
|
2014-05-13 14:32:51 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2014-09-17 09:38:15 +02:00
|
|
|
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl
|
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
OPTIONS_DEFINE= PCSC DOCS
|
|
|
|
PCSC_DESC= Enable PC/SC support
|
2006-06-12 18:53:46 +02:00
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2014-05-13 14:32:51 +02:00
|
|
|
USES= gmake libtool 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
|
2006-06-12 18:53:46 +02:00
|
|
|
USE_RC_SUBR= openct
|
|
|
|
SUB_FILES= etoken.conf
|
2005-07-06 16:35:12 +02:00
|
|
|
|
2008-08-26 15:33:25 +02:00
|
|
|
CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \
|
2014-05-13 14:32:51 +02:00
|
|
|
LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \
|
|
|
|
LIBUSB_CFLAGS="-I/usr/include" \
|
|
|
|
LIBUSB_LIBS="-lusb"
|
2005-07-06 16:35:12 +02:00
|
|
|
|
2014-05-13 14:32:51 +02:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var --enable-usb
|
2005-07-06 16:35:12 +02:00
|
|
|
|
2006-06-12 18:53:46 +02:00
|
|
|
PORTDOCS= *
|
2014-05-13 14:32:51 +02:00
|
|
|
PORTEXAMPLES= *
|
2005-07-06 16:35:12 +02:00
|
|
|
|
2014-05-13 14:32:51 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-03-24 12:17:54 +01:00
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MPCSC}
|
2014-05-13 14:32:51 +02:00
|
|
|
LIB_DEPENDS+= libpcsclite.so:${PORTSDIR}/devel/pcsc-lite
|
2008-08-26 15:33:25 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-pcsc
|
2006-06-12 18:53:46 +02:00
|
|
|
PLIST_SUB+= PCSC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PCSC="@comment "
|
2005-07-06 16:35:12 +02:00
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-08-26 17:46:41 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-doc
|
|
|
|
.endif
|
|
|
|
|
2008-08-26 15:33:25 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/configure
|
2009-05-13 07:22:16 +02:00
|
|
|
@${REINPLACE_CMD} 's|install-data-am: install-dist_apidocDATA install-dist_docDATA|install-data-am: install-dist_docDATA|' \
|
2008-08-26 16:58:16 +02:00
|
|
|
${WRKSRC}/doc/Makefile.in
|
2008-08-26 15:33:25 +02:00
|
|
|
|
2005-07-06 16:35:12 +02:00
|
|
|
post-install:
|
2014-05-13 14:32:51 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/etoken.conf ${STAGEDIR}${EXAMPLESDIR}
|
2005-07-06 16:35:12 +02:00
|
|
|
|
2014-05-13 14:32:51 +02:00
|
|
|
.include <bsd.port.mk>
|