View | Details | Raw Unified | Return to bug 173091 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-12 / +29 lines)
Lines 1-4 Link Here
1
# Created by:                 wenheping@gmail.com
1
# Created by:		wenheping@gmail.com
2
#
2
#
3
# $FreeBSD: ports/graphics/deegree-igeoportal/Makefile,v 1.4 2012/10/21 21:41:06 jgh Exp $
3
# $FreeBSD: ports/graphics/deegree-igeoportal/Makefile,v 1.4 2012/10/21 21:41:06 jgh Exp $
4
4
Lines 13-48 Link Here
13
MAINTAINER=	wenheping@gmail.com
13
MAINTAINER=	wenheping@gmail.com
14
COMMENT=	Browser based client handling WMS, WFS, and proxy service
14
COMMENT=	Browser based client handling WMS, WFS, and proxy service
15
15
16
RUN_DEPENDS= ${LOCALBASE}/${TOMCATVER}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
17
18
USE_ZIP=	yes
16
USE_ZIP=	yes
19
USE_JAVA=	1.5+
17
USE_JAVA=	1.5+
20
21
NO_BUILD=	yes
18
NO_BUILD=	yes
22
TOMCATVER=	apache-tomcat-6.0
19
23
TOMCATDIR=	${PREFIX}/${TOMCATVER}
20
TOMCATDIR=	${PREFIX}/${TOMCATVER}
21
APPHOME=	${LOCALBASE}/${TOMCATVER}
24
WEBAPPDIR=	${TOMCATDIR}/webapps
22
WEBAPPDIR=	${TOMCATDIR}/webapps
25
PORTDOCS=	*
23
24
PORTDOCS=	README.txt README_owswatch.txt deegree_igeoportal_documentation_en.pdf
26
DOCSDIR=	${PREFIX}/share/doc/deegree-igeoportal
25
DOCSDIR=	${PREFIX}/share/doc/deegree-igeoportal
26
27
PLIST_SUB=	TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||}
27
PLIST_SUB=	TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||}
28
28
29
post-extract:
29
OPTIONS_SINGLE=	AS
30
	@${MKDIR} ${WRKDIR}/${PORTDIRNAME}
30
OPTIONS_SINGLE_AS=	TOMCAT6 TOMCAT7
31
	@${TAR} xf ${WRKDIR}/igeoportal-std.war -C ${WRKDIR}/${PORTDIRNAME}
31
OPTIONS_DEFAULT=	TOMCAT6
32
32
33
.include <bsd.port.options.mk>
33
.include <bsd.port.options.mk>
34
34
35
.if ${PORT_OPTIONS:MTOMCAT6}
36
TOMCATVER=	apache-tomcat-6.0
37
BUILD_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
38
RUN_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
39
.endif
40
41
.if ${PORT_OPTIONS:MTOMCAT7}
42
TOMCATVER=	apache-tomcat-7.0
43
BUILD_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
44
RUN_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
45
.endif
46
47
post-extract:
48
	${MKDIR} ${WRKDIR}/${PORTDIRNAME}
49
	${TAR} xf ${WRKDIR}/igeoportal-std.war -C ${WRKDIR}/${PORTDIRNAME}
50
35
do-install:
51
do-install:
36
		${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${TOMCATDIR}/webapps/${PORTDIRNAME}
52
		${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${TOMCATDIR}/webapps/${PORTDIRNAME}
37
		@cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTDIRNAME}
53
		@(cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTDIRNAME})
38
54
39
.if ${PORT_OPTIONS:MDOCS}
55
.if ${PORT_OPTIONS:MDOCS}
40
	${MKDIR} ${DOCSDIR}
56
	${MKDIR} ${DOCSDIR}
41
	${INSTALL_DATA} ${WRKDIR}/README.txt ${DOCSDIR}
57
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${DOCSDIR}
42
	${INSTALL_DATA} ${WRKDIR}/deegree_igeoportal_documentation_en.pdf ${DOCSDIR}
43
.endif
58
.endif
44
59
45
post-install:
60
post-install:
61
	@${ECHO_CMD}
46
	@${CAT} ${PKGMESSAGE}
62
	@${CAT} ${PKGMESSAGE}
63
	@${ECHO_CMD}
47
64
48
.include <bsd.port.mk>
65
.include <bsd.port.mk>

Return to bug 173091