Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2299 - (hide annotations)
Wed Mar 23 20:39:10 2011 UTC (2 years, 1 month ago) by acrux
File size: 2829 byte(s)
icedtea6: updated to 1.10
1 acrux 2099 # Description: OpenJDK with replacement libraries from GNU Classpath
2     # URL: http://icedtea.classpath.org/
3     # Maintainer: acrux, acrux at linuxmail dot org
4     # Packager: Giuseppe Coviello <cjg@cruxppc.org>
5 acrux 2299 # Depends on: ant, libffi, fastjar, freetype, libungif, jdk, rhino, xalan-java, xorg-libxp, cups
6 acrux 2099 # PPC!=upstream:
7    
8     name=icedtea6
9 acrux 2299 version=1.10
10 acrux 2099 release=1
11     source=(http://icedtea.classpath.org/download/source/$name-$version.tar.gz \
12 acrux 2299 http://download.java.net/openjdk/jdk6/promoted/b22/openjdk-6-src-b22-28_feb_2011.tar.gz \
13     http://icedtea.classpath.org/download/drops/jaxp144_01.zip \
14 acrux 2189 http://icedtea.classpath.org/download/drops/jdk6-jaxws-b20.zip \
15 acrux 2208 http://icedtea.classpath.org/download/drops/jdk6-jaf-b20.zip \
16     $name-libungif.diff)
17 acrux 2099
18     build() {
19     unset MAKEFLAGS
20     unset JAVA_HOME
21     _arch=$(echo $HOSTTYPE | sed 's|powerpc|ppc|')
22 acrux 2256 JDK_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch}
23 acrux 2099
24     cd $name-$version
25    
26     mkdir bin
27     find /bin -exec ln -s {} bin \;
28     ln -s /usr/bin/{cpio,grep,egrep,zip,unzip,gawk,cut,tr,expr} bin
29     export PATH=$PWD/bin:$PATH
30    
31     sed 's|lgif|lungif|' -i configure
32    
33     ./configure \
34 acrux 2299 --with-openjdk-src-zip=$PKGMK_SOURCE_DIR/openjdk-6-src-b22-28_feb_2011.tar.gz \
35     --with-jaxp-drop-zip=$PKGMK_SOURCE_DIR/jaxp144_01.zip \
36 acrux 2099 --with-jaf-drop-zip=$PKGMK_SOURCE_DIR/jdk6-jaf-b20.zip \
37     --with-jaxws-drop-zip=$PKGMK_SOURCE_DIR/jdk6-jaxws-b20.zip \
38 acrux 2256 --with-pkgversion=cruxppc-2.7-${_arch} \
39 acrux 2299 --with-jdk-home=${JDK_HOME} --disable-bootstrap \
40 acrux 2256 --with-java=${JDK_HOME} \
41     --with-abs-install-dir=${JDK_HOME} \
42 acrux 2099 --enable-zero \
43     --enable-nss \
44     --disable-docs \
45 acrux 2252 --with-xalan2-jar=/usr/share/java/xalan2.jar \
46 acrux 2099 --with-xerces2-jar=/usr/share/java/xercesImpl.jar \
47     --with-xalan2-serializer-jar=/usr/share/java/serializer.jar \
48     --with-rhino=/usr/share/java/js.jar \
49     --with-ant-home=/usr/lib/ant \
50     --with-parallel-jobs=$((2 * $(cat /proc/cpuinfo | grep ^processor | wc -l)))
51    
52     make patch
53     patch -p0 < $SRC/$name-libungif.diff
54    
55     # this FIX xulrunner path
56     sed 's|/stable|/|' -i Makefile
57    
58     make UNIXCOMMAND_PATH=$PWD/bin/
59    
60     mkdir -p $PKG/usr/{bin,lib/jvm,man}
61     cp -a openjdk.build/j2sdk-image $PKG/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch}
62    
63     cd $PKG/usr/lib/jvm
64    
65     export GLOBIGNORE="*/man1"
66     rm -rf *openjdk*/{man/,jre/lib/javaws/messages_,demo,sample}*
67     rm -rf *openjdk*/jre/lib/fontconfig.*.{bfc,properties.src}
68    
69 acrux 2256 rm -f *openjdk*/man/man1/javaws.1
70     mv *openjdk*/man/ $PKG/usr/
71    
72 acrux 2099 export GLOBIGNORE="*/src.zip"
73     for i in *openjdk*/* *openjdk*/jre/*; do
74     test -f $i && rm -rf $i;
75     done
76    
77 acrux 2256 for j in java javac javah javap jar keytool; do
78 acrux 2099 ln -s /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch}/bin/$j $PKG/usr/bin
79     done
80    
81     ln -s java-1.6.0-openjdk-1.6.0.0.${_arch} java-1.6.0-openjdk.${_arch}
82     ln -s java-1.6.0-openjdk-1.6.0.0.${_arch} jre-1.6.0-openjdk.${_arch}
83     }