2005-04-10 16:49:08 +00:00
|
|
|
# New ports collection makefile for: dokuwiki
|
|
|
|
# Date created: 2005-04-10
|
|
|
|
# Whom: chinsan <chinsan@mail2000.com.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dokuwiki
|
2006-03-20 21:55:38 +00:00
|
|
|
PORTVERSION= ${DIST_VER:S/${PORTNAME}//:S/-//g}
|
2006-06-23 21:09:31 +00:00
|
|
|
PORTREVISION= 4
|
2005-04-10 16:49:08 +00:00
|
|
|
CATEGORIES= www
|
2006-03-20 21:55:38 +00:00
|
|
|
MASTER_SITES= http://www.splitbrain.org/_media/projects/dokuwiki/ \
|
|
|
|
http://dev.splitbrain.org/browse/snapshots/
|
|
|
|
DISTNAME= ${DIST_VER}
|
2005-04-10 16:49:08 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2005-10-11 08:28:44 +00:00
|
|
|
MAINTAINER= chinsan.tw@gmail.com
|
2005-04-10 16:49:08 +00:00
|
|
|
COMMENT= A simple and easy to use wiki, no database required
|
|
|
|
|
2006-04-08 12:55:12 +00:00
|
|
|
DIST_VER= ${PORTNAME}-2006-03-09
|
2006-06-23 21:09:31 +00:00
|
|
|
USE_PHP= gd mbstring pcre session xml zlib
|
2005-04-10 16:49:08 +00:00
|
|
|
NO_BUILD= YES
|
|
|
|
WANT_PHP_WEB= YES
|
2005-05-20 11:38:34 +00:00
|
|
|
|
2006-06-23 21:09:31 +00:00
|
|
|
DOKUWIKI_DIR?= www/${PORTNAME}
|
2006-03-20 21:55:38 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DIST_VER}
|
2006-06-14 03:27:15 +00:00
|
|
|
PLIST_SUB= DOKUWIKI_DIR=${DOKUWIKI_DIR}
|
2005-04-10 16:49:08 +00:00
|
|
|
|
2005-05-20 11:38:34 +00:00
|
|
|
.if defined(BATCH)
|
2006-06-23 21:09:31 +00:00
|
|
|
WIKI_LANG?= en
|
2005-05-20 11:38:34 +00:00
|
|
|
.endif
|
|
|
|
|
2005-04-10 16:49:08 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-05-20 11:38:34 +00:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WIKI_LANG)
|
2005-07-06 17:37:51 +00:00
|
|
|
@${ECHO_MSG} '*******************************************************'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* You can customize the wiki language by typing *'
|
2005-07-14 14:36:58 +00:00
|
|
|
@${ECHO_MSG} '* Use make-flag: *'
|
2006-03-20 21:55:38 +00:00
|
|
|
@${ECHO_MSG} '* - Arabic WIKI_LANG=ar *'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* - Basque WIKI_LANG=eu *'
|
|
|
|
@${ECHO_MSG} '* - Brazilian Portuguese WIKI_LANG=pt-br *'
|
2005-09-20 21:00:46 +00:00
|
|
|
@${ECHO_MSG} '* - Catalan WIKI_LANG=ca *'
|
2006-03-20 21:55:38 +00:00
|
|
|
@${ECHO_MSG} '* - Chinese(Simplified) WIKI_LANG=zh *'
|
|
|
|
@${ECHO_MSG} '* - Chinese(Traditional) WIKI_LANG=zh-tw *'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* - Czech WIKI_LANG=cs *'
|
|
|
|
@${ECHO_MSG} '* - Danish WIKI_LANG=da *'
|
|
|
|
@${ECHO_MSG} '* - Dutch WIKI_LANG=nl *'
|
|
|
|
@${ECHO_MSG} '* - English WIKI_LANG=en *'
|
|
|
|
@${ECHO_MSG} '* - Esperanto WIKI_LANG=eo *'
|
2005-07-06 17:37:51 +00:00
|
|
|
@${ECHO_MSG} '* - Estonian WIKI_LANG=et *'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* - Finnish WIKI_LANG=fi *'
|
|
|
|
@${ECHO_MSG} '* - French WIKI_LANG=fr *'
|
|
|
|
@${ECHO_MSG} '* - German WIKI_LANG=de *'
|
|
|
|
@${ECHO_MSG} '* - Hebrew WIKI_LANG=he *'
|
|
|
|
@${ECHO_MSG} '* - Hungarian WIKI_LANG=hu *'
|
2006-03-20 21:55:38 +00:00
|
|
|
@${ECHO_MSG} '* - Indonesian WIKI_LANG=id *'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* - Italian WIKI_LANG=it *'
|
2005-07-06 17:37:51 +00:00
|
|
|
@${ECHO_MSG} '* - Japanese WIKI_LANG=ja *'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* - Korean WIKI_LANG=ko *'
|
2005-07-06 17:37:51 +00:00
|
|
|
@${ECHO_MSG} '* - Latvian WIKI_LANG=lv *'
|
|
|
|
@${ECHO_MSG} '* - Lithuanian WIKI_LANG=lt *'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* - Norwegian WIKI_LANG=no *'
|
|
|
|
@${ECHO_MSG} '* - Polish WIKI_LANG=pl *'
|
|
|
|
@${ECHO_MSG} '* - Portuguese WIKI_LANG=pt *'
|
|
|
|
@${ECHO_MSG} '* - Romanian WIKI_LANG=ro *'
|
|
|
|
@${ECHO_MSG} '* - Russian WIKI_LANG=ru *'
|
2006-03-20 21:55:38 +00:00
|
|
|
@${ECHO_MSG} '* - Serbian WIKI_LANG=sr *'
|
|
|
|
@${ECHO_MSG} '* - Slovak WIKI_LANG=sk *'
|
2005-07-06 17:37:51 +00:00
|
|
|
@${ECHO_MSG} '* - Slovenian WIKI_LANG=sl *'
|
2006-03-20 21:55:38 +00:00
|
|
|
@${ECHO_MSG} '* - Spanish WIKI_LANG=es *'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* - Swedish WIKI_LANG=sv *'
|
2006-03-20 21:55:38 +00:00
|
|
|
@${ECHO_MSG} '* - Turkish WIKI_LANG=tr *'
|
2005-05-20 11:38:34 +00:00
|
|
|
@${ECHO_MSG} '* - Vietnamese WIKI_LANG=vi *'
|
|
|
|
@${ECHO_MSG} '* *'
|
|
|
|
@${ECHO_MSG} '* Example: "make WIKI_LANG=zh-tw install clean" *'
|
|
|
|
@${ECHO_MSG} '*******************************************************'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
.if defined(WIKI_LANG)
|
2005-07-18 16:07:43 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|lang\(.*\)'en'|lang\1'${WIKI_LANG}'|g' \
|
|
|
|
${WRKSRC}/conf/dokuwiki.php
|
2005-09-20 21:00:46 +00:00
|
|
|
@${FIND} ${WRKSRC}/conf -name "*.php.bak" -delete
|
2005-05-20 11:38:34 +00:00
|
|
|
.endif
|
|
|
|
|
2005-04-10 16:49:08 +00:00
|
|
|
pre-install:
|
2005-09-20 21:00:46 +00:00
|
|
|
@${TOUCH} ${WRKSRC}/data/changes.log
|
2005-04-10 16:49:08 +00:00
|
|
|
|
|
|
|
do-install:
|
2005-11-06 22:44:44 +00:00
|
|
|
# Data files
|
2005-07-14 14:36:58 +00:00
|
|
|
-${MKDIR} ${PREFIX}/${DOKUWIKI_DIR}
|
|
|
|
@${CP} -R ${WRKSRC}/ ${PREFIX}/${DOKUWIKI_DIR}
|
2006-03-20 21:55:38 +00:00
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKI_DIR}
|
2005-04-10 16:49:08 +00:00
|
|
|
|
|
|
|
post-install:
|
2006-06-23 21:09:31 +00:00
|
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%PORTNAME%%|${PORTNAME}|' \
|
2005-07-14 14:36:58 +00:00
|
|
|
-e 's|%%DOKUWIKI_DIR%%|${DOKUWIKI_DIR}|' ${PKGMESSAGE}
|
2005-04-10 16:49:08 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|