wok annotate icedtea6-jdk/receipt @ rev 20812

updated croscore-fonts (1.23.0 -> 1.31.0)
author Hans-G?nter Theisgen
date Mon Feb 18 10:19:53 2019 +0100 (2019-02-18)
parents e6537fd120f9
children a3c45ab9082e
rev   line source
rcx@3803 1 # SliTaz package receipt.
rcx@3803 2
rcx@3803 3 PACKAGE="icedtea6-jdk"
rcx@3803 4 SOURCE="icedtea6"
yuripourre@18355 5 VERSION="1.9.9"
rcx@3803 6 CATEGORY="development"
rcx@3803 7 SHORT_DESC="A Free Software harness for OpenJDK."
rcx@3803 8 MAINTAINER="rcx@zoominternet.net"
pascal@15000 9 LICENSE="GPL2"
rcx@3803 10 TARBALL="$SOURCE-$VERSION.tar.gz"
rcx@3803 11 WEB_SITE="http://www.iced-tea.org/"
yuripourre@18355 12 WGET_URL="http://icedtea.wildebeest.org/download/source/$TARBALL"
rcx@3803 13
pankso@10639 14 DEPENDS="icedtea6-jre xorg xorg-libXtst xorg-libXp cups"
pankso@10639 15 BUILD_DEPENDS="gcc+gcj autoconf automake m4 diffutils gawk cups-dev wget cpio \
pankso@10639 16 coreutils-file-special coreutils-file-summarize alsa-lib-dev file patch perl \
pankso@10639 17 zip unzip findutils bzip2 tar glib-dev fastjar rhino ecj apache-ant jpeg-dev \
pankso@10639 18 xalan-xerces-j gtk+-dev giflib-dev libpng-dev xorg-dev xorg-libXtst-dev \
pankso@10639 19 xorg-libXp-dev xorg-dev-proto nss nss-dev jdk6-jaxws jdk6-jaxp jdk6-jaf \
pankso@10639 20 openjdk-6-src"
pankso@10639 21
gokhlayeh@9223 22 # Note to icedtea6 updaters,
gokhlayeh@9223 23 # You should check version into receipts:
gokhlayeh@9223 24 # * jdk6-jaxws (version: $openjdk_version)
gokhlayeh@9223 25 # * jdk6-jaxp (version: $openjdk_version)
gokhlayeh@9223 26 # * jdk6-jaf (version: $openjdk_version)
gokhlayeh@9223 27 # * openjdk-6-src (version: $openjdk_version-$openjdk_date)
pankso@10639 28 # Theses receipts allow to have source tarballs in SRC.
slaxemulator@6866 29 openjdk_version="b20"
slaxemulator@6866 30 openjdk_date="21_jun_2010"
pascal@14337 31 EXTRA_SOURCE_FILES="jdk6-jaxws-$openjdk_version.zip \
pascal@14337 32 jdk6-jaxp-$openjdk_version.zip jdk6-jaf-$openjdk_version.zip \
pascal@14337 33 openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz"
slaxemulator@6866 34
rcx@3803 35 # Rules to configure and make the package.
rcx@3803 36 compile_rules()
rcx@3803 37 {
pascal@6031 38 # Limit memory usage
pascal@6031 39 ulimit -v $(awk '/MemTotal/ { print int(($2*80)/100) }' < /proc/meminfo)
pascal@6031 40
rcx@3803 41 local JVM_PREFIX
rcx@6017 42 JVM_PREFIX="/usr/lib/jvm/java-icedtea"
rcx@3910 43
rcx@3803 44 # NOTE: This build does not seem to work with ECJ 3.5
rcx@6017 45 local ECJ_VERSION
rcx@6017 46 ECJ_VERSION="3.6"
rcx@3803 47
pascal@20212 48 find $src -name '*akefile*' \; | xargs sed -i sed -i 's|uname -m|echo i486|'
rcx@3803 49 cd $src
pascal@6034 50 mkdir drops
rcx@6059 51 sed -i -e 's/mkdir -p drops/true/' -e 's/ jar xf/ fastjar xf/' Makefile*
gokhlayeh@9223 52
gokhlayeh@9223 53 # Check than all sources files are available, or exit.
hackdorte@20014 54 REPO=http://icedtea.wildebeest.org/download/drops
gokhlayeh@12083 55 if [ -x /usr/bin/cook ]; then
gokhlayeh@12083 56 for i in jdk6-jaxws jdk6-jaxp jdk6-jaf; do
pascal@12980 57 [ -s $SOURCES_REPOSITORY/$i-$openjdk_version.zip ] ||
pascal@12980 58 wget -P $SOURCES_REPOSITORY $REPO/$i-$openjdk_version.zip
gokhlayeh@12083 59 cp $SOURCES_REPOSITORY/$i-$openjdk_version.zip drops || return 1
gokhlayeh@12083 60 done
gokhlayeh@12083 61 # openjdk-6-src is in BUILD_DEPENDS and must be build like jdk6-* pkgs.
pascal@12980 62 [ -s $SOURCES_REPOSITORY/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz ] ||
pascal@12980 63 wget -P $SOURCES_REPOSITORY $REPO/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz
gokhlayeh@12083 64 cp $SOURCES_REPOSITORY/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz .
gokhlayeh@12083 65 else
gokhlayeh@12083 66 report open-bloc
gokhlayeh@12083 67 for i in jdk6-jaxws jdk6-jaxp jdk6-jaf openjdk-6-src; do
gokhlayeh@12083 68 tazwok get-src $i
gokhlayeh@12083 69 cp $SOURCES_REPOSITORY/$i-$openjdk_version.zip drops
gokhlayeh@12083 70 done
gokhlayeh@12083 71 cp $SOURCES_REPOSITORY/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz .
gokhlayeh@12083 72 report step "Running compilation"
gokhlayeh@12083 73 fi
slaxemulator@6894 74
pascal@5915 75 mem=$(free | awk '/Mem:/ { printf "%d\n",$2/1024 }')
pascal@4304 76 cat > slitaz.sh <<EOT
pascal@18358 77 # disable currency timebomb
pascal@18358 78 find -name GenerateCurrencyData.java | xargs sed -i 's|throw new RuntimeException("time is|System.err.println("time is|' 2> /dev/null
pascal@18358 79 find -name CurrencyData.properties | xargs sed -i 's/TR=TRL.*/TR=TRY/' 2> /dev/null
pascal@4304 80 # Busybox compatibility
slaxemulator@6892 81 #find -name Sanity.gmk | xargs sed -i 's/--sync -kP/-k/' Makefile
pascal@6034 82 find -name Platform.gmk | xargs sed -i "s@MB_OF_MEMORY *:=.*free.*@MB_OF_MEMORY := $mem@" Makefile
pascal@4304 83 EOT
pascal@6034 84 sed -i -e 's|touch .*|&\n\tsh slitaz.sh|' \
pascal@5152 85 -e 's/--check/-c/' \
pascal@15348 86 -e 's/Bsymbolic/& -lgcj/' \
pascal@4304 87 -e 's/ln -sfv/ln -sf/' Makefile*
pascal@17425 88 aclocal
pascal@17425 89 autoconf &&
pascal@17424 90 automake --add-missing &&
pascal@15336 91 {
rcx@3803 92 ./configure \
rcx@3803 93 --prefix=/usr \
rcx@3803 94 --disable-plugin \
rcx@3803 95 --disable-docs \
rcx@3803 96 --with-ecj \
rcx@6017 97 --with-ecj-jar=/usr/share/java/ecj-$ECJ_VERSION.jar \
rcx@3803 98 --with-gcj \
rcx@3803 99 --with-gcj-home=/usr/lib/jvm/java-gcj \
rcx@3803 100 --with-xalan2-jar=/usr/share/java/xalan.jar \
rcx@3803 101 --with-xalan2-serializer-jar=/usr/share/java/serializer.jar \
rcx@3803 102 --with-xerces2-jar=/usr/share/java/xercesImpl.jar \
rcx@3803 103 --with-rhino=/usr/share/java/js.jar \
rcx@3803 104 --with-abs-install-dir=$JVM_PREFIX \
gokhlayeh@12083 105 $CONFIGURE_ARGS || return 1
pascal@15348 106 make -j 1 ARCH_PREFIX= 2>&1 | sed '/java_lang_ClassLoaderr.NativeLibrary/d'
pascal@15337 107 } 2>&1 | sed 's/No such file/no such file/'
rcx@3803 108
pankso@10641 109 echo "Copying needed files to install dir..."
gokhlayeh@9223 110 rm -rf $DESTDIR
rcx@3803 111
rcx@3803 112 local JVM_BUILDDIR
slaxemulator@6927 113 JVM_BUILDDIR=$src/openjdk.build/j2sdk-image
rcx@3803 114 local JVM_DESTDIR
pankso@10639 115 JVM_DESTDIR=${DESTDIR}$JVM_PREFIX
pankso@10654 116 echo "OpenJDK build : source/openjdk.build/j2sdk-image"
pankso@10654 117 echo "OpenJDK install : install/$JVM_PREFIX"
rcx@3803 118
pankso@10654 119 echo "Copying JDK files : bin/ lib/"
rcx@3803 120 mkdir -p $JVM_DESTDIR
rcx@3803 121 cp -a $JVM_BUILDDIR/bin $JVM_DESTDIR
rcx@3803 122 cp -a $JVM_BUILDDIR/lib $JVM_DESTDIR
pankso@10641 123
pankso@10654 124 echo "Copying JRE files : bin/ lib/"
rcx@3803 125 mkdir -p $JVM_DESTDIR/jre
rcx@3803 126 cp -a $JVM_BUILDDIR/jre/bin $JVM_DESTDIR/jre
rcx@3803 127 cp -a $JVM_BUILDDIR/jre/lib $JVM_DESTDIR/jre
rcx@3803 128
rcx@3803 129 # Delete duplicated executables from the JDK bin
pankso@10641 130 echo "Deleting duplicated files..."
rcx@3803 131 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do
rcx@3803 132 rm -f $JVM_DESTDIR/bin/$jbin
rcx@3803 133 done
rcx@3803 134
rcx@3803 135 # Create symlinks for JDK binaries
pankso@10641 136 echo "Creating symlinks for JDK binaries..."
gokhlayeh@9223 137 mkdir -p $DESTDIR/usr/jdk-bin
rcx@3803 138 for jbin in $(ls -1 $JVM_DESTDIR/bin) ; do
gokhlayeh@9223 139 ln -s $JVM_PREFIX/bin/$jbin $DESTDIR/usr/jdk-bin/$jbin
rcx@3803 140 done
rcx@3803 141
rcx@3803 142 # Create symlinks for JRE binaries
pankso@10641 143 echo "Creating symlinks for JRE binaries..."
gokhlayeh@9223 144 mkdir -p $DESTDIR/usr/jre-bin
rcx@3803 145 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do
rcx@3803 146 ln -s $JVM_PREFIX/jre/bin/$jbin $JVM_DESTDIR/bin/$jbin
gokhlayeh@9223 147 ln -s $JVM_PREFIX/jre/bin/$jbin $DESTDIR/usr/jre-bin
rcx@3803 148 done
gokhlayeh@12083 149 if [ ! -x /usr/bin/cook ]; then
gokhlayeh@12083 150 report close-bloc
gokhlayeh@12083 151 fi
rcx@3803 152 }
rcx@3803 153
rcx@3803 154 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3803 155 genpkg_rules()
rcx@3803 156 {
rcx@3803 157 mkdir -p $fs/usr/lib/jvm/java-icedtea
pascal@14337 158 cp -a $install/usr/lib/jvm/java-icedtea/bin $fs/usr/lib/jvm/java-icedtea
pascal@14337 159 cp -a $install/usr/lib/jvm/java-icedtea/lib $fs/usr/lib/jvm/java-icedtea
rcx@3803 160 }