Portfile

# $Id: Portfile 21776 2007-02-06 06:42:02Z yves@macports.org $

PortSystem 1.0
PortGroup gnustep 1.0

name GNUMail
version 1.2.0pre3
platforms darwin
maintainers yves@macports.org
description Fully featured mail application using GNUStep or Cocoa.
long_description GNUMail.app is a fully featured mail application \
running on multiple platforms. It uses the GNUstep \
development framework or Apple Cocoa, which are based \
on the OpenStep specification provided by NeXT, Inc.. \

homepage http://www.collaboration-world.com/gnumail/
master_sites http://www.collaboration-world.com/gnumail.data/releases/Stable/
checksums md5 66094028676b19cb2eee15e163073ee5

depends_lib port:Addresses port:Pantomime
worksrcdir ${name}

post-patch {
set bundlepath ${worksrcpath}/Bundles
foreach i { Advanced Colors Fonts MIME Receiving Sending Viewing } {
reinplace "s|lGNUMail|lGNUMail -lPantomime -lAddresses -lAddressView|g" \
$bundlepath/$i/GNUmakefile
}
foreach i { Account Compose Import } {
reinplace "s|lGNUMail|lGNUMail -lAddresses -lAddressView|g" \
$bundlepath/$i/GNUmakefile
}
reinplace "s|lGNUMail|lGNUMail -lAddressView|g" \
$bundlepath/Filtering/GNUmakefile
}

build.args-append LINK_AGAINST_ALL_LIBS=yes