Portfile

# $Id: Portfile 22418 2007-02-28 16:40:26Z jwa@macports.org $

PortSystem 1.0
name midgard-php4
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-80ede99cc71611db841c83fd8a76ad49ad49/

use_bzip2 yes
checksums sha1 052701d0c10999109b2b2dc1d2ea528f6ae3631d
depends_lib port:midgard-core\
port:php5

pre-configure {
cd ${worksrcpath}
system "phpize"
}

configure.args --sysconfdir=${prefix}/etc/midgard/ \
--with-apxs=${prefix}/apache2/bin/apxs\
--with-apr-config=${prefix}/bin/apr-1-config\
--with-php-config=${prefix}/bin/php-config

destroot.destdir INSTALL_ROOT=${destroot}

post-install {
ui_msg "======================== IMPORTANT ========================="
ui_msg "If this is the first time you're installing Midgard, or you have"
ui_msg "recently upgraded PHP, make sure to check your php.ini to verify"
ui_msg "that extension_dir at least includes"
system "php-config --extension-dir"
ui_msg "================================================================"
}

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

files