aboutsummaryrefslogtreecommitdiffstats
path: root/net/xmlrpc-epi/Makefile
blob: 555d382ca20180e080c50cb5b8cc435cd1caffcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:    xmlrpc-epi
# Date created:         19 February 2007
# Whom:             Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#

PORTNAME=   xmlrpc-epi
PORTVERSION=    0.54
CATEGORIES= net
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    A general purpose implementation of the xmlrpc specification in C

LIB_DEPENDS=    expat.6:${PORTSDIR}/textproc/expat2

USE_GMAKE=  yes
USE_ICONV=  yes
USE_LDCONFIG=   yes
USE_AUTOTOOLS=  libtool:15
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include"       \
        LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -liconv"
CONFIGURE_ARGS= --program-transform="s|^|xre-|" \
        --with-expat=/usr/local

PORTDOCS=   AUTHORS ChangeLog NEWS README

METHODS=    TestNormal TestFault TestStruct TestArray TestBoolean   \
        TestInt TestString TestDouble TestBase64 TestDateTime

CONFLICTS=  xmlrpc-c-0.* xmlrpc-c-devel-[0-9]*

pre-configure:
    ${FIND} ${WRKSRC} -name Makefile.in | ${XARGS}  \
    ${REINPLACE_CMD} -e '/^LTCOMPILE =/s/--mode=/--tag=CC --mode=/'
    ${FIND} ${WRKSRC} -name Makefile.in | ${XARGS}  \
    ${REINPLACE_CMD} -e '/^LINK =/s/--mode=/--tag=CC --mode=/'

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

regression-test:
.for tm in ${METHODS}
    cd ${WRKSRC}/sample &&  \
    ./sample -method method_${tm}
.endfor

.include <bsd.port.mk>