aboutsummaryrefslogtreecommitdiffstats
path: root/www/dokuwiki-devel/Makefile
blob: 539a35006f09b5f6856e1928d5cf6122a51d062f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:    dokuwiki-devel
# Date created:     2006-06-09
# Whom:         chinsan <chinsan.tw@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   dokuwiki
PORTVERSION=    ${DIST_VER:S/${PORTNAME}//:S/-//g}
CATEGORIES= www
MASTER_SITES=   http://chinsan2.twbbs.org/distfiles/ \
        ftp://chinsan2.twbbs.org/distfiles/ \
        LOCAL/chinsan \
        http://dev.splitbrain.org/browse/snapshots/
PKGNAMESUFFIX=  -devel
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-27
USE_PHP=    gd mbstring pcre session xml zlib
NO_BUILD=   YES
WANT_PHP_WEB=   YES

DOKUWIKI_DIR?=  www/${PORTNAME}
WRKSRC=     ${WRKDIR}/${PORTNAME}
PLIST_SUB=  DOKUWIKI_DIR=${DOKUWIKI_DIR}
TEMP_PLIST= ${WRKDIR}/temp-pkg-plist

.include <bsd.port.pre.mk>

post-patch:
    ${FIND} ${WRKSRC}/ -name "*.orig" -delete

# This target is only meant to be used by the port maintainer.
x-generate-plist:
    @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>