aboutsummaryrefslogtreecommitdiffstats
path: root/www/wsdlpull/Makefile
blob: c9b8967ea7492438584d30b69e26cb88b18b9bed (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
# ex:ts=8
# Ports collection makefile for:    wsdlpull
# Date created:         Mar 18, 2005
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   wsdlpull
DISTVERSION=    1.9.5c
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    C++ WSDL Parser

LIB_DEPENDS=    curl.3:${PORTSDIR}/ftp/curl

USE_REINPLACE=  yes
USE_AUTOTOOLS=  libtool:15
USE_GETOPT_LONG=yes
WRKSRC=     ${WRKDIR}/${DISTNAME:R}
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --includedir=${PREFIX}/include/wsdl
INSTALLS_SHLIB= yes

DOCSDIR=    ${PREFIX}/share/doc/wsdl
PORTDOCS=   *

post-patch:
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} \
        -e "s,[$$][(]prefix[)]/docs,${DOCSDIR},"

.include <bsd.port.pre.mk>

post-install:
.for dir in ${PREFIX}/include/wsdl ${PREFIX}/share/${PORTNAME}
    @${FIND} ${dir} ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${dir} -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endfor

.include <bsd.port.post.mk>