# $Id: Portfile 57453 2009-09-11 08:17:15Z ryandesign@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_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.ldflags-append -L${prefix}/lib -L/usr/X11R6/lib
configure.cflags-append  -I${prefix}/include -I/usr/X11R6/include

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