update Sun Jan 17 06:37:00 PST 2010
[pkgsrc.git] / textproc / xmlrpc-c / Makefile
1 # $NetBSD: Makefile,v 1.15 2010/01/17 12:02:47 wiz Exp $
2
3 DISTNAME=       xmlrpc-c-1.06.38
4 # the "super stable" branch
5 PKGNAME=        xmlrpc-c-ss-1.06.38
6 PKGREVISION=    3
7 CATEGORIES=     textproc devel
8 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=xmlrpc-c/}
9 EXTRACT_SUFX=   .tgz
10
11 MAINTAINER=     pkgsrc-users@NetBSD.org
12 HOMEPAGE=       http://xmlrpc-c.sourceforge.net/
13 COMMENT=        Library for writing an XML-RPC server or client in C or C++
14
15 CONFLICTS+=     xmlrpc-c-[0-9]*
16 SUPERSEDES+=    xmlrpc-c-[0-9]*
17
18 PKG_DESTDIR_SUPPORT=    user-destdir
19
20 # Sometimes can't open ../xmltok/libxmlrpc_xmltok.la
21 MAKE_JOBS_SAFE=         no
22
23 USE_LANGUAGES=          c99 c++
24 USE_LIBTOOL=            yes
25 USE_TOOLS+=             gmake
26 GNU_CONFIGURE=          yes
27 MAKE_FILE=              GNUmakefile
28 MAKE_ENV=               CFLAGS_COMMON=${CFLAGS:M*:Q}
29 MAKE_ENV+=              CXXFLAGS_COMMON=${CXXFLAGS:M*:Q}
30 MAKE_ENV+=              LADD=${LDFLAGS:M*:Q}
31 TEST_TARGET=            check
32
33 SUBST_CLASSES+= pthread
34 SUBST_FILES.pthread=    xmlrpc-c-config.in xmlrpc-c-config.test.in
35 PTHREAD_LINKFLAGS=      ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
36 SUBST_SED.pthread=      -e s/-lpthread/${PTHREAD_LINKFLAGS:Q}/
37 SUBST_SED.pthread+=     -e "s/-L\(.\)libdir/-L\1libdir ${COMPILER_RPATH_FLAG}\1libdir/"
38 SUBST_STAGE.pthread=    pre-configure
39 SUBST_MESSAGE.pthread=  Fixing config scripts.
40
41 .include "../../www/libwww/buildlink3.mk"
42 .include "../../www/curl/buildlink3.mk"
43 .include "../../mk/pthread.buildlink3.mk"
44 .include "../../mk/bsd.pkg.mk"