Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / deegree-wfs / Makefile
1 # Created by: wenheping@gmail.com
2 # $FreeBSD$
3
4 PORTNAME=       wfs
5 PORTVERSION=    2.5
6 PORTREVISION=   1
7 CATEGORIES=     graphics java
8 MASTER_SITES=   http://download.deegree.org/deegree${PORTVERSION}/
9 PKGNAMEPREFIX=  deegree-
10 DISTNAME=       ${PKGNAMEPREFIX}${PORTNAME}_${PORTVERSION}
11
12 MAINTAINER=     ports@FreeBSD.org
13 COMMENT=        Deegree Web Feature Service(WFS)
14
15 LICENSE=        GPL21+
16
17 USES=           zip
18 USE_JAVA=       yes
19
20 NO_BUILD=       yes
21 TOMCATDIR=      ${PREFIX}/${TOMCATVER}
22 APPHOME=        ${LOCALBASE}/${TOMCATVER}
23 WEBAPPDIR=      ${TOMCATDIR}/webapps
24 PORTDOCS=       README.txt deegree_wfs_documentation_en.pdf
25 DOCSDIR=        ${PREFIX}/share/doc/deegree-wfs
26 PLIST_SUB=      TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||} WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
27 SUB_FILES=      pkg-message
28 SUB_LIST=       TCPORT=${TCPORT}
29
30 OPTIONS_SINGLE= AS
31 OPTIONS_SINGLE_AS=      TOMCAT6 TOMCAT7
32 OPTIONS_DEFAULT=        TOMCAT6
33 OPTIONS_DEFINE= DOCS
34
35 .include <bsd.port.options.mk>
36
37 .if ${PORT_OPTIONS:MTOMCAT6}
38 TOMCATVER=      apache-tomcat-6.0
39 TCPORT=         8180
40 BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat6
41 RUN_DEPENDS+=   ${APPHOME}/bin/bootstrap.jar:www/tomcat6
42 .endif
43
44 .if ${PORT_OPTIONS:MTOMCAT7}
45 TOMCATVER=      apache-tomcat-7.0
46 TCPORT=         8080
47 BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat7
48 RUN_DEPENDS+=   ${APPHOME}/bin/bootstrap.jar:www/tomcat7
49 .endif
50
51 post-extract:
52         @${MKDIR} ${WRKDIR}/${PORTDIRNAME}
53         @${TAR} xf ${WRKDIR}/deegree-wfs.war -C ${WRKDIR}/${PORTDIRNAME}
54
55 do-install:
56         cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WEBAPPDIR}/${PORTDIRNAME}
57
58 do-install-DOCS-on:
59         @${MKDIR} ${STAGEDIR}${DOCSDIR}
60         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${STAGEDIR}${DOCSDIR}
61
62 .include <bsd.port.mk>