summaryrefslogtreecommitdiff
path: root/net/xmlrpc-c/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/xmlrpc-c/Makefile')
-rw-r--r--net/xmlrpc-c/Makefile39
1 files changed, 30 insertions, 9 deletions
diff --git a/net/xmlrpc-c/Makefile b/net/xmlrpc-c/Makefile
index b0ecea6d6f0c..e872d66cdd16 100644
--- a/net/xmlrpc-c/Makefile
+++ b/net/xmlrpc-c/Makefile
@@ -7,32 +7,53 @@
#
PORTNAME= xmlrpc-c
-PORTVERSION= 0.9.10
-PORTREVISION= 2
+PORTVERSION= 1.06.21
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
+EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= XML-RPC library for C and C++
-LIB_DEPENDS= wwwcore.1:${PORTSDIR}/www/libwww
-RUN_DEPENDS= ${SITE_PERL}/Frontier/Client.pm:${PORTSDIR}/net/p5-Frontier-RPC
+OPTIONS= CURL "Compile with curl support" on \
+ LIBWWW "Compile with libwww support" off
-USE_AUTOTOOLS= libtool:15
+USE_AUTOTOOLS= libtool:15:env
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_PERL5= yes
+MAKEFILE= GNUmakefile
+MAKE_ENV+= CFLAGS_FREEBSD="${CFLAGS}" \
+ CXXFLAGS_FREEBSD="${CXXFLAGS}"
CONFLICTS= xmlrpc-epi-0.*
-MAN1= meerkat-app-list.1 xml-rpc-api2cpp.1 xmlrpc-c-config.1 \
- query-meerkat.1 xml-rpc-api2txt.1
-MAN7= xmlrpc-c.7
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LIBWWW) || (!defined(WITHOUT_LIBWWW) && exists(${LOCALBASE}/lib/libwwwcore.so.1))
+LIB_DEPENDS+= wwwcore.1:${PORTSDIR}/www/libwww
+OPT_LIBWWW= yes
+.else
+CONFIGURE_ARGS+= --disable-libwww-client
+.endif
+
+.if !defined(WITHOUT_CURL)
+LIB_DEPENDS+= curl.4:${PORTSDIR}/ftp/curl
+OPT_CURL= yes
+.else
+CONFIGURE_ARGS+= --disable-curl-client
+.endif
+
+.if !defined(OPT_LIBWWW) && !defined(OPT_CURL)
+PLIST_SUB+= CLIENT="@comment "
+.else
+PLIST_SUB+= CLIENT=""
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
${WRKSRC}/configure
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>