mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
88b492b029
- Following migration of Mk/bsd.apache.mk to Mk/Uses/apache.mk With hat: apache
40 lines
836 B
Makefile
40 lines
836 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dojo
|
|
PORTVERSION= 1.12.2
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://download.dojotoolkit.org/release-${PORTVERSION}/
|
|
DISTNAME= dojo-release-${PORTVERSION}
|
|
|
|
MAINTAINER= wg@FreeBSD.org
|
|
COMMENT= Open-source DHTML toolkit written in JavaScript
|
|
|
|
NO_BUILD= yes
|
|
SHAREOWN= www
|
|
SHAREGRP= www
|
|
|
|
OPTIONS_DEFINE= APACHE
|
|
OPTIONS_SUB= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MAPACHE}
|
|
USES= apache:run,2.2+
|
|
CONFDIR= ${PREFIX}/${CONFDIR_REL}
|
|
CONFDIR_REL= ${APACHEETCDIR}/Includes
|
|
PLIST_SUB+= CONFDIR=${CONFDIR_REL}
|
|
|
|
CONF= dojo.conf
|
|
SUB_FILES+= pkg-message ${CONF}
|
|
.endif
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
|
|
|
.if ${PORT_OPTIONS:MAPACHE}
|
|
@${MKDIR} ${STAGEDIR}${CONFDIR}
|
|
${CP} ${WRKDIR}/${CONF} ${STAGEDIR}${CONFDIR}/dojo.conf.sample
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|