aboutsummaryrefslogtreecommitdiffstats
path: root/www/phpwiki/Makefile
blob: 0c33e83fd799a3676e015004c3ed3127b334ffaa (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
56
57
58
59
60
61
62
63
64
# New ports collection makefile for:    phpwiki
# Date created:     09.Oct 2003
# Whom:         dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=   phpwiki
PORTVERSION=    1.2.10
PORTREVISION=   3
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= phpwiki

MAINTAINER= babak@farrokhi.net
COMMENT=    A PHP WikiWikiWeb

CONFLICTS=  phpwiki-1.3*

.if !defined(WITHOUT_PHP_DEPENDS)
USE_PHP=    ctype gettext pcre posix session tokenizer xml zlib
.endif

NO_BUILD=   YES
PHPWIKI?=   www/phpwiki
PLIST_SUB+= PHPWIKI=${PHPWIKI}
USERFILES=  admin.php lib/config.php
ROOTFILES=  admin.php-dist index.php
ROOTDIRS=   admin images lib locale pgsrc schemas templates
DOCFILES=   CREDITS ChangeLog DBLIB.txt HISTORY INSTALL \
        INSTALL.flatfile INSTALL.mSQL INSTALL.mssql \
        INSTALL.mysql INSTALL.pgsql LICENSE README \
        UPGRADING.readme

NO_LATEST_LINK= yes

do-configure:
.for i in ${USERFILES}
    @${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}-dist
.endfor

do-install:
    -${MKDIR} ${PREFIX}/${PHPWIKI}/lib
    -${MKDIR} ${PREFIX}/${PHPWIKI}/pages
    @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPWIKI}/pages
    @${CHMOD} 755 ${PREFIX}/${PHPWIKI}/pages
    @(cd ${WRKSRC} && ${CP} ${ROOTFILES} ${PREFIX}/${PHPWIKI}/ )
.for i in ${ROOTDIRS}
    @(cd ${WRKSRC} && ${CP} -R ${i} ${PREFIX}/${PHPWIKI}/ )
.endfor
.for i in ${USERFILES}
    @if ${TEST} ! -f ${PREFIX}/${PHPWIKI}/${i} ; then \
        ${CP} ${PREFIX}/${PHPWIKI}/${i}-dist \
            ${PREFIX}/${PHPWIKI}/${i}; \
    fi
.endfor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in ${DOCFILES}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
.endif

.include <bsd.port.mk>