# $Id: Portfile 66292 2010-04-08 17:43:39Z jwa@macports.org $

PortSystem 1.0

name		midgard-data
version		8.09.8

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-2add6264377d11dfb6e16736a8a3eb41eb41/

#use_bzip2	yes
checksums           md5     517bf07ce9114237dba9eeadea160d50 \
                    sha1    7f682123dca6ea6dbdbf623fbb22a045cafface5 \
                    rmd160  0d1d88d834978113231abc3a22947f0d4117ac7f

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
