7bfae932f7
as a stand-in for "are we running on gcc". For people already testing powerpc on clang, it is possible that they already have both compilers in base. Thus, the assumption that "gcc is in base" (e.g. libstdc++.so exists) always means "force use of GCC" is already broken. It will be for everyone on -CURRENT once the switch is made. While here, standardize on compiler:c++11-lang instead of -lib (they are equivalent these days), pet portlint, and do some other cleanup. Approved by: portmgr (tier-2 blanket)
78 lines
1.9 KiB
Makefile
78 lines
1.9 KiB
Makefile
# Created by: Bruce M Simpson
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= opensc
|
|
PORTVERSION= 0.19.0
|
|
CATEGORIES= security devel
|
|
MASTER_SITES= https://github.com/OpenSC/OpenSC/releases/download/${PORTVERSION}/
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
COMMENT= Libraries and utilities to access smart cards
|
|
|
|
LICENSE= LGPL21
|
|
|
|
USES= autoreconf compiler gmake libtool pkgconfig ssl
|
|
|
|
OPTIONS_SINGLE= BACKEND
|
|
OPTIONS_SINGLE_BACKEND=PCSC OPENCT CTAPI
|
|
OPTIONS_DEFINE= SM NOTIFY DOCS MANPAGES
|
|
OPTIONS_DEFAULT=PCSC SM NOTIFY MANPAGES
|
|
OPTIONS_SUB= yes
|
|
|
|
PCSC_DESC= Use PC/SC backend
|
|
OPENCT_DESC= Use OpenCT backend
|
|
CTAPI_DESC= Use CT-API backend
|
|
SM_DESC= Enable secure messaging support
|
|
NOTIFY_DESC= Enable notification support
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
INSTALL_TARGET= install-strip
|
|
|
|
CONFIGURE_ENV= \
|
|
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
|
|
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto"
|
|
CONFIGURE_ARGS= --with-completiondir=${PREFIX}/etc/bash_completion.d
|
|
|
|
PORTDOCS= *
|
|
|
|
MANPAGES_CONFIGURE_ENABLE= man
|
|
|
|
OPENCT_LIB_DEPENDS= libopenct.so:security/openct
|
|
OPENCT_CONFIGURE_ENABLE= openct
|
|
|
|
PCSC_LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite
|
|
PCSC_CONFIGURE_ENABLE= pcsc
|
|
|
|
CTAPI_CONFIGURE_ENABLE= ctapi
|
|
|
|
SM_CONFIGURE_ENABLE= sm
|
|
|
|
NOTIFY_USES= gnome
|
|
NOTIFY_USE= GNOME=glib20
|
|
NOTIFY_CONFIGURE_ENABLE= notify
|
|
|
|
DOCS_CONFIGURE_ENABLE= doc
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES}
|
|
BUILD_DEPENDS+= xsltproc:textproc/libxslt \
|
|
${LOCALBASE}/share/xsl/docbook/html/docbook.xsl: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
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '/-Wno-unused-but-set-variable/d' \
|
|
${WRKSRC}/src/tools/Makefile.am
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|