wok-6.x view icedtea6-jdk/receipt @ rev 6007

bazaar: Upgrade to 2.2.0
author Matthew Sheets <rcx@zoominternet.net>
date Sat Aug 14 16:34:52 2010 +0000 (2010-08-14)
parents 8806a69fb967
children d2cca572c203
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 diffutils gawk \
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 [ -L /usr/bin/diff ] && tazpkg get-install diffutils --forced
32 [ -L /usr/bin/awk ] && tazpkg get-install gawk --forced
33 mem=$(free | awk '/Mem:/ { printf "%d\n",$2/1024 }')
34 cat > slitaz.sh <<EOT
35 # Busybox compatibility
36 find -name Sanity.gmk | xargs sed -i 's/--sync -kP/-k/' Makefile
37 find -name Platform.gmk | xargs sed -i "s@MB_OF_MEMORY :=.*@MB_OF_MEMORY := $mem@" Makefile
38 EOT
39 sed -i -e 's|touch stamps/extract.stamp|&\n\tsh slitaz.sh|' \
40 -e 's|touch stamps/download.stamp|&\n\tsh slitaz.sh|' \
41 -e 's/--check/-c/' \
42 -e 's/ln -sfv/ln -sf/' Makefile*
43 autoreconf &&
44 ./configure \
45 --prefix=/usr \
46 --disable-plugin \
47 --disable-docs \
48 --with-ecj \
49 --with-ecj-jar=/usr/share/java/ecj-3.4.2.jar \
50 --with-gcj \
51 --with-gcj-home=/usr/lib/jvm/java-gcj \
52 --with-xalan2-jar=/usr/share/java/xalan.jar \
53 --with-xalan2-serializer-jar=/usr/share/java/serializer.jar \
54 --with-xerces2-jar=/usr/share/java/xercesImpl.jar \
55 --with-rhino=/usr/share/java/js.jar \
56 --with-abs-install-dir=$JVM_PREFIX \
57 $CONFIGURE_ARGS &&
58 make -j 4 ARCH_PREFIX= || exit 1
60 # NOTE: IcedTea6 does not define an "install" target
62 rm -r -f $src/_pkg
64 local JVM_BUILDDIR
65 JVM_BUILDDIR=$src/openjdk/build/linux-i586/j2sdk-image
66 local JVM_DESTDIR
67 JVM_DESTDIR=$src/_pkg$JVM_PREFIX
69 mkdir -p $JVM_DESTDIR
70 cp -a $JVM_BUILDDIR/bin $JVM_DESTDIR
71 cp -a $JVM_BUILDDIR/lib $JVM_DESTDIR
73 mkdir -p $JVM_DESTDIR/jre
74 cp -a $JVM_BUILDDIR/jre/bin $JVM_DESTDIR/jre
75 cp -a $JVM_BUILDDIR/jre/lib $JVM_DESTDIR/jre
77 # Delete duplicated executables from the JDK bin
78 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do
79 rm -f $JVM_DESTDIR/bin/$jbin
80 done
82 # Create symlinks for JDK binaries
83 mkdir -p $src/_pkg/usr/jdk-bin
84 for jbin in $(ls -1 $JVM_DESTDIR/bin) ; do
85 ln -s $JVM_PREFIX/bin/$jbin $src/_pkg/usr/jdk-bin/$jbin
86 done
88 # Create symlinks for JRE binaries
89 mkdir -p $src/_pkg/usr/jre-bin
90 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do
91 ln -s $JVM_PREFIX/jre/bin/$jbin $JVM_DESTDIR/bin/$jbin
92 ln -s $JVM_PREFIX/jre/bin/$jbin $src/_pkg/usr/jre-bin
93 done
94 }
96 # Rules to gen a SliTaz package suitable for Tazpkg.
97 genpkg_rules()
98 {
99 mkdir -p $fs/usr/lib/jvm/java-icedtea
100 cp -a $_pkg/usr/lib/jvm/java-icedtea/bin $fs/usr/lib/jvm/java-icedtea
101 cp -a $_pkg/usr/lib/jvm/java-icedtea/lib $fs/usr/lib/jvm/java-icedtea
102 }