freebsd-ports/net/xmlrpc-c/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

73 lines
1.5 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.06.32
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF
EXTRACT_SUFX= .tgz
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= chinsan@FreeBSD.org
COMMENT= XML-RPC library for C and C++
MAKE_JOBS_UNSAFE= yes
OPTIONS= DEBUG "Compile with debugging information" off \
CURL "Compile with curl support" on \
LIBWWW "Compile with libwww support" off
CONFLICTS= xmlrpc-epi-0.* xmlrpc-c-devel-[0-9]*
USE_GNOME= gnometarget
USE_PERL5= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:22:env
GNU_CONFIGURE= yes
MAKEFILE= GNUmakefile
MAKE_ARGS= LIBTOOL="${LIBTOOL}" \
CFLAGS_COMMON="${CFLAGS}" \
CXXFLAGS_COMMON="${CXXFLAGS}"
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.5:${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'
.include <bsd.port.post.mk>