blob: 2ad7230667175d4ca860787415f5de1e210e20ba (
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
|
# New ports collection makefile for: habari
# Date created: Mar 30 2008
# Whom: Ayumi M <ayu@commun.jp>
#
# $FreeBSD$
#
PORTNAME= habari
PORTVERSION= 0.6.6
CATEGORIES= www
MASTER_SITES= http://habariproject.org/dist/ \
http://launchpadlibrarian.net/60087200/
MAINTAINER= ayu@commun.jp
COMMENT= Next-generation free software blogging platform
USE_ZIP= yes
USE_PHP= pdo pcre simplexml session tokenizer iconv mbstring
WANT_PHP_WEB= yes
NO_BUILD= yes
OPTIONS= MYSQL "Use MySQL" on \
PGSQL "Use PostgreSQL" off \
SQLITE "Use SQLite" off
.include <bsd.port.pre.mk>
.if defined(WITH_MYSQL)
USE_PHP+= pdo_mysql
.endif
.if defined(WITH_PGSQL)
USE_PHP+= pdo_pgsql
.endif
.if defined(WITH_SQLITE)
USE_PHP+= pdo_sqlite
.endif
.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE)
IGNORE= please choose the type of database
.endif
do-install:
@${MKDIR} ${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/index.php ${WWWDIR}
.for f in 3rdparty scripts system user
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${WWWDIR})
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in LICENCE NOTICE doc/MIT.txt doc/Tiddlywiki_License.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} manual ${DOCSDIR})
.endif
.include <bsd.port.post.mk>
|