# New ports collection makefile for: habari # Date created: Mar 30 2008 # Whom: Ayumi M # # $FreeBSD$ # PORTNAME= habari PORTVERSION= 0.5.2 CATEGORIES= www MASTER_SITES= http://habariproject.org/dist/ \ 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 OPTIONS= MYSQL "Use MySQL" on \ PGSQL "Use PostgreSQL" off \ SQLITE "Use SQLite" off .include .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 file in 3rdparty scripts system user @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${file} ${WWWDIR}) .endfor .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in LICENSE NOTICE doc/MIT.txt doc/Tiddlywiki_License.txt ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} manual ${DOCSDIR}) .endif .include