# $Id: Portfile 67550 2010-05-12 15:51:02Z jwa@macports.org $

PortSystem 1.0

name		midgard-core
version		8.09.8.2
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-252b0fd8377d11df94330d7fff50aa76aa76/

#use_bzip2	yes
checksums           md5     28a31984ff67c4492b360c04b1f54d9a \
                    sha1    9f17201e208e005f22ce372cdf546f09acc54b65 \
                    rmd160  7ccffe0d9a23aafb9e6d9d7a638024f0e6b4cc7a

depends_lib	port:expat \
    port:gettext \
    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    port:dbus-glib \
    port:libiconv \
    port:libxml2 \
    path:bin/mysql_config5:mysql5 \
    port:openssl \
    port:zlib

configure.args	--sysconfdir=${prefix}/etc/midgard/ \
    --with-mysql-config=mysql_config5

variant check description {add unit tests} {
    depends_lib-append port:check
}

variant dbus description {compile with dbus support} {
    depends_lib-append port:dbus
    configure.args-append --with-dbus-support
}

post-install	{
    ui_msg "NB! The other parts of the package are:"
    ui_msg "midgard-apache2, php5-midgard and midgard-data"
}

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