freebsd-ports/security/opensc/Makefile
Tijl Coosemans a374acb969 By default libtool replaces -export-symbols <file> with -retain-symbols-file
<file> on ELF systems, but this doesn't really do what -export-symbols is
meant to do.  On GNU ELF systems it converts <file> to a simple version
script first and then uses -version-script instead of -retain-symbols-file.
Let USES=libtool patch libtool scripts to do this on all systems with GNU
ld(1).

Bump PORTREVISION on all ports where the build log contains -export-symbols.

audio/calf: This port builds a module that now exports only one function,
but it also builds a number of executables that link to this module and
expect to see other functions.  Because it's already a bit dodgy to link to
a module (libtool warns about this) let the module continue to export only
one function and instead build an ordinary library from the same source that
the executables can link to.  Fix a number of other issues in the same
Makefile.am and clean up the port Makefile.

japanese/scim-honoka: Tries to hide all symbols that start with an
underscore, but because this library is written in C++ all symbols start
with _Z so it ends up hiding everything.  Just don't hide anything at all
like the textproc/scim configure script does.

multimedia/schroedinger: Apply an upstream patch.

textproc/scim-input-pad: Same as japanese/scim-honoka.

PR:		201922
Approved by:	portmgr (antoine)
Exp-run by:	antoine
2015-08-02 15:03:19 +00:00

82 lines
1.8 KiB
Makefile

# Created by: Bruce M Simpson
# $FreeBSD$
PORTNAME= opensc
PORTVERSION= 0.14.0
PORTREVISION= 1
CATEGORIES= security devel
MASTER_SITES= SF/${PORTNAME}/OpenSC/${DISTNAME}
MAINTAINER= ale@FreeBSD.org
COMMENT= Libraries and utilities to access smart cards
LICENSE= LGPL21
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND=PCSC OPENCT CTAPI
OPTIONS_DEFINE= SM DOCS MANPAGES
OPTIONS_DEFAULT=PCSC SM MANPAGES
PCSC_DESC= Use PC/SC backend
OPENCT_DESC= Use OpenCT backend
CTAPI_DESC= Use CT-API backend
SM_DESC= Enable secure messaging support
USES= libtool pkgconfig gmake
USE_OPENSSL= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CONFIGURE_ENV= \
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto"
PORTDOCS= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES}
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
CONFIGURE_ENV+= XSLTPROC="${LOCALBASE}/bin/xsltproc"
CONFIGURE_ARGS+=--with-xsl-stylesheetsdir=${LOCALBASE}/share/xsl/docbook
.else
CONFIGURE_ENV+= XSLTPROC="${FALSE}"
CONFIGURE_ARGS+=--without-xsl-stylesheetsdir
.endif
.if ${PORT_OPTIONS:MMANPAGES}
PLIST_SUB+= MANPAGES=""
.else
CONFIGURE_ARGS+=--disable-man
PLIST_SUB+= MANPAGES="@comment "
.endif
.if ${PORT_OPTIONS:MOPENCT}
LIB_DEPENDS+= libopenct.so:${PORTSDIR}/security/openct
CONFIGURE_ARGS+=--enable-openct
.endif
.if ${PORT_OPTIONS:MPCSC}
LIB_DEPENDS+= libpcsclite.so:${PORTSDIR}/devel/pcsc-lite
.else
CONFIGURE_ARGS+=--disable-pcsc
.endif
.if ${PORT_OPTIONS:MCTAPI}
CONFIGURE_ARGS+=--enable-ctapi
.endif
.if ${PORT_OPTIONS:MSM}
PLIST_SUB+= SM=""
.else
CONFIGURE_ARGS+=--disable-sm
PLIST_SUB+= SM="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=--enable-doc
.endif
.include <bsd.port.mk>