1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Use OPTIONS helpers.

Approved by:	portmgr (blanket)
This commit is contained in:
Adam Weinberger 2014-07-03 17:34:11 +00:00
parent f8b0d88fe6
commit bfbf38cbe7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360426

View File

@ -15,6 +15,7 @@ LICENSE= GPLv3
USES= charsetfix gmake makeinfo perl5 tar:xz USES= charsetfix gmake makeinfo perl5 tar:xz
USE_PERL5= build USE_PERL5= build
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
OPTIONS_SUB= yes
OPTIONS_RADIO= SSL OPTIONS_RADIO= SSL
OPTIONS_RADIO_SSL=GNUTLS OPENSSL OPTIONS_RADIO_SSL=GNUTLS OPENSSL
@ -23,6 +24,23 @@ OPTIONS_DEFAULT=OPENSSL IDN
PCRE_DESC= Support Perl regular expressions in addition to POSIX PCRE_DESC= Support Perl regular expressions in addition to POSIX
IPV6_CONFIGURE_ENABLE= ipv6
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
NLS_CPPFLAGS= -I${LOCALBASE}/include
NLS_LDFLAGS= -L${LOCALBASE}/lib
IDN_USES= iconv
IDN_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn
IDN_CONFIGURE_ENABLE= iri
IDN_CONFIGURE_ON= --with-libidn=${LOCALBASE}
PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
PCRE_CPPFLAGS= -I${LOCALBASE}/include
PCRE_LDFLAGS= -L${LOCALBASE}/lib
PCRE_CONFIGURE_ENV_OFF= ac_cv_header_pcre_h=no
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENSSL} .if ${PORT_OPTIONS:MOPENSSL}
@ -39,40 +57,6 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--without-ssl CONFIGURE_ARGS+=--without-ssl
.endif .endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=--enable-ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--enable-nls
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MIDN}
LIB_DEPENDS+= libidn.so:${PORTSDIR}/dns/libidn
CONFIGURE_ARGS+=--enable-iri --with-libidn=${LOCALBASE}
USES+= iconv
.else
CONFIGURE_ARGS+=--disable-iri
.endif
.if ${PORT_OPTIONS:MPCRE}
# Wget will pick pcre automatically and link with it if it is present.
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.else
CONFIGURE_ENV+= ac_cv_header_pcre_h=no
.endif
INFO= wget INFO= wget
# eliminate gmakism # eliminate gmakism