# $Id: Portfile 92870 2012-05-09 08:45:24Z jmr@macports.org $

PortSystem         1.0

name               salasaga
version            0.8.0.dev-200803251321
revision           0
categories         editors
platforms          darwin
maintainers        nomaintainer

description        An Integrated Development Environment for producing eLearning
long_description   "previously known as The Flame Project \
    Imagine a free, easy to use GUI authoring environment that helps \
    you create visually impressive and actually useful learning material. \
    The short term goal for this project is to provide such \
    an environment, and we're well on the way to a first release \
    for doing that."

homepage           http://www.salasaga.org/
master_sites       sourceforge
use_bzip2          yes
checksums          md5 e489adbaf879fd26f5e6b5509105dcdb

depends_build      port:pkgconfig
depends_lib        port:gtk2 \
                   path:lib/pkgconfig/pango.pc:pango \
                   port:libxml2 \
                   port:ming \
                   port:giflib \
                   port:gconf \
                   port:libgnome

worksrcdir         salasaga-0.8.0.dev

use_autoconf       yes

patchfiles  patch-Makefile.diff patch-salasaga_ide-salasaga.c.diff \
            patch-salasaga_ide-Makefile.diff \
            patch-salasaga_screencapture-Makefile.diff

configure.cflags-append  -I${prefix}/include

post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/salasaga_ide/salasaga.c
}
