wok-stable view icedtea6-jdk/receipt @ rev 4178
xfce4, fix DEPENDS
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Sep 22 20:26:37 2009 +0000 (2009-09-22) |
parents | 4b87fa7f8c1c |
children | 768329868eb6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="icedtea6-jdk"
4 SOURCE="icedtea6"
5 VERSION="1.6.1"
6 CATEGORY="development"
7 SHORT_DESC="A Free Software harness for OpenJDK."
8 MAINTAINER="rcx@zoominternet.net"
9 DEPENDS="icedtea6-jre glibc-base zlib xorg-libX11 xorg-libXau xorg-libXdmcp"
10 BUILD_DEPENDS="gcc+gcj slitaz-toolchain autoconf automake m4 \
11 coreutils-file-special coreutils-file-summarize alsa-lib-dev cups-dev \
12 gawk file patch findutils perl zip unzip bzip2 tar cpio glib-dev zlib-dev \
13 fastjar rhino ecj apache-ant xalan-xerces-j \
14 freetype-dev gtk+-dev giflib-dev jpeg-dev libpng-dev \
15 xorg-inputproto xorg-kbproto xorg-libXi-dev xorg-libXinerama-dev \
16 xorg-libXp-dev xorg-libXt-dev xorg-libXtst-dev xorg-printproto \
17 xorg-recordproto xorg-renderproto xorg-xextproto xorg-xineramaproto xorg-xproto"
18 TARBALL="$SOURCE-$VERSION.tar.gz"
19 WEB_SITE="http://www.iced-tea.org/"
20 WGET_URL="http://icedtea.classpath.org/download/source/$TARBALL"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 local JVM_PREFIX
26 JVM_PREFIX=/usr/lib/jvm/java-icedtea
28 # NOTE: This build does not seem to work with ECJ 3.5
30 cd $src
31 autoreconf &&
32 ./configure \
33 --prefix=/usr \
34 --disable-plugin \
35 --disable-docs \
36 --with-ecj \
37 --with-ecj-jar=/usr/share/java/ecj-3.4.2.jar \
38 --with-gcj \
39 --with-gcj-home=/usr/lib/jvm/java-gcj \
40 --with-xalan2-jar=/usr/share/java/xalan.jar \
41 --with-xalan2-serializer-jar=/usr/share/java/serializer.jar \
42 --with-xerces2-jar=/usr/share/java/xercesImpl.jar \
43 --with-rhino=/usr/share/java/js.jar \
44 --with-abs-install-dir=$JVM_PREFIX \
45 $CONFIGURE_ARGS &&
46 make ARCH_PREFIX= || exit 1
48 # NOTE: IcedTea6 does not define an "install" target
50 rm -r -f $src/_pkg
52 local JVM_BUILDDIR
53 JVM_BUILDDIR=$src/openjdk/build/linux-i586/j2sdk-image
54 local JVM_DESTDIR
55 JVM_DESTDIR=$src/_pkg$JVM_PREFIX
57 mkdir -p $JVM_DESTDIR
58 cp -a $JVM_BUILDDIR/bin $JVM_DESTDIR
59 cp -a $JVM_BUILDDIR/lib $JVM_DESTDIR
61 mkdir -p $JVM_DESTDIR/jre
62 cp -a $JVM_BUILDDIR/jre/bin $JVM_DESTDIR/jre
63 cp -a $JVM_BUILDDIR/jre/lib $JVM_DESTDIR/jre
65 # Delete duplicated executables from the JDK bin
66 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do
67 rm -f $JVM_DESTDIR/bin/$jbin
68 done
70 # Create symlinks for JDK binaries
71 mkdir -p $src/_pkg/usr/jdk-bin
72 for jbin in $(ls -1 $JVM_DESTDIR/bin) ; do
73 ln -s $JVM_PREFIX/bin/$jbin $src/_pkg/usr/jdk-bin/$jbin
74 done
76 # Create symlinks for JRE binaries
77 mkdir -p $src/_pkg/usr/jre-bin
78 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do
79 ln -s $JVM_PREFIX/jre/bin/$jbin $JVM_DESTDIR/bin/$jbin
80 ln -s $JVM_PREFIX/jre/bin/$jbin $src/_pkg/usr/jre-bin
81 done
82 }
84 # Rules to gen a SliTaz package suitable for Tazpkg.
85 genpkg_rules()
86 {
87 mkdir -p $fs/usr/lib/jvm/java-icedtea
88 cp -a $_pkg/usr/lib/jvm/java-icedtea/bin $fs/usr/lib/jvm/java-icedtea
89 cp -a $_pkg/usr/lib/jvm/java-icedtea/lib $fs/usr/lib/jvm/java-icedtea
90 }