- Build xmlrpc-c tools, optional, on by default

- I'm not bumping PORTREVISION now since new version 1.25.3 will be committed
  soon

PR:		ports/153648
Submitted by:	Anonymous <swell.k@gmail.com>
This commit is contained in:
Renato Botelho 2011-02-23 12:29:34 +00:00
parent 460dea0dff
commit deb9de4a24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=269535
3 changed files with 22 additions and 2 deletions

View file

@ -17,7 +17,8 @@ COMMENT= XML-RPC library for C and C++
OPTIONS= DEBUG "Compile with debugging information" off \
CURL "Compile with curl support" on \
LIBWWW "Compile with libwww support" on
LIBWWW "Compile with libwww support" on \
TOOLS "Build xmlrpc-c tools" on
CONFLICTS= xmlrpc-epi-0.* xmlrpc-c-[0-9]*
@ -55,7 +56,19 @@ CONFIGURE_ARGS+= --enable-libwww-client
CONFIGURE_ARGS+= --disable-libwww-client
.endif
.if defined(WITH_TOOLS)
CONFIGURE_ARGS+= --enable-tools
PLIST_SUB+= TOOLS=""
MAN1+= xml-rpc-api2cpp.1 xml-rpc-api2txt.1
.else
CONFIGURE_ARGS+= --disable-tools
PLIST_SUB+= TOOLS="@comment "
.endif
.if defined(WITHOUT_LIBWWW) && defined(WITHOUT_CURL)
. if defined(WITH_TOOLS)
IGNORE= xmlrpc-c tools requires CURL or LIBWWW support enabled
. endif
PLIST_SUB+= CLIENT="@comment "
.else
PLIST_SUB+= CLIENT=""
@ -68,5 +81,7 @@ post-extract:
post-patch:
@${GREP} -lR '\-lpthread' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|-lpthread|${PTHREAD_LIBS}|g'
@${REINPLACE_CMD} -e '/#include.*features.h/d' \
${WRKSRC}/tools/xmlrpc_pstream/xmlrpc_pstream.cpp
.include <bsd.port.post.mk>

View file

@ -1,3 +1,2 @@
MD5 (xmlrpc-c-1.23.2.tar.bz2) = 931031a7631c3ae6704f0cdd5dab4acf
SHA256 (xmlrpc-c-1.23.2.tar.bz2) = 2164f6a296b7d81558badcb3527d524e9468ea6394baaaacdcda2988f33de06b
SIZE (xmlrpc-c-1.23.2.tar.bz2) = 577301

View file

@ -1,4 +1,10 @@
bin/xmlrpc-c-config
%%TOOLS%%bin/xmlrpc
%%TOOLS%%bin/xmlrpc_transport
%%TOOLS%%bin/xml-rpc-api2cpp
%%TOOLS%%bin/xml-rpc-api2txt
%%TOOLS%%bin/xmlrpc_cpp_proxy
%%TOOLS%%bin/xmlrpc_pstream
include/XmlRpcCpp.h
include/xmlrpc-c/abyss.h
include/xmlrpc-c/abyss_unixsock.h