1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/net/xmlrpc-c/Makefile
Sunpoet Po-Chuan Hsieh c401538bea - Fix build with curl 7.24.0: curl/types.h was removed (unused since Apr 2004)
Submitted by:	sunpoet (myself)
Tested by:	exp-run by linimon
Approved by:	linimon (with portmgr hat)
2012-03-08 08:04:10 +00:00

71 lines
1.7 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: xmlrpc-c
# Date created: Mar 8, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xmlrpc-c
PORTVERSION= 1.16.39
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/Xmlrpc-c%20Super%20Stable/${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= garga@FreeBSD.org
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
CONFLICTS= xmlrpc-epi-0.* xmlrpc-c-devel-[0-9]*
USE_PERL5= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:env
GNU_CONFIGURE= yes
MAKEFILE= GNUmakefile
MAKE_ARGS= LIBTOOL="${LIBTOOL}" \
CFLAGS_COMMON="${CFLAGS}"
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
LICENSE= BSD
.include <bsd.port.pre.mk>
.if !defined(WITH_DEBUG)
CFLAGS+= -DNDEBUG
.endif
.if defined(WITH_CURL)
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --enable-curl-client
.else
CONFIGURE_ARGS+= --disable-curl-client
.endif
.if defined(WITH_LIBWWW)
LIB_DEPENDS+= wwwcore.1:${PORTSDIR}/www/libwww
CONFIGURE_ARGS+= --enable-libwww-client
.else
CONFIGURE_ARGS+= --disable-libwww-client
.endif
post-extract:
@${FIND} ${WRKSRC} -type l -name blddir | ${XARGS} ${RM}
@${FIND} ${WRKSRC} -type l -name srcdir | ${XARGS} ${RM}
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
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
${WRKSRC}/lib/curl_transport/curltransaction.c \
${WRKSRC}/lib/curl_transport/xmlrpc_curl_transport.c \
${WRKSRC}/lib/curl_transport/curlmulti.c
.include <bsd.port.post.mk>