blob: cfd6d7c9de568358688286464d54c3bc75860f83 (
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
|
# Created by: Ayumi M <ayu@commun.jp>
# $FreeBSD$
PORTNAME= habari
PORTVERSION= 0.8
CATEGORIES= www
MASTER_SITES= http://habariproject.org/dist/ \
http://launchpadlibrarian.net/60087200/
MAINTAINER= ayu@commun.jp
COMMENT= Next-generation free software blogging platform
USES= zip php:web
USE_PHP= ctype filter hash json mbstring pcre pdo session simplexml tokenizer zlib
NO_BUILD= yes
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= MYSQL
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= pdo_mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pdo_pgsql
.endif
.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+= pdo_sqlite
.endif
post-patch:
.for f in doc/index.html system/classes/theme.php.orig user/cache/.gitignore
${RM} ${WRKSRC}/${f}
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
@${INSTALL_DATA} ${WRKSRC}/index.php ${STAGEDIR}${WWWDIR}
.for f in system user
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${WWWDIR})
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in LICENSE NOTICE README.md doc/MIT.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} manual ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|