mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
# Created by: Ayumi M <ayu@commun.jp>
|
|
|
|
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>
|