# $Id: Portfile,v 1.5 2005/07/04 11:02:15 mww Exp $

PortSystem 1.0

name			gnu-classpathx-javamail
version			1.0
categories		java mail
platforms		darwin
maintainers		mww@opendarwin.org
description		free implementation of the JavaMail API specification v1.3
long_description	GNU JavaMail is a free implementation of the JavaMail API \
				specification, version 1.3. 

homepage		http://www.gnu.org/software/classpathx/javamail/javamail.html
master_sites	gnu:classpathx
distname		mail-${version}
checksums		md5 64742f096c13146ec07734a449194bd7
# this patch is a silly workaround - smite asap!
patchfiles		patch-PrintStreamLogger.java

depends_lib		port:gnu-classpath \
				port:gnu-classpath-inetlib \
				port:gnu-classpathx-activation

platform darwin 7 {
	depends_build	port:jikes
}

configure.env	JAVAC=${prefix}/bin/jikes \
				BOOTCLASSPATH=${prefix}/share/java/glibj.jar
configure.args	--with-activation-jar=${prefix}/share/java/ \
				--with-inetlib-jar=${prefix}/share/java \
				--disable-nntp

build.env		${configure.env}
