# $Id: Portfile,v 1.5 2006/03/14 05:54:11 joe Exp $
PortSystem		1.0

name			phpbb
version			2.0.19
categories		www php
maintainers		joe@opendarwin.org
description		A PHP-based bulletin board / discussion forum system
long_description	phpBB is a high powered, fully scalable, and highly customisable \
			  open-source bulletin board package.  phpBB has a user-friendly interface, \
			  simple and straightforward administration panel, and helpful FAQ.  Based \
			  on the powerful PHP server language and your choice of MySQL, MS-SQL, \
			  PostgreSQL or Access/ODBC database servers, phpBB is the ideal free \
			  community solution for all web sites.
homepage		http://www.phpbb.com
master_sites		sourceforge
distname		phpBB-${version}
use_bzip2		yes
checksums		md5 7b8c6d6f7f92571afb34f192f3c242dd
platforms		darwin freebsd

depends_lib		port:apache2 port:php5 port:mysql5

variant apache {
	depends_lib-append	port:apache
	depends_lib-delete	port:apache2
}

variant php4 {
	depends_lib-append 	port:php4
	depends_lib-delete	port:php5
}

variant mysql3 conflicts mysql4 postgresql7 postgresql8 {
	depends_lib-append	port:mysql
}

variant mysql4 conflicts mysql3 postgresql7 postgresql8 {
	depends_lib-append	port:mysql4
	depends_lib-delete	port:mysql5
}

variant postgresql7 conflicts mysql3 mysql4 postgresql8 {
	depends_lib-append	port:postgresql7
	depends_lib-delete	port:mysql5
}

variant postgresql8 conflicts mysql3 mysql4 postgresql7 {
	depends_lib-append	port:postgresql8
	depends_lib-delete	port:mysql5
}

set docpath ${destroot}${prefix}/www/data
set worksrcpath ${workpath}/phpBB2
             
use_configure   no
build			{}

destroot {
	xinstall -d -m 0755 ${docpath}/phpbb
	eval file copy [glob ${worksrcpath}/*] ${docpath}/phpbb
	file rename ${docpath}/phpbb/config.php \
			${docpath}/phpbb/config.php-dist
}


