1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/net/xmlrpc-c-devel/Makefile
Chin-San Huang b6c94db304 - Fix pkg-plist
- Bump PORTREVISION

Submitted by:	Herbert J. Skuhra <h dot skuhra _at_ gmail _dot_ com> via mail
2008-11-11 21:54:44 +00:00

76 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.11.00
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= SF
EXTRACT_SUFX= .tgz
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
PKGNAMESUFFIX= -devel
MAINTAINER= chinsan@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-[0-9]*
USE_GNOME= gnometarget
USE_PERL5= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15:env
GNU_CONFIGURE= yes
MAKEFILE= GNUmakefile
MAKE_ARGS= LIBTOOL="${LIBTOOL}" \
CFLAGS_COMMON="${CFLAGS}"
CONFIGURE_ARGS+=--disable-cplusplus
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
.if !defined(WITH_DEBUG)
CFLAGS+= -DNDEBUG
.endif
.if defined(WITHOUT_CURL)
CONFIGURE_ARGS+= --disable-curl-client
.else
LIB_DEPENDS+= curl.4:${PORTSDIR}/ftp/curl
OPT_CURL= yes
.endif
.if defined(WITH_LIBWWW)
LIB_DEPENDS+= wwwcore.1:${PORTSDIR}/www/libwww
OPT_LIBWWW= yes
.else
CONFIGURE_ARGS+= --disable-libwww-client
.endif
.if !defined(OPT_LIBWWW) && !defined(OPT_CURL)
PLIST_SUB+= CLIENT="@comment "
.else
PLIST_SUB+= 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 's|netbsd|freebsd|g' \
${WRKSRC}/Makefile.config.in
${CAT} ${WRKSRC}/Makefile.config.in
.include <bsd.port.post.mk>