CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 2553 -
(hide annotations)
Sat Jan 14 11:42:36 2012 UTC (16 months, 1 week ago) by acrux
File size: 2943 byte(s)
Sat Jan 14 11:42:36 2012 UTC (16 months, 1 week ago) by acrux
File size: 2943 byte(s)
icedtea6: updated to 1.10.5, added new dependency
| 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 | 2553 | # Depends on: ant, libffi, fastjar, freetype, libungif, jdk, rhino, xalan-java, xorg-libxp, xorg-font-dejavu, cups |
| 6 | acrux | 2099 | # PPC!=upstream: |
| 7 | |||
| 8 | name=icedtea6 | ||
| 9 | acrux | 2553 | version=1.10.5 |
| 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 | acrux | 2553 | $name-libungif.diff fontconfig.Crux.properties.src) |
| 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-abs-install-dir=${JDK_HOME} \ |
| 41 | acrux | 2099 | --enable-zero \ |
| 42 | --enable-nss \ | ||
| 43 | --disable-docs \ | ||
| 44 | acrux | 2252 | --with-xalan2-jar=/usr/share/java/xalan2.jar \ |
| 45 | acrux | 2099 | --with-xerces2-jar=/usr/share/java/xercesImpl.jar \ |
| 46 | --with-xalan2-serializer-jar=/usr/share/java/serializer.jar \ | ||
| 47 | --with-rhino=/usr/share/java/js.jar \ | ||
| 48 | --with-ant-home=/usr/lib/ant \ | ||
| 49 | acrux | 2553 | --with-parallel-jobs=$(grep -c ^proc /proc/cpuinfo) |
| 50 | acrux | 2099 | |
| 51 | make patch | ||
| 52 | patch -p0 < $SRC/$name-libungif.diff | ||
| 53 | |||
| 54 | # this FIX xulrunner path | ||
| 55 | sed 's|/stable|/|' -i Makefile | ||
| 56 | |||
| 57 | make UNIXCOMMAND_PATH=$PWD/bin/ | ||
| 58 | |||
| 59 | mkdir -p $PKG/usr/{bin,lib/jvm,man} | ||
| 60 | acrux | 2553 | cp -a $SRC/fontconfig.Crux.properties.src openjdk.build/j2sdk-image/jre/lib/fontconfig.properties |
| 61 | acrux | 2099 | cp -a openjdk.build/j2sdk-image $PKG/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch} |
| 62 | cd $PKG/usr/lib/jvm | ||
| 63 | |||
| 64 | export GLOBIGNORE="*/man1" | ||
| 65 | rm -rf *openjdk*/{man/,jre/lib/javaws/messages_,demo,sample}* | ||
| 66 | acrux | 2553 | rm -rf *openjdk*/jre/lib/fontconfig.{properties.src,*.bfc,*.properties.src} |
| 67 | acrux | 2099 | |
| 68 | acrux | 2256 | rm -f *openjdk*/man/man1/javaws.1 |
| 69 | mv *openjdk*/man/ $PKG/usr/ | ||
| 70 | |||
| 71 | acrux | 2099 | export GLOBIGNORE="*/src.zip" |
| 72 | for i in *openjdk*/* *openjdk*/jre/*; do | ||
| 73 | test -f $i && rm -rf $i; | ||
| 74 | done | ||
| 75 | |||
| 76 | acrux | 2256 | for j in java javac javah javap jar keytool; do |
| 77 | acrux | 2099 | ln -s /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch}/bin/$j $PKG/usr/bin |
| 78 | done | ||
| 79 | |||
| 80 | ln -s java-1.6.0-openjdk-1.6.0.0.${_arch} java-1.6.0-openjdk.${_arch} | ||
| 81 | ln -s java-1.6.0-openjdk-1.6.0.0.${_arch} jre-1.6.0-openjdk.${_arch} | ||
| 82 | } |