wok-current annotate icedtea6-jdk/receipt @ rev 4307
icedtea6-jdk: be busybox compatible (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 28 15:24:08 2009 +0200 (2009-09-28) |
parents | 7d0819bf33c0 |
children | 75d2a59aee7a |
rev | line source |
---|---|
rcx@3803 | 1 # SliTaz package receipt. |
rcx@3803 | 2 |
rcx@3803 | 3 PACKAGE="icedtea6-jdk" |
rcx@3803 | 4 SOURCE="icedtea6" |
rcx@4155 | 5 VERSION="1.6.1" |
rcx@3803 | 6 CATEGORY="development" |
rcx@3803 | 7 SHORT_DESC="A Free Software harness for OpenJDK." |
rcx@3803 | 8 MAINTAINER="rcx@zoominternet.net" |
rcx@3803 | 9 DEPENDS="icedtea6-jre glibc-base zlib xorg-libX11 xorg-libXau xorg-libXdmcp" |
rcx@3803 | 10 BUILD_DEPENDS="gcc+gcj slitaz-toolchain autoconf automake m4 \ |
rcx@3803 | 11 coreutils-file-special coreutils-file-summarize alsa-lib-dev cups-dev \ |
rcx@3803 | 12 gawk file patch findutils perl zip unzip bzip2 tar cpio glib-dev zlib-dev \ |
rcx@3807 | 13 fastjar rhino ecj apache-ant xalan-xerces-j \ |
rcx@3803 | 14 freetype-dev gtk+-dev giflib-dev jpeg-dev libpng-dev \ |
rcx@3803 | 15 xorg-inputproto xorg-kbproto xorg-libXi-dev xorg-libXinerama-dev \ |
rcx@3803 | 16 xorg-libXp-dev xorg-libXt-dev xorg-libXtst-dev xorg-printproto \ |
rcx@3803 | 17 xorg-recordproto xorg-renderproto xorg-xextproto xorg-xineramaproto xorg-xproto" |
rcx@3803 | 18 TARBALL="$SOURCE-$VERSION.tar.gz" |
rcx@3803 | 19 WEB_SITE="http://www.iced-tea.org/" |
rcx@3803 | 20 WGET_URL="http://icedtea.classpath.org/download/source/$TARBALL" |
rcx@3803 | 21 |
rcx@3803 | 22 # Rules to configure and make the package. |
rcx@3803 | 23 compile_rules() |
rcx@3803 | 24 { |
rcx@3803 | 25 local JVM_PREFIX |
rcx@3803 | 26 JVM_PREFIX=/usr/lib/jvm/java-icedtea |
rcx@3910 | 27 |
rcx@3803 | 28 # NOTE: This build does not seem to work with ECJ 3.5 |
rcx@3803 | 29 |
rcx@3803 | 30 cd $src |
pascal@4304 | 31 cat > slitaz.sh <<EOT |
pascal@4304 | 32 # Busybox compatibility |
pascal@4307 | 33 find -name Sanity.gmk | xargs sed -i 's/--sync -kP/-k/' Makefile |
pascal@4307 | 34 find -name Platform.gmk | xargs sed -i 's@MB_OF_MEMORY :=.*@MB_OF_MEMORY := \$(shell free | awk '"'"'/Mem:/ { printf "%d\\n",\$2/1024 }'"'"')@' Makefile |
pascal@4304 | 35 EOT |
pascal@4306 | 36 sed -i -e 's|touch stamps/extract.stamp|&\n\tsh slitaz.sh|' \ |
pascal@4307 | 37 -e 's|touch stamps/download.stamp|&\n\tsh slitaz.sh|' \ |
pascal@4304 | 38 -e 's/ln -sfv/ln -sf/' Makefile* |
rcx@3803 | 39 autoreconf && |
rcx@3803 | 40 ./configure \ |
rcx@3803 | 41 --prefix=/usr \ |
rcx@3803 | 42 --disable-plugin \ |
rcx@3803 | 43 --disable-docs \ |
rcx@3803 | 44 --with-ecj \ |
rcx@3803 | 45 --with-ecj-jar=/usr/share/java/ecj-3.4.2.jar \ |
rcx@3803 | 46 --with-gcj \ |
rcx@3803 | 47 --with-gcj-home=/usr/lib/jvm/java-gcj \ |
rcx@3803 | 48 --with-xalan2-jar=/usr/share/java/xalan.jar \ |
rcx@3803 | 49 --with-xalan2-serializer-jar=/usr/share/java/serializer.jar \ |
rcx@3803 | 50 --with-xerces2-jar=/usr/share/java/xercesImpl.jar \ |
rcx@3803 | 51 --with-rhino=/usr/share/java/js.jar \ |
rcx@3803 | 52 --with-abs-install-dir=$JVM_PREFIX \ |
rcx@3803 | 53 $CONFIGURE_ARGS && |
rcx@3803 | 54 make ARCH_PREFIX= || exit 1 |
rcx@3803 | 55 |
rcx@3803 | 56 # NOTE: IcedTea6 does not define an "install" target |
rcx@3803 | 57 |
rcx@3803 | 58 rm -r -f $src/_pkg |
rcx@3803 | 59 |
rcx@3803 | 60 local JVM_BUILDDIR |
rcx@3803 | 61 JVM_BUILDDIR=$src/openjdk/build/linux-i586/j2sdk-image |
rcx@3803 | 62 local JVM_DESTDIR |
rcx@3803 | 63 JVM_DESTDIR=$src/_pkg$JVM_PREFIX |
rcx@3803 | 64 |
rcx@3803 | 65 mkdir -p $JVM_DESTDIR |
rcx@3803 | 66 cp -a $JVM_BUILDDIR/bin $JVM_DESTDIR |
rcx@3803 | 67 cp -a $JVM_BUILDDIR/lib $JVM_DESTDIR |
rcx@3803 | 68 |
rcx@3803 | 69 mkdir -p $JVM_DESTDIR/jre |
rcx@3803 | 70 cp -a $JVM_BUILDDIR/jre/bin $JVM_DESTDIR/jre |
rcx@3803 | 71 cp -a $JVM_BUILDDIR/jre/lib $JVM_DESTDIR/jre |
rcx@3803 | 72 |
rcx@3803 | 73 # Delete duplicated executables from the JDK bin |
rcx@3803 | 74 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do |
rcx@3803 | 75 rm -f $JVM_DESTDIR/bin/$jbin |
rcx@3803 | 76 done |
rcx@3803 | 77 |
rcx@3803 | 78 # Create symlinks for JDK binaries |
rcx@3803 | 79 mkdir -p $src/_pkg/usr/jdk-bin |
rcx@3803 | 80 for jbin in $(ls -1 $JVM_DESTDIR/bin) ; do |
rcx@3803 | 81 ln -s $JVM_PREFIX/bin/$jbin $src/_pkg/usr/jdk-bin/$jbin |
rcx@3803 | 82 done |
rcx@3803 | 83 |
rcx@3803 | 84 # Create symlinks for JRE binaries |
rcx@3803 | 85 mkdir -p $src/_pkg/usr/jre-bin |
rcx@3803 | 86 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do |
rcx@3803 | 87 ln -s $JVM_PREFIX/jre/bin/$jbin $JVM_DESTDIR/bin/$jbin |
rcx@3803 | 88 ln -s $JVM_PREFIX/jre/bin/$jbin $src/_pkg/usr/jre-bin |
rcx@3803 | 89 done |
rcx@3803 | 90 } |
rcx@3803 | 91 |
rcx@3803 | 92 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3803 | 93 genpkg_rules() |
rcx@3803 | 94 { |
rcx@3803 | 95 mkdir -p $fs/usr/lib/jvm/java-icedtea |
rcx@3803 | 96 cp -a $_pkg/usr/lib/jvm/java-icedtea/bin $fs/usr/lib/jvm/java-icedtea |
rcx@3803 | 97 cp -a $_pkg/usr/lib/jvm/java-icedtea/lib $fs/usr/lib/jvm/java-icedtea |
rcx@3803 | 98 } |