# $Id$

PortSystem 1.0

name                openjdk6_bootstrap
version             b16-r1
set builddate 24_apr_2009

categories          java
maintainers         landonf
platforms           darwin

homepage            http://landonf.bikemonkey.org/static/soylatte
description         A binary build of OpenJDK6 to be used for bootstrapping the OpenJDK6 port.
long_description \
                    OpenJDK is an open-source implementation of the Java Platform, Standard Edition. \
                    This port provides binaries to be used for bootstrapping the openjdk6 port, \
                    as a Java 6 bootstrap environment is currently required, and Apple's Java 6 \
                    is both incompatible with the bootstrapping requirements and not available \
                    on 32-bit platforms.

distname            openjdk6-b16-24_apr_2009-r1
use_bzip2           yes
master_sites        http://hg.bikemonkey.org/archive/openjdk6_darwin_macports/
checksums           md5     56b57e1bfbffc65ed7588d2b7166f3ed\
                    sha1    0a78144c75380ae5a611d66b724fad348ff29f61 

use_configure        no

depends_lib         port:freetype \
                    port:openmotif \
                    port:xorg-libX11

build {}

destroot {
    set path "${destroot}${prefix}/share/java/${name}/"
    xinstall -m 755 -d ${path}
    system "(cd ${worksrcpath} && tar cf - *) | (tar -C ${path} -xf -)"
}