# $Id: Portfile 69201 2010-06-28 16:59:49Z jwa@macports.org $

PortSystem 1.0

name		midgard-data
version		8.09.9

categories	www

maintainers	jwa

description	A content management system
long_description Midgard is a content management system platform using \
    Apache, PHP and MySQL.

platforms	darwin
homepage	http://www.midgard-project.org/

master_sites	http://www.midgard-project.org/midcom-serveattachmentguid-88f90d187dd111df9ce8a56c722dd12bd12b/

#use_bzip2	yes
checksums           md5     37c605fd25271bdf72e44ad16f7d0053 \
                    sha1    1ccf5f093bceb3bbff9e17f3587a617cee3355c6 \
                    rmd160  a6d211f2bda2d6feaeaec85eaf731f308ac7e527

depends_lib	port:midgard-core \
    port:midgard-apache2 \
    port:php5-midgard \
    port:dialog \
    port:ImageMagick

configure.args	--sysconfdir=${prefix}/etc/midgard/ \
    --with-mysql-config=${prefix}/bin/mysql_config5 \
    --with-apxs=${prefix}/apache2/bin/apxs \
    --with-apache=${prefix}/apache2/bin/httpd \
    --with-apache-user=www \
    --with-apache-group=www \
    --with-mysql=${prefix}/bin/mysql5 \
    --with-mysqladmin=${prefix}/bin/mysqladmin5 \
    --with-mysqldump=${prefix}/bin/mysqldump5 \
    --with-pear=${prefix}/bin/pear

livecheck.type	regex
livecheck.url	${homepage}download
livecheck.regex	${name}-(\[1-9\]+.\[0-9\]+.\[0-9\]+).tar.\[bg\]z
