Portfile

# $Id: Portfile 22419 2007-02-28 16:42:17Z jwa@macports.org $

PortSystem 1.0
name midgard-data
version 1.8.2.2
categories www
maintainers jwa@macports.org
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-675d748ec71611db93d6334d52fdc3ecc3ec/

use_bzip2 yes
checksums sha1 8e7232aa4dff3ec59259572ee99588ab70bac699
depends_lib port:midgard-core\
port:midgard-apache2\
port:midgard-php4\
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-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

post-destroot {
reinplace "s/zcat/gzcat/" ${destroot}${prefix}/share/midgard/datagard/lib.postinst
reinplace "s;/usr/bin/pear;${prefix}/bin/pear;" ${destroot}${prefix}/share/midgard/datagard/datagard.conf
}

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

files