2017-01-01 17:05:55 +01:00
# $NetBSD: Makefile,v 1.41 2017/01/01 16:06:01 adam Exp $
2007-02-24 12:00:51 +01:00
2013-11-14 09:01:11 +01:00
DISTNAME = xmlrpc-c-1.25.26
2009-10-29 18:39:11 +01:00
# the "super stable" branch
2011-02-22 15:23:24 +01:00
PKGNAME = ${ DISTNAME : S /-c-/-c-ss-/ }
2017-01-01 17:05:55 +01:00
PKGREVISION = 4
2007-02-24 12:00:51 +01:00
CATEGORIES = textproc devel
MASTER_SITES = ${ MASTER_SITE_SOURCEFORGE : =xmlrpc-c/ }
EXTRACT_SUFX = .tgz
2015-01-15 14:02:26 +01:00
#/usr/bin/ld: ./libxmlrpc_server++.a(registry.o): relocation R_X86_64_32S against `_ZTVN8xmlrpc_c8callInfoE' can not be used when making a shared object; recompile with -fPIC
#./libxmlrpc_server++.a: could not read symbols: Bad value
MAKE_JOBS_SAFE = no
2007-02-24 12:00:51 +01:00
MAINTAINER = pkgsrc-users@NetBSD.org
HOMEPAGE = http://xmlrpc-c.sourceforge.net/
COMMENT = Library for writing an XML-RPC server or client in C or C++
2011-02-22 15:23:24 +01:00
LICENSE = modified-bsd
2007-02-24 12:00:51 +01:00
2009-10-29 18:39:11 +01:00
CONFLICTS += xmlrpc-c-[ 0-9] *
2009-10-30 07:14:54 +01:00
SUPERSEDES += xmlrpc-c-[ 0-9] *
2009-10-29 18:39:11 +01:00
2007-12-07 21:41:03 +01:00
# Sometimes can't open ../xmltok/libxmlrpc_xmltok.la
2013-09-12 20:52:54 +02:00
#MAKE_JOBS_SAFE= no
2007-12-07 21:41:03 +01:00
2009-10-28 10:25:23 +01:00
USE_LANGUAGES = c99 c++
USE_LIBTOOL = yes
USE_TOOLS += gmake
GNU_CONFIGURE = yes
MAKE_FILE = GNUmakefile
MAKE_ENV = CFLAGS_COMMON = ${ CFLAGS : M * : Q }
MAKE_ENV += CXXFLAGS_COMMON = ${ CXXFLAGS : M * : Q }
MAKE_ENV += LADD = ${ LDFLAGS : M * : Q }
TEST_TARGET = check
2007-02-24 12:00:51 +01:00
2010-06-15 11:18:10 +02:00
PTHREAD_LINKFLAGS = ${ PTHREAD_LDFLAGS } ${ PTHREAD_LIBS }
2011-02-22 15:23:24 +01:00
SUBST_CLASSES += pthread
2007-02-26 22:03:12 +01:00
SUBST_STAGE.pthread = pre-configure
SUBST_MESSAGE.pthread = Fixing config scripts.
2011-04-06 09:45:47 +02:00
SUBST_FILES.pthread = xmlrpc-c-config.* xmlrpc-c-config.test.*
2011-02-22 15:23:24 +01:00
SUBST_SED.pthread = -e 's/-lpthread/${PTHREAD_LINKFLAGS:Q}/'
SUBST_SED.pthread += -e 's/-L\(.\)libdir/-L\1libdir ${COMPILER_RPATH_FLAG}\1libdir/'
2007-02-26 15:56:30 +01:00
2016-02-26 11:24:10 +01:00
SUBST_CLASSES.MirBSD += xopen
2013-12-02 00:25:31 +01:00
SUBST_STAGE.xopen = pre-configure
SUBST_MESSAGE.xopen = Removing _XOPEN_SOURCE lines.
SUBST_FILES.xopen += lib/abyss/src/data.c lib/abyss/src/response.c lib/abyss/src/conf.c
SUBST_FILES.xopen += lib/abyss/src/http.c lib/abyss/src/server.c lib/abyss/src/handler.c
SUBST_FILES.xopen += lib/curl_transport/curltransaction.c lib/curl_transport/curlmulti.c
SUBST_FILES.xopen += lib/curl_transport/xmlrpc_curl_transport.c lib/libutil/select.c
SUBST_FILES.xopen += lib/libutil/error.c lib/libutil/make_printable.c lib/libutil/asprintf.c
SUBST_FILES.xopen += lib/util/cmdline_parser.c lib/expat/xmlwf/xmlfile.c src/xmlrpc_datetime.c
SUBST_FILES.xopen += src/method.c src/xmlrpc_parse.c src/test/value_datetime.c src/xmlrpc_client.c
SUBST_FILES.xopen += src/xmlrpc_server_info.c src/xmlrpc_server_abyss.c tools/lib/dumpvalue.c
SUBST_FILES.xopen += tools/xmlrpc/xmlrpc.c tools/xmlrpc_transport/xmlrpc_transport.c
SUBST_SED.xopen = -e '/^\#define _XOPEN_SOURCE/d'
2013-01-05 11:37:56 +01:00
LDFLAGS.OpenBSD += ${ PTHREAD_LINKFLAGS }
2013-12-02 00:25:31 +01:00
LDFLAGS.MirBSD += ${ PTHREAD_LINKFLAGS }
2013-01-05 11:37:56 +01:00
2007-02-24 12:00:51 +01:00
. i n c l u d e "../../www/curl/buildlink3.mk"
2011-02-22 15:23:24 +01:00
. i n c l u d e "../../www/libwww/buildlink3.mk"
2007-02-26 15:56:30 +01:00
. i n c l u d e "../../mk/pthread.buildlink3.mk"
2007-02-24 12:00:51 +01:00
. i n c l u d e "../../mk/bsd.pkg.mk"