mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
8a39e2f67a
PR: ports/141850 Submitted by: Ayumi Mitsui <ayu@commun.jp> (maintainer)
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# New ports collection makefile for: habari
|
|
# Date created: Mar 30 2008
|
|
# Whom: Ayumi M <ayu@commun.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= habari
|
|
PORTVERSION= 0.6.3
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://dist.habariproject.org/ \
|
|
http://habari.jp/dist/
|
|
|
|
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
|
|
NO_WRKSUBDIR= 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>
|