1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/www/habari/Makefile
Martin Wilke 2e2524c94c - Update to 0.6.6
PR:		154992
Submitted by:	Ayumi Mitsui <ayu@commun.jp> (maintainer)
2011-02-27 13:04:36 +00:00

59 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.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>