# $Id: Portfile,v 1.3 2005/06/06 13:06:35 mww Exp $

PortSystem 1.0

name		GNUMail
version		1.2.0pre1
categories	mail aqua
platforms	darwin
maintainers	mww@opendarwin.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	${distname}${extract.suffix}:g \
		Pantomime-${version}${extract.suffix}:p
checksums	${distname}${extract.suffix} \
			md5 3e3c368cd7209c7201e98cbdb811abba \
		Pantomime-${version}${extract.suffix} \
			md5 2f3ddc10177013960e732cd35fd9373e

worksrcdir		${name}

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}/Applications/DarwinPorts
	file copy ${worksrcpath}/build/GNUMail.app \
		${destroot}/Applications/DarwinPorts
}
