wok annotate icedtea6-jdk/receipt @ rev 25428

updated xarchiver (0.5.4.14 -> 0.5.4.18)
author Hans-G?nter Theisgen
date Thu Aug 18 17:12:42 2022 +0100 (2022-08-18)
parents a3c45ab9082e
children 92a3819b6bc8
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"
pascal@24909 11 WEB_SITE="https://en.wikipedia.org/wiki/IcedTea"
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
pascal@24083 35 current_version()
pascal@24083 36 {
pascal@24083 37 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24083 38 sed "/$SOURCE-[0-9]/!d;/tar/!d;/rc[0-9]/d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24083 39 }
pascal@24083 40
rcx@3803 41 # Rules to configure and make the package.
rcx@3803 42 compile_rules()
rcx@3803 43 {
pascal@6031 44 # Limit memory usage
pascal@6031 45 ulimit -v $(awk '/MemTotal/ { print int(($2*80)/100) }' < /proc/meminfo)
pascal@6031 46
rcx@3803 47 local JVM_PREFIX
rcx@6017 48 JVM_PREFIX="/usr/lib/jvm/java-icedtea"
rcx@3910 49
rcx@3803 50 # NOTE: This build does not seem to work with ECJ 3.5
rcx@6017 51 local ECJ_VERSION
rcx@6017 52 ECJ_VERSION="3.6"
rcx@3803 53
pascal@20212 54 find $src -name '*akefile*' \; | xargs sed -i sed -i 's|uname -m|echo i486|'
rcx@3803 55 cd $src
pascal@6034 56 mkdir drops
rcx@6059 57 sed -i -e 's/mkdir -p drops/true/' -e 's/ jar xf/ fastjar xf/' Makefile*
gokhlayeh@9223 58
gokhlayeh@9223 59 # Check than all sources files are available, or exit.
hackdorte@20014 60 REPO=http://icedtea.wildebeest.org/download/drops
gokhlayeh@12083 61 if [ -x /usr/bin/cook ]; then
gokhlayeh@12083 62 for i in jdk6-jaxws jdk6-jaxp jdk6-jaf; do
pascal@12980 63 [ -s $SOURCES_REPOSITORY/$i-$openjdk_version.zip ] ||
pascal@12980 64 wget -P $SOURCES_REPOSITORY $REPO/$i-$openjdk_version.zip
gokhlayeh@12083 65 cp $SOURCES_REPOSITORY/$i-$openjdk_version.zip drops || return 1
gokhlayeh@12083 66 done
gokhlayeh@12083 67 # openjdk-6-src is in BUILD_DEPENDS and must be build like jdk6-* pkgs.
pascal@12980 68 [ -s $SOURCES_REPOSITORY/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz ] ||
pascal@12980 69 wget -P $SOURCES_REPOSITORY $REPO/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz
gokhlayeh@12083 70 cp $SOURCES_REPOSITORY/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz .
gokhlayeh@12083 71 else
gokhlayeh@12083 72 report open-bloc
gokhlayeh@12083 73 for i in jdk6-jaxws jdk6-jaxp jdk6-jaf openjdk-6-src; do
gokhlayeh@12083 74 tazwok get-src $i
gokhlayeh@12083 75 cp $SOURCES_REPOSITORY/$i-$openjdk_version.zip drops
gokhlayeh@12083 76 done
gokhlayeh@12083 77 cp $SOURCES_REPOSITORY/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz .
gokhlayeh@12083 78 report step "Running compilation"
gokhlayeh@12083 79 fi
slaxemulator@6894 80
pascal@5915 81 mem=$(free | awk '/Mem:/ { printf "%d\n",$2/1024 }')
pascal@4304 82 cat > slitaz.sh <<EOT
pascal@18358 83 # disable currency timebomb
pascal@18358 84 find -name GenerateCurrencyData.java | xargs sed -i 's|throw new RuntimeException("time is|System.err.println("time is|' 2> /dev/null
pascal@18358 85 find -name CurrencyData.properties | xargs sed -i 's/TR=TRL.*/TR=TRY/' 2> /dev/null
pascal@4304 86 # Busybox compatibility
slaxemulator@6892 87 #find -name Sanity.gmk | xargs sed -i 's/--sync -kP/-k/' Makefile
pascal@6034 88 find -name Platform.gmk | xargs sed -i "s@MB_OF_MEMORY *:=.*free.*@MB_OF_MEMORY := $mem@" Makefile
pascal@4304 89 EOT
pascal@6034 90 sed -i -e 's|touch .*|&\n\tsh slitaz.sh|' \
pascal@5152 91 -e 's/--check/-c/' \
pascal@15348 92 -e 's/Bsymbolic/& -lgcj/' \
pascal@4304 93 -e 's/ln -sfv/ln -sf/' Makefile*
pascal@17425 94 aclocal
pascal@17425 95 autoconf &&
pascal@17424 96 automake --add-missing &&
pascal@15336 97 {
rcx@3803 98 ./configure \
rcx@3803 99 --prefix=/usr \
rcx@3803 100 --disable-plugin \
rcx@3803 101 --disable-docs \
rcx@3803 102 --with-ecj \
rcx@6017 103 --with-ecj-jar=/usr/share/java/ecj-$ECJ_VERSION.jar \
rcx@3803 104 --with-gcj \
rcx@3803 105 --with-gcj-home=/usr/lib/jvm/java-gcj \
rcx@3803 106 --with-xalan2-jar=/usr/share/java/xalan.jar \
rcx@3803 107 --with-xalan2-serializer-jar=/usr/share/java/serializer.jar \
rcx@3803 108 --with-xerces2-jar=/usr/share/java/xercesImpl.jar \
rcx@3803 109 --with-rhino=/usr/share/java/js.jar \
rcx@3803 110 --with-abs-install-dir=$JVM_PREFIX \
gokhlayeh@12083 111 $CONFIGURE_ARGS || return 1
pascal@15348 112 make -j 1 ARCH_PREFIX= 2>&1 | sed '/java_lang_ClassLoaderr.NativeLibrary/d'
pascal@15337 113 } 2>&1 | sed 's/No such file/no such file/'
rcx@3803 114
pankso@10641 115 echo "Copying needed files to install dir..."
gokhlayeh@9223 116 rm -rf $DESTDIR
rcx@3803 117
rcx@3803 118 local JVM_BUILDDIR
slaxemulator@6927 119 JVM_BUILDDIR=$src/openjdk.build/j2sdk-image
rcx@3803 120 local JVM_DESTDIR
pankso@10639 121 JVM_DESTDIR=${DESTDIR}$JVM_PREFIX
pankso@10654 122 echo "OpenJDK build : source/openjdk.build/j2sdk-image"
pankso@10654 123 echo "OpenJDK install : install/$JVM_PREFIX"
rcx@3803 124
pankso@10654 125 echo "Copying JDK files : bin/ lib/"
rcx@3803 126 mkdir -p $JVM_DESTDIR
rcx@3803 127 cp -a $JVM_BUILDDIR/bin $JVM_DESTDIR
rcx@3803 128 cp -a $JVM_BUILDDIR/lib $JVM_DESTDIR
pankso@10641 129
pankso@10654 130 echo "Copying JRE files : bin/ lib/"
rcx@3803 131 mkdir -p $JVM_DESTDIR/jre
rcx@3803 132 cp -a $JVM_BUILDDIR/jre/bin $JVM_DESTDIR/jre
rcx@3803 133 cp -a $JVM_BUILDDIR/jre/lib $JVM_DESTDIR/jre
rcx@3803 134
rcx@3803 135 # Delete duplicated executables from the JDK bin
pankso@10641 136 echo "Deleting duplicated files..."
rcx@3803 137 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do
rcx@3803 138 rm -f $JVM_DESTDIR/bin/$jbin
rcx@3803 139 done
rcx@3803 140
rcx@3803 141 # Create symlinks for JDK binaries
pankso@10641 142 echo "Creating symlinks for JDK binaries..."
gokhlayeh@9223 143 mkdir -p $DESTDIR/usr/jdk-bin
rcx@3803 144 for jbin in $(ls -1 $JVM_DESTDIR/bin) ; do
gokhlayeh@9223 145 ln -s $JVM_PREFIX/bin/$jbin $DESTDIR/usr/jdk-bin/$jbin
rcx@3803 146 done
rcx@3803 147
rcx@3803 148 # Create symlinks for JRE binaries
pankso@10641 149 echo "Creating symlinks for JRE binaries..."
gokhlayeh@9223 150 mkdir -p $DESTDIR/usr/jre-bin
rcx@3803 151 for jbin in $(ls -1 $JVM_DESTDIR/jre/bin) ; do
rcx@3803 152 ln -s $JVM_PREFIX/jre/bin/$jbin $JVM_DESTDIR/bin/$jbin
gokhlayeh@9223 153 ln -s $JVM_PREFIX/jre/bin/$jbin $DESTDIR/usr/jre-bin
rcx@3803 154 done
gokhlayeh@12083 155 if [ ! -x /usr/bin/cook ]; then
gokhlayeh@12083 156 report close-bloc
gokhlayeh@12083 157 fi
rcx@3803 158 }
rcx@3803 159
rcx@3803 160 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3803 161 genpkg_rules()
rcx@3803 162 {
rcx@3803 163 mkdir -p $fs/usr/lib/jvm/java-icedtea
pascal@14337 164 cp -a $install/usr/lib/jvm/java-icedtea/bin $fs/usr/lib/jvm/java-icedtea
pascal@14337 165 cp -a $install/usr/lib/jvm/java-icedtea/lib $fs/usr/lib/jvm/java-icedtea
rcx@3803 166 }