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
|
2008-03-10 20:47:37 +01:00
|
|
|
PORTVERSION= 1.06.24
|
2001-03-08 08:58:54 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2008-03-10 20:47:37 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
2007-12-18 20:50:17 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2001-03-08 08:58:54 +01:00
|
|
|
|
2001-09-11 09:19:46 +02:00
|
|
|
MAINTAINER= ports@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
|
|
|
|
2007-12-18 20:50:17 +01:00
|
|
|
OPTIONS= CURL "Compile with curl support" on \
|
|
|
|
LIBWWW "Compile with libwww support" off
|
2001-03-08 08:58:54 +01:00
|
|
|
|
2007-12-18 20:50:17 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15:env
|
2001-03-08 08:58:54 +01:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-08-15 02:56:24 +02:00
|
|
|
USE_LDCONFIG= yes
|
2007-09-30 06:55:31 +02:00
|
|
|
USE_PERL5= yes
|
2007-12-18 20:50:17 +01:00
|
|
|
MAKEFILE= GNUmakefile
|
|
|
|
MAKE_ENV+= CFLAGS_FREEBSD="${CFLAGS}" \
|
|
|
|
CXXFLAGS_FREEBSD="${CXXFLAGS}"
|
2001-03-08 08:58:54 +01:00
|
|
|
|
2007-02-20 22:10:40 +01:00
|
|
|
CONFLICTS= xmlrpc-epi-0.*
|
|
|
|
|
2007-12-18 20:50:17 +01:00
|
|
|
.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
|
2001-10-04 01:49:39 +02:00
|
|
|
|
2005-06-02 22:28:41 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2007-12-18 20:50:17 +01:00
|
|
|
.include <bsd.port.post.mk>
|