CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 2099 -
(show annotations)
Sun Dec 12 11:59:16 2010 UTC (2 years, 5 months ago) by acrux
File size: 2888 byte(s)
Sun Dec 12 11:59:16 2010 UTC (2 years, 5 months ago) by acrux
File size: 2888 byte(s)
initial import
| 1 | # 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 | # Depends on: ant, libffi, fastjar, xulrunner, freetype, libungif, jdk, rhino, xalan-java, xorg-libxp, cups |
| 6 | # PPC!=upstream: |
| 7 | |
| 8 | name=icedtea6 |
| 9 | version=1.9.3 |
| 10 | release=1 |
| 11 | source=(http://icedtea.classpath.org/download/source/$name-$version.tar.gz \ |
| 12 | http://download.java.net/openjdk/jdk6/promoted/b20/openjdk-6-src-b20-21_jun_2010.tar.gz \ |
| 13 | https://jaxp.dev.java.net/files/documents/913/150648/jdk6-jaxp-b20.zip \ |
| 14 | https://jax-ws.dev.java.net/files/documents/4202/150724/jdk6-jaxws-b20.zip \ |
| 15 | https://jax-ws.dev.java.net/files/documents/4202/150725/jdk6-jaf-b20.zip \ |
| 16 | $name-libungif.diff) |
| 17 | |
| 18 | build() { |
| 19 | unset MAKEFLAGS |
| 20 | unset JAVA_HOME |
| 21 | _arch=$(echo $HOSTTYPE | sed 's|powerpc|ppc|') |
| 22 | |
| 23 | cd $name-$version |
| 24 | |
| 25 | mkdir bin |
| 26 | find /bin -exec ln -s {} bin \; |
| 27 | ln -s /usr/bin/{cpio,grep,egrep,zip,unzip,gawk,cut,tr,expr} bin |
| 28 | export PATH=$PWD/bin:$PATH |
| 29 | |
| 30 | sed 's|lgif|lungif|' -i configure |
| 31 | |
| 32 | ./configure \ |
| 33 | --with-openjdk-src-zip=$PKGMK_SOURCE_DIR/openjdk-6-src-b20-21_jun_2010.tar.gz \ |
| 34 | --with-jaxp-drop-zip=$PKGMK_SOURCE_DIR/jdk6-jaxp-b20.zip \ |
| 35 | --with-jaf-drop-zip=$PKGMK_SOURCE_DIR/jdk6-jaf-b20.zip \ |
| 36 | --with-jaxws-drop-zip=$PKGMK_SOURCE_DIR/jdk6-jaxws-b20.zip \ |
| 37 | --with-openjdk=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch} \ |
| 38 | --enable-zero \ |
| 39 | --enable-nss \ |
| 40 | --disable-docs \ |
| 41 | -with-xalan2-jar=/usr/share/java/xalan.jar \ |
| 42 | --with-xerces2-jar=/usr/share/java/xercesImpl.jar \ |
| 43 | --with-xalan2-serializer-jar=/usr/share/java/serializer.jar \ |
| 44 | --with-rhino=/usr/share/java/js.jar \ |
| 45 | --with-ant-home=/usr/lib/ant \ |
| 46 | --with-pkgversion=cruxppc-2.6-${_arch} \ |
| 47 | --with-abs-install-dir=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch} \ |
| 48 | --with-java=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch} \ |
| 49 | --with-parallel-jobs=$((2 * $(cat /proc/cpuinfo | grep ^processor | wc -l))) |
| 50 | |
| 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 | cp -a openjdk.build/j2sdk-image $PKG/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch} |
| 61 | |
| 62 | cd $PKG/usr/lib/jvm |
| 63 | |
| 64 | export GLOBIGNORE="*/man1" |
| 65 | rm -rf *openjdk*/{man/,jre/lib/javaws/messages_,demo,sample}* |
| 66 | rm -rf *openjdk*/jre/lib/fontconfig.*.{bfc,properties.src} |
| 67 | |
| 68 | export GLOBIGNORE="*/src.zip" |
| 69 | for i in *openjdk*/* *openjdk*/jre/*; do |
| 70 | test -f $i && rm -rf $i; |
| 71 | done |
| 72 | |
| 73 | for j in java javac javah javap javaws jar keytool; do |
| 74 | ln -s /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.${_arch}/bin/$j $PKG/usr/bin |
| 75 | done |
| 76 | |
| 77 | ln -s java-1.6.0-openjdk-1.6.0.0.${_arch} java-1.6.0-openjdk.${_arch} |
| 78 | ln -s java-1.6.0-openjdk-1.6.0.0.${_arch} jre-1.6.0-openjdk.${_arch} |
| 79 | } |