2001-03-08 08:58:54 +01:00
|
|
|
# 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
|
2009-04-10 20:12:06 +02:00
|
|
|
PORTVERSION= 1.18.00
|
2001-03-08 08:58:54 +01:00
|
|
|
CATEGORIES= net
|
2009-04-10 20:12:06 +02:00
|
|
|
MASTER_SITES= LOCAL/chinsan/xmlrpc-c
|
2009-05-25 22:44:45 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
2007-12-18 20:50:17 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2008-08-24 09:35:18 +02:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
2001-03-08 08:58:54 +01:00
|
|
|
|
2008-08-24 09:35:18 +02:00
|
|
|
MAINTAINER= chinsan@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= XML-RPC library for C and C++
|
2001-03-08 08:58:54 +01:00
|
|
|
|
2008-03-31 12:00:33 +02:00
|
|
|
OPTIONS= DEBUG "Compile with debugging information" off \
|
|
|
|
CURL "Compile with curl support" on \
|
2009-05-25 22:44:45 +02:00
|
|
|
LIBWWW "Compile with libwww support" on \
|
|
|
|
CPLUSPLUS "Enable cpp headers and libs" off
|
2001-03-08 08:58:54 +01:00
|
|
|
|
2008-09-02 11:32:29 +02:00
|
|
|
CONFLICTS= xmlrpc-epi-0.* xmlrpc-c-[0-9]*
|
2008-03-31 12:00:33 +02:00
|
|
|
|
|
|
|
USE_GNOME= gnometarget
|
|
|
|
USE_PERL5= yes
|
2001-03-08 08:58:54 +01:00
|
|
|
USE_GMAKE= yes
|
2008-03-31 12:00:33 +02:00
|
|
|
USE_AUTOTOOLS= libtool:15:env
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-12-18 20:50:17 +01:00
|
|
|
MAKEFILE= GNUmakefile
|
2008-03-31 12:00:33 +02:00
|
|
|
MAKE_ARGS= LIBTOOL="${LIBTOOL}" \
|
2008-09-02 11:32:29 +02:00
|
|
|
CFLAGS_COMMON="${CFLAGS}"
|
|
|
|
CONFIGURE_ARGS+=--disable-cplusplus
|
2008-03-31 12:00:33 +02:00
|
|
|
USE_LDCONFIG= yes
|
2007-02-20 22:10:40 +01:00
|
|
|
|
2007-12-18 20:50:17 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-03-31 12:00:33 +02:00
|
|
|
.if !defined(WITH_DEBUG)
|
|
|
|
CFLAGS+= -DNDEBUG
|
2007-12-18 20:50:17 +01:00
|
|
|
.endif
|
|
|
|
|
2009-05-25 22:44:45 +02:00
|
|
|
.if defined(WITH_CPLUSPLUS)
|
|
|
|
CONFIGURE_ARGS+= --enable-cplusplus
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-cplusplus
|
|
|
|
.endif
|
|
|
|
|
2008-03-31 12:00:33 +02:00
|
|
|
.if defined(WITHOUT_CURL)
|
|
|
|
CONFIGURE_ARGS+= --disable-curl-client
|
|
|
|
.else
|
2009-01-23 16:43:14 +01:00
|
|
|
LIB_DEPENDS+= curl.5:${PORTSDIR}/ftp/curl
|
2007-12-18 20:50:17 +01:00
|
|
|
OPT_CURL= yes
|
2008-03-31 12:00:33 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LIBWWW)
|
|
|
|
LIB_DEPENDS+= wwwcore.1:${PORTSDIR}/www/libwww
|
|
|
|
OPT_LIBWWW= yes
|
2007-12-18 20:50:17 +01:00
|
|
|
.else
|
2008-03-31 12:00:33 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-libwww-client
|
2007-12-18 20:50:17 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(OPT_LIBWWW) && !defined(OPT_CURL)
|
|
|
|
PLIST_SUB+= CLIENT="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CLIENT=""
|
|
|
|
.endif
|
2001-10-04 01:49:39 +02:00
|
|
|
|
2008-04-17 02:00:41 +02:00
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKSRC} -type l -name blddir | ${XARGS} ${RM}
|
|
|
|
@${FIND} ${WRKSRC} -type l -name srcdir | ${XARGS} ${RM}
|
|
|
|
|
2005-06-02 22:28:41 +02:00
|
|
|
post-patch:
|
2008-03-31 12:00:33 +02:00
|
|
|
@${GREP} -lR '\-lpthread' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|-lpthread|${PTHREAD_LIBS}|g'
|
2005-06-02 22:28:41 +02:00
|
|
|
|
2007-12-18 20:50:17 +01:00
|
|
|
.include <bsd.port.post.mk>
|