View | Details | Raw Unified | Return to bug 173125
Collapse All | Expand All

(-)./Makefile (-11 / +29 lines)
Lines 13-48 Link Here
13
MAINTAINER=	wenheping@gmail.com
13
MAINTAINER=	wenheping@gmail.com
14
COMMENT=	Deegree Catalogue Service(CSW)
14
COMMENT=	Deegree Catalogue Service(CSW)
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 deegree_csw_2.0.2_documentation_en.pdf \
25
		deegree_csw_documentation_de.pdf deegree_csw_documentation_en.pdf
26
DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
26
DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
27
27
PLIST_SUB=	TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||}
28
PLIST_SUB=	TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||}
28
29
29
post-extract:
30
OPTIONS_SINGLE=	AS
30
	@${MKDIR} ${WRKDIR}/${PORTDIRNAME}
31
OPTIONS_SINGLE_AS=	TOMCAT6 TOMCAT7
31
	@${TAR} xf ${WRKDIR}/deegree-csw.war -C ${WRKDIR}/${PORTDIRNAME}
32
OPTIONS_DEFAULT=	TOMCAT6
32
33
33
.include <bsd.port.options.mk>
34
.include <bsd.port.options.mk>
34
35
36
.if ${PORT_OPTIONS:MTOMCAT6}
37
TOMCATVER=	apache-tomcat-6.0
38
BUILD_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
39
RUN_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
40
.endif
41
42
.if ${PORT_OPTIONS:MTOMCAT7}
43
TOMCATVER=	apache-tomcat-7.0
44
BUILD_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
45
RUN_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
46
.endif
47
48
post-extract:
49
	${MKDIR} ${WRKDIR}/${PORTDIRNAME}
50
	${TAR} xf ${WRKDIR}/deegree-csw.war -C ${WRKDIR}/${PORTDIRNAME}
51
35
do-install:
52
do-install:
36
	${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${TOMCATDIR}/webapps/${PORTDIRNAME}
53
	${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${TOMCATDIR}/webapps/${PORTDIRNAME}
37
	@cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTDIRNAME}
54
	@(cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTDIRNAME})
38
55
39
.if ${PORT_OPTIONS:MDOCS}
56
.if ${PORT_OPTIONS:MDOCS}
40
	${MKDIR} ${DOCSDIR}
57
	${MKDIR} ${DOCSDIR}
41
	${INSTALL_DATA} ${WRKDIR}/README.txt ${DOCSDIR}
58
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${DOCSDIR}
42
	${INSTALL_DATA} ${WRKDIR}/deegree_csw_2.0.2_documentation_en.pdf ${DOCSDIR}
43
.endif
59
.endif
44
60
45
post-install:
61
post-install:
62
	@${ECHO_CMD}
46
	@${CAT} ${PKGMESSAGE}
63
	@${CAT} ${PKGMESSAGE}
64
	@${ECHO_CMD}
47
65
48
.include <bsd.port.mk>
66
.include <bsd.port.mk>

Return to bug 173125