1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/www/tikiwiki/Makefile
Bryan Drewery 2e48ab15af - Update to 10.2
- Stop installing .DS_Store files

PR:		ports/177293
Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com> (maintainer)
2013-03-24 14:32:38 +00:00

48 lines
1.3 KiB
Makefile

# Created by: Babak Farrokhi <babak@farrokhi.net>
# $FreeBSD$
PORTNAME= tikiwiki
PORTVERSION= 10.2
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/Tiki_10.x_Sun/${PORTVERSION}/
DISTNAME= tiki-${PORTVERSION}
MAINTAINER= c.petrik.sosa@gmail.com
COMMENT= Powerful PHP based Wiki/CMS/Groupware
USE_PHP= gettext pcre posix session xml zlib
WANT_PHP_WEB= yes
NO_BUILD= yes
TIKIWIKI_DIR?= www/${PORTNAME}-${PORTVERSION}
PLIST_SUB= TIKIWIKI_DIR=${TIKIWIKI_DIR}
TEMP_PLIST= ${WRKDIR}/temp-pkg-plist
SUB_FILES= pkg-message
SUB_LIST+= PORTNAME=${PORTNAME} TIKIWIKI_DIR=${TIKIWIKI_DIR}
WRKSRC= ${WRKDIR}/${DISTNAME}
# This target is only meant to be used by the port maintainer.
# Stolen from dokuwiki sorry :)
x-generate-plist: extract
@cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|%%TIKIWIKI_DIR%%/|' > ${TEMP_PLIST} \
&& ${FIND} -s -d * -type d | \
${SED} -e 's|^|@dirrm %%TIKIWIKI_DIR%%/|' >> ${TEMP_PLIST} \
&& ${ECHO_CMD} "@dirrmtry %%TIKIWIKI_DIR%%" >> ${TEMP_PLIST}
do-extract:
${MKDIR} ${WRKDIR}
${TAR} -yxf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} -C ${WRKDIR}
@${FIND} ${WRKSRC} -name '.DS_Store' -delete
do-install:
-${MKDIR} ${PREFIX}/${TIKIWIKI_DIR}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${TIKIWIKI_DIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TIKIWIKI_DIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>