1 # Created by: wenheping@gmail.com
7 CATEGORIES= graphics java
8 MASTER_SITES= http://download.deegree.org/deegree${PORTVERSION}/
9 PKGNAMEPREFIX= deegree-
10 DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}_${PORTVERSION}
12 MAINTAINER= ports@FreeBSD.org
13 COMMENT= Deegree Web Feature Service(WFS)
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}
31 OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7
32 OPTIONS_DEFAULT= TOMCAT6
35 .include <bsd.port.options.mk>
37 .if ${PORT_OPTIONS:MTOMCAT6}
38 TOMCATVER= apache-tomcat-6.0
40 BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat6
41 RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat6
44 .if ${PORT_OPTIONS:MTOMCAT7}
45 TOMCATVER= apache-tomcat-7.0
47 BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat7
48 RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat7
52 @${MKDIR} ${WRKDIR}/${PORTDIRNAME}
53 @${TAR} xf ${WRKDIR}/deegree-wfs.war -C ${WRKDIR}/${PORTDIRNAME}
56 cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WEBAPPDIR}/${PORTDIRNAME}
59 @${MKDIR} ${STAGEDIR}${DOCSDIR}
60 ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${STAGEDIR}${DOCSDIR}
62 .include <bsd.port.mk>