Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name GNUMail-Aqua
version 1.2.0pre1
categories mail aqua
platforms darwin
maintainers nomaintainer@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/
set subdir releases/Stable/
master_sites http://www.collaboration-world.com/gnumail.data/${subdir}:g \
http://www.collaboration-world.com/pantomime.data/${subdir}:p

distfiles GNUMail-${version}${extract.suffix}:g \
Pantomime-${version}${extract.suffix}:p
checksums GNUMail-${version}${extract.suffix} \
md5 3e3c368cd7209c7201e98cbdb811abba \
Pantomime-${version}${extract.suffix} \
md5 2f3ddc10177013960e732cd35fd9373e

worksrcdir GNUMail

patch.dir ${workpath}
patchfiles patch-Pantomime-CWDNSManager.m

use_configure no

build.type pbx
build {
file mkdir ${worksrcpath}/build
system "cd ${workpath}/Pantomime && ${build.cmd} -project Pantomime.xcode"
file copy ${workpath}/Pantomime/build/Pantomime.framework \
${worksrcpath}/build
system "cd ${worksrcpath} && ${build.cmd} -project GNUMail.xcode"
}

destroot {
xinstall -m 755 -d ${destroot}${prefix}/Applications
file copy ${worksrcpath}/build/GNUMail.app \
${destroot}${prefix}/Applications
}

files