mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
a22ed253d6
Modernize LIB_DEPENDS Strip binaries
87 lines
2.1 KiB
Makefile
87 lines
2.1 KiB
Makefile
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= neon29
|
|
PORTVERSION= 0.29.6
|
|
PORTREVISION= 6
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.webdav.org/neon/
|
|
DISTNAME= neon-${PORTVERSION}
|
|
|
|
MAINTAINER= lev@FreeBSD.org
|
|
COMMENT= An HTTP and WebDAV client library for Unix systems
|
|
|
|
CONFLICTS= neon2[^9]-[0-9]*
|
|
|
|
OPTIONS_DEFINE= CA_BUNDLE DOCS GSSAPI NLS OPENSSL PROXY
|
|
OPTIONS_DEFAULT= CA_BUNDLE EXPAT GSSAPI NLS OPENSSL
|
|
OPTIONS_SINGLE= XML
|
|
OPTIONS_SINGLE_XML= EXPAT LIBXML
|
|
|
|
CA_BUNDLE_DESC= Install CA bundle for OpenSSL
|
|
LIBXML_DESC= libxml2 XML parser support
|
|
PROXY_DESC= libproxy support
|
|
XML_DESC= XML parser library
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USES= pathfix libtool
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-shared \
|
|
--with-libs=${LOCALBASE}:${PREFIX}
|
|
|
|
CA_BUNDLE_CONFIGURE_ON= --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt
|
|
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCA_BUNDLE} && !${PORT_OPTIONS:MOPENSSL}
|
|
WARNING+= "OpenSSL need for CA bundle support"
|
|
WARNING+= "Enable the OPENSSL option or disable the CA_BUNDLE option"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXPAT}
|
|
CONFIGURE_ARGS+=--with-expat
|
|
LIB_DEPENDS+= libexpat.so:${PORTSDIR}/textproc/expat2
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLIBXML}
|
|
CONFIGURE_ARGS+=--with-libxml2
|
|
USE_GNOME+= libxml2
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
|
CONFIGURE_ARGS+=--with-ssl
|
|
USE_OPENSSL= yes
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if ! ${PORT_OPTIONS:MGSSAPI}
|
|
CONFIGURE_ARGS+=--without-gssapi
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPROXY}
|
|
CONFIGURE_ARGS+=--with-libproxy
|
|
LIB_DEPENDS+= libproxy.so:${PORTSDIR}/net/libproxy
|
|
.else
|
|
CONFIGURE_ARGS+=--without-libproxy
|
|
.endif
|
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
|
DOCSDIR= ${PREFIX}/share/doc/neon
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/*.3 ${STAGEDIR}${MANPREFIX}/man/man3
|
|
${MAKE} -C ${WRKSRC} install-html ${MAKE_ARGS}
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libneon.so.27.*
|
|
|
|
.include <bsd.port.mk>
|