aboutsummaryrefslogtreecommitdiff
path: root/graphics/deegree-csw/Makefile
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2012-10-30 22:05:30 +0000
committerJason Helfman <jgh@FreeBSD.org>2012-10-30 22:05:30 +0000
commit723b57e8dff31523693cbb832d128f35c48ddbba (patch)
tree7badd414cf52ffd2ae940805333e609e137e8d82 /graphics/deegree-csw/Makefile
parent68137d57dcfcceab9d62f69ca334e5ccc653bbc3 (diff)
downloadports-723b57e8dff31523693cbb832d128f35c48ddbba.tar.gz
ports-723b57e8dff31523693cbb832d128f35c48ddbba.zip
Notes
Diffstat (limited to 'graphics/deegree-csw/Makefile')
-rw-r--r--graphics/deegree-csw/Makefile36
1 files changed, 26 insertions, 10 deletions
diff --git a/graphics/deegree-csw/Makefile b/graphics/deegree-csw/Makefile
index c57c094a371d..1909a47c119a 100644
--- a/graphics/deegree-csw/Makefile
+++ b/graphics/deegree-csw/Makefile
@@ -13,36 +13,52 @@ DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}_${PORTVERSION}
MAINTAINER= wenheping@gmail.com
COMMENT= Deegree Catalogue Service(CSW)
-RUN_DEPENDS= ${LOCALBASE}/${TOMCATVER}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
-
USE_ZIP= yes
USE_JAVA= 1.5+
NO_BUILD= yes
-TOMCATVER= apache-tomcat-6.0
TOMCATDIR= ${PREFIX}/${TOMCATVER}
+APPHOME= ${LOCALBASE}/${TOMCATVER}
WEBAPPDIR= ${TOMCATDIR}/webapps
-PORTDOCS= *
+PORTDOCS= README.txt deegree_csw_2.0.2_documentation_en.pdf \
+ deegree_csw_documentation_de.pdf deegree_csw_documentation_en.pdf
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
PLIST_SUB= TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||}
+SUB_FILES= pkg-message
+SUB_LIST= TCPORT=${TCPORT}
+
+OPTIONS_SINGLE= AS
+OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7
+OPTIONS_DEFAULT= TOMCAT6
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MTOMCAT6}
+TOMCATVER= apache-tomcat-6.0
+TCPORT= 8180
+BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
+RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
+.endif
+
+.if ${PORT_OPTIONS:MTOMCAT7}
+TOMCATVER= apache-tomcat-7.0
+TCPORT= 8080
+BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
+RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
+.endif
post-extract:
@${MKDIR} ${WRKDIR}/${PORTDIRNAME}
@${TAR} xf ${WRKDIR}/deegree-csw.war -C ${WRKDIR}/${PORTDIRNAME}
-.include <bsd.port.options.mk>
-
do-install:
${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${TOMCATDIR}/webapps/${PORTDIRNAME}
@cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTDIRNAME}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKDIR}/README.txt ${DOCSDIR}
- ${INSTALL_DATA} ${WRKDIR}/deegree_csw_2.0.2_documentation_en.pdf ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${DOCSDIR}
.endif
-
-post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>