PortSystem      1.0
PortGroup       gnustep 1.0

name            gnustep-gui
version         0.17.0
revision        8
platforms       darwin
# libs are LGPL, tools are GPL
license         {LGPL GPL-3+}
maintainers     nomaintainer

description     A library of graphical user interface Objective C classes
long_description \
    The GNUstep gui library is a library of graphical user interface classes \
    written completely in the Objective-C language. The classes are based \
    upon the OpenStep specification as release by NeXT Software, Inc.  These \
    classes include graphical objects such as buttons, text fields, popup \
    lists, browser lists, and windows. There are also many associated \
    classes for handling events, colors, fonts, pasteboards and images.

checksums           md5     03c7ccae799acd104c7515c44831626b \
                    sha1    42a56409836df6e8c30506eab03d8ea297af01f5 \
                    rmd160  94eef129b73bcfc08fdf85a82c1f973ddc05235e

depends_lib     port:aspell \
                port:audiofile \
                port:gnustep-base \
                path:lib/pkgconfig/gnutls.pc:gnutls \
                port:libpng \
                port:giflib \
                port:tiff

use_configure   yes

post-destroot {
    xinstall -d ${destroot}${system_library}/Images
    system "cp -f ${filespath}/common_*.tiff \
        ${destroot}${system_library}/Images"
}

platform darwin {
    # no audio support
    depends_lib-delete      port:audiofile
    configure.args-append   --disable-gsnd \
                            --disable-cups
}