freebsd-ports/www/dojo/Makefile
William Grzybowski d22e8ae7f2 www/dojo: update to 1.9.1
- Update to 1.9.1
- Take maintainership

PR:		ports/179682
Submitted by:	wg (myself)
Approved by:	maintainer (timeout)
2013-07-05 15:37:00 +00:00

50 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= dojo
PORTVERSION= 1.9.1
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
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN= 22+
CONFDIR= ${PREFIX}/${CONFDIR_REL}
CONFDIR_REL= ${APACHEETCDIR}/Includes
PLIST_SUB+= NOAPACHE="" CONFDIR=${CONFDIR_REL}
CONF= dojo.conf
SUB_FILES+= pkg-message ${CONF}
.else
PLIST_SUB+= NOAPACHE="@comment "
.endif
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
.if ${PORT_OPTIONS:MAPACHE}
post-install:
@if [ -d "${CONFDIR}" ]; then \
${CP} ${WRKDIR}/${CONF} ${CONFDIR}/dojo.conf; \
else \
${ECHO_MSG} "" ; \
${ECHO_MSG} "Please check your Apache 2.x installation -" ; \
${ECHO_MSG} "${CONFDIR} doesn't exist," ; \
${ECHO_MSG} "so I cannot install ${CONF} there!" ; \
${ECHO_MSG} "" ; \
${FALSE} ; \
fi
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>