# $Id: Portfile 62086 2009-12-28 20:41:38Z nox@macports.org $

PortSystem 1.0

name				mx4j
version				3.0.2

categories			java
maintainers			jberry openmaintainer
platforms			darwin

description			Open Source JMX for Enterprise Computing.
long_description	MX4J is a project to build an Open Source implementation \
					of the Java(TM) Management Extensions (JMX) and of the JMX \
					Remote API (JSR 160) specifications, and to build tools \
					relating to JMX.
homepage			http://mx4j.sourceforge.net/

distname			${name}-${version}-src
master_sites		sourceforge

checksums           md5     1c01f620c21efb0a84c3105c064b9047 \
                    sha1    984994ce426d86589e34715ccfafc0263376e2b6 \
                    rmd160  5f516ca95a6ab83fdf6275a7a8ca1adf59176426

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe \
					port:junit \
					port:jakarta-bcel \
					port:jakarta-log4j \
					port:commons-logging

use_configure		no

worksrcdir			${name}-${version}

build.dir			${worksrcpath}/build
build.cmd			ant
build.target		compile.jmx compile.rjmx
build.args          -Dlib.dir=${prefix}/share/java

destroot	{
	xinstall -d ${destroot}${prefix}/share/java
	xinstall -m 644 \
		${worksrcpath}/dist/lib/mx4j.jar \
		${worksrcpath}/dist/lib/mx4j-jmx.jar \
		${worksrcpath}/dist/lib/mx4j-impl.jar \
		${worksrcpath}/dist/lib/mx4j-remote.jar \
		${worksrcpath}/dist/lib/mx4j-rimpl.jar \
		${worksrcpath}/dist/lib/mx4j-rjmx.jar \
		${destroot}${prefix}/share/java/
}

livecheck.distname  MX4J Source
