# $Id: Portfile 34246 2008-02-19 07:20:09Z ryandesign@macports.org $
PortSystem		1.0

name			phpbb
version			2.0.19
categories		www php
maintainers		nomaintainer
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:mysql3
}

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:postgresql80
	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
}


