freebsd-ports/security/openct/Makefile

61 lines
1.4 KiB
Makefile
Raw Normal View History

# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
# $FreeBSD$
PORTNAME= openct
PORTVERSION= 0.6.20
PORTREVISION= 1
CATEGORIES= security
2014-05-13 14:32:51 +02:00
MASTER_SITES= SF/opensc/${PORTNAME}
MAINTAINER= ale@FreeBSD.org
COMMENT= Middleware framework for smart card terminals
2014-05-13 14:32:51 +02:00
LICENSE= LGPL21
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl
OPTIONS_DEFINE= PCSC DOCS
PCSC_DESC= Enable PC/SC support
GNU_CONFIGURE= yes
2014-05-13 14:32:51 +02:00
USES= gmake libtool pkgconfig
USE_LDCONFIG= yes
USE_RC_SUBR= openct
SUB_FILES= etoken.conf
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"
2014-05-13 14:32:51 +02:00
CONFIGURE_ARGS= --localstatedir=/var --enable-usb
PORTDOCS= *
2014-05-13 14:32:51 +02:00
PORTEXAMPLES= *
2014-05-13 14:32:51 +02:00
.include <bsd.port.options.mk>
.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
PLIST_SUB+= PCSC=""
.else
PLIST_SUB+= PCSC="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
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
post-install:
2014-05-13 14:32:51 +02:00
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/etoken.conf ${STAGEDIR}${EXAMPLESDIR}
2014-05-13 14:32:51 +02:00
.include <bsd.port.mk>