1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/www/yahoo-ui/Makefile
Beech Rintoul 3d9eec010e - Update to 2.5.1
- Add support for omitting examples installation

PR:		ports/121909
Submitted by:	Greg Larkin <glarkin@sourcehosting.net> (maintainer)
2008-03-24 19:07:24 +00:00

76 lines
1.9 KiB
Makefile

# New ports collection makefile for: yahoo-ui
# Date created: 2008-01-29
# Whom: Greg Larkin <glarkin@sourcehosting.net>
#
# $FreeBSD$
#
PORTNAME= yahoo
PORTVERSION= 2.5.1
CATEGORIES= www
MASTER_SITES= SF
MASTER_SITE_SUBDIR= yui
PKGNAMESUFFIX= -ui
DISTNAME= yui_${PORTVERSION}
MAINTAINER= glarkin@sourcehosting.net
COMMENT= The Yahoo! User Interface (YUI) Library
USE_ZIP= yes
WRKSRC= ${WRKDIR}/yui
NO_BUILD= yes
OPTIONS= APACHE "Configure for Apache-2.x" off
.include <bsd.port.pre.mk>
.if defined(WITH_APACHE)
USE_APACHE= 2.0+
CONFDIR= ${PREFIX}/${CONFDIR_REL}
CONFDIR_REL= ${APACHEETCDIR}/Includes
PLIST_SUB+= NOAPACHE="" CONFDIR=${CONFDIR_REL}
CONF= yui.conf
SUB_FILES+= pkg-message ${CONF}
.else
PLIST_SUB+= NOAPACHE="@comment "
.endif
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} "assets build index.html \
tests" ${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
post-install:
.if defined(WITH_APACHE)
@if [ -d "${CONFDIR}" ]; then \
${CP} ${WRKDIR}/${CONF} ${CONFDIR}; \
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
.if !defined(NOPORTDOCS)
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
@${CP} ${WRKSRC}/README ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>