PortSystem  1.0
PortGroup   gnustep 1.0

name        TalkSoup
version     1.0alpha
revision    1
platforms   darwin
license     GPL-2+
maintainers nomaintainer
homepage    http://talksoup.aeruder.net/

description IRC client for GNUstep.
long_description \
    TalkSoup is an IRC client for OS X and any platform supported by GNUstep. \
    It is highly configurable and extensible \
    with a fully-featured plugin system already in place. \
    It has all the features one would expect from a graphical IRC client.

master_sites    sourceforge:talksoup
checksums       md5 8c0970d44441fe7401b92779a461b6f6
use_bzip2       yes

depends_lib-append  port:netclasses

array set gnustep.post_flags {
    TalkSoupBundles "-lobjc -lgnustep-base"
}

post-patch {
    reinplace "s|__APPLE__|NeXT_Foundation_LIBRARY|g" \
        ${worksrcpath}/Output/GNUstepOutput/Misc/NSObjectAdditions.m
    reinplace "s|\$(GNUSTEP_INSTALLATION_DIR)|${destroot}${prefix}/GNUstep/Local|g" \
        ${worksrcpath}/InFilters/DCCSupport/GNUmakefile \
		${worksrcpath}/InFilters/Debold/GNUmakefile \
		${worksrcpath}/InFilters/Decolorizer/GNUmakefile \
		${worksrcpath}/InFilters/Dereverse/GNUmakefile \
		${worksrcpath}/InFilters/Deunderline/GNUmakefile \
		${worksrcpath}/InFilters/Emoticon/GNUmakefile \
		${worksrcpath}/InFilters/Highlighting/GNUmakefile \
		${worksrcpath}/InFilters/KeepAlive/GNUmakefile \
		${worksrcpath}/InFilters/Logging/GNUmakefile \
		${worksrcpath}/InFilters/MessageInTab/GNUmakefile \
		${worksrcpath}/InFilters/MessageOutTab/GNUmakefile \
		${worksrcpath}/InFilters/PrivateBeep/GNUmakefile \
		${worksrcpath}/InFilters/Skeleton/GNUmakefile \
		${worksrcpath}/Input/NetclassesInput/GNUmakefile \
		${worksrcpath}/OutFilters/Colorizer/GNUmakefile \
		${worksrcpath}/OutFilters/Piper/GNUmakefile \
		${worksrcpath}/OutFilters/Skeleton/GNUmakefile \
		${worksrcpath}/Output/GNUstepOutput/Controllers/ServerListController.m \
		${worksrcpath}/Output/GNUstepOutput/GNUmakefile
}