# $Id: Portfile,v 1.2 2006/08/06 15:19:31 yves Exp $

PortSystem  1.0
PortGroup   gnustep 1.0

name        Gorm
version     1.0.8
platforms   darwin
maintainers yves@opendarwin.org

description  Graphical Object Relationship Modeller
long_description \
    Gorm stands for "Graphical Object Relationship Modeller" \
    and is GNUstep's easy-to-use interface designer.

master_sites  gnustep:dev-apps
checksums     md5 c74b1c0e87771a7223ed954d1eef1511

post-patch {
    cd ${worksrcpath}/Palettes
	set fl [glob */GNUmakefile.preamble]
	foreach i $fl {
		reinplace "s|GNUSTEP_TARGET_OS),mingw32|CC_BUNDLE),yes|g" $i
		reinplace "s|lGormCore|lGormCore -lGormObjCHeaderParser|g" $i
    }
    reinplace "s|-lGormCore||g" \
        ${worksrcpath}/Palettes/2Controls/GNUmakefile.preamble
}

array set gnustep.post_flags {
    GormCore "-lgnustep-base -lgnustep-gui -lGorm -lGormObjCHeaderParser"
    GormPrefs "-lGorm -lGormCore -L../GormObjCHeaderParser/shared_obj -lGormObjCHeaderParser"
}
