aboutsummaryrefslogblamecommitdiff
path: root/www/habari/Makefile
blob: b4eca139461f3c0398055f04def9c3818bfab5fb (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
                                                               




                      
                     
                   

                                                
 
                             


                                                               

                                                                   
                   





















                                                                           


                           
                                                     

                                                           


                            

                                                               
       
                                                                  
      
 
                           
# New ports collection makefile for:	habari
# Date created:				Mar 30 2008
# Whom:					Ayumi M <ayu@commun.jp>
#
# $FreeBSD$
#

PORTNAME=	habari
PORTVERSION=	0.6.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 <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>