1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/net/xmlrpc-c/Makefile
John Marino b90f611b9c net category: Remove $PTHREAD_LIBS
openafs did not pass check-plist (pre-existing) so fixed and bumped.
Also, pkg-plist was sorted.  mediatomb and spread also fail plist-checks
but they weren't fixed.

approved by:	PTHREAD blanket
2015-03-25 23:51:05 +00:00

55 lines
1.3 KiB
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= xmlrpc-c
PORTVERSION= 1.25.30
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/Xmlrpc-c%20Super%20Stable/${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= XML-RPC library for C and C++
LICENSE= BSD3CLAUSE
OPTIONS_DEFINE= DEBUG CURL LIBWWW
OPTIONS_DEFAULT=CURL LIBWWW
LIBWWW_DESC= Compile with libwww support
CONFLICTS= xmlrpc-epi-0.* xmlrpc-c-devel-[0-9]*
USES= gmake perl5 tar:tgz
GNU_CONFIGURE= yes
MAKEFILE= GNUmakefile
MAKE_ARGS= CFLAGS_COMMON="${CFLAGS}"
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
CURL_CONFIGURE_ENABLE= curl-client
LIBWWW_LIB_DEPENDS= libwwwcore.so:${PORTSDIR}/www/libwww
LIBWWW_CONFIGURE_ENABLE=libwww-client
.include <bsd.port.pre.mk>
.if empty(PORT_OPTIONS:MDEBUG)
CFLAGS+= -DNDEBUG
.endif
post-extract:
@${FIND} ${WRKSRC} -type l -name blddir -delete
@${FIND} ${WRKSRC} -type l -name srcdir -delete
post-patch:
@${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
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxmlrpc*.so.[37].25
.include <bsd.port.post.mk>