freebsd-ports/www/dokuwiki/Makefile
Chin-San Huang 79bd6e0fe4 - Update to 2006-11-06
PR:		ports/105693
Submitted by:	Gustavo Fukao <gustavofukao _at_ gmail dot com>
Approved by:	delphij (mentor)
2006-11-27 03:18:13 +00:00

50 lines
1.4 KiB
Makefile

# New ports collection makefile for: dokuwiki
# Date created: 2005-04-10
# Whom: chinsan <chinsan@mail2000.com.tw>
#
# $FreeBSD$
#
PORTNAME= dokuwiki
PORTVERSION= ${DIST_VER:S/${PORTNAME}//:S/-//g}
CATEGORIES= www
MASTER_SITES= http://www.splitbrain.org/_media/projects/dokuwiki/ \
http://dev.splitbrain.org/browse/snapshots/
DISTNAME= ${DIST_VER}
EXTRACT_SUFX= .tgz
MAINTAINER= chinsan@FreeBSD.org
COMMENT= A simple and easy to use wiki, no database required
DIST_VER= ${PORTNAME}-2006-11-06
USE_PHP= gd mbstring pcre session xml zlib
NO_BUILD= YES
WANT_PHP_WEB= YES
DOKUWIKI_DIR?= www/${PORTNAME}
WRKSRC= ${WRKDIR}/${DIST_VER}
PLIST_SUB= DOKUWIKI_DIR=${DOKUWIKI_DIR}
TEMP_PLIST= ${WRKDIR}/temp-pkg-plist
.include <bsd.port.pre.mk>
# This target is only meant to be used by the port maintainer.
x-generate-plist:
@make makesum
@cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|%%DOKUWIKI_DIR%%/|' > ${TEMP_PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm %%DOKUWIKI_DIR%%/|' >> ${TEMP_PLIST} \
&& ${ECHO_CMD} "@dirrmtry %%DOKUWIKI_DIR%%" >> ${TEMP_PLIST}
do-install:
# Data files
-${MKDIR} ${PREFIX}/${DOKUWIKI_DIR}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${DOKUWIKI_DIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKI_DIR}
post-install:
@${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%PORTNAME%%|${PORTNAME}|' \
-e 's|%%DOKUWIKI_DIR%%|${DOKUWIKI_DIR}|' ${PKGMESSAGE}
.include <bsd.port.post.mk>