summaryrefslogtreecommitdiff
path: root/recipes/sun-jre
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/sun-jre
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/sun-jre')
-rw-r--r--recipes/sun-jre/sun-jre6_1.6.0.10.bb71
1 files changed, 71 insertions, 0 deletions
diff --git a/recipes/sun-jre/sun-jre6_1.6.0.10.bb b/recipes/sun-jre/sun-jre6_1.6.0.10.bb
new file mode 100644
index 0000000000..f67894c39a
--- /dev/null
+++ b/recipes/sun-jre/sun-jre6_1.6.0.10.bb
@@ -0,0 +1,71 @@
+DESCRIPTION = "Sun J2SE Runtime Environment"
+LICENSE = "Sun Binary Code License Agreement"
+RDEPENDS_${PN} += "libx11-locale"
+RDEPENDS_${PN}-plugin += "${PN}"
+PR = "r1"
+PRIVATE_LIBS = "${@base_read_file('${WORKDIR}/${SD}.shlibs')}"
+
+SRC_URI = "http://download.java.net/dlj/binaries/jdk-6u10-dlj-linux-i586.bin"
+
+SP = "jdk-6u10-dlj-linux-i586.bin"
+SD = "jdk1.6.0_10"
+S = "${WORKDIR}"
+
+do_install() {
+ export MORE=10000
+ sh ${WORKDIR}/${SP} --accept-license >/dev/null
+ chmod -R go=u-w ${SD}
+ chmod -R u+w ${SD}
+ mkdir -p ${D}${libdir}/sun-java6-${PV}
+ mv ${S}/${SD}/jre/* ${D}${libdir}/sun-java6-${PV}
+ mkdir -p ${D}${libdir}/mozilla/plugins
+ cd ${D}${libdir}/mozilla/plugins
+ ln -s ${libdir}/sun-java6-${PV}/plugin/i386/ns7/libjavaplugin_oji.so .
+ cd ${D}${libdir}/sun-java6-${PV}
+ for p in `find . -name '*.pack'`; do
+ ./bin/unpack200 $p $(echo $p | sed 's,.pack$,.jar,g') || exit 1
+ rm $p
+ done
+ for i in bin/ControlPanel \
+ bin/javaws \
+ bin/jcontrol \
+ bin/keytool \
+ bin/orbd \
+ bin/pack200 \
+ bin/policytool \
+ bin/rmid \
+ bin/rmiregistry \
+ bin/servertool \
+ bin/tnameserv \
+ bin/unpack200
+ do
+ rm $i
+ done
+ rm -rf javaws lib/javaws*
+ rm -rf plugin/desktop plugin/i386/ns7-gcc29
+ rm -f lib/fontconfig.*.bfc lib/fontconfig.*.properties.src
+ rm -f lib/javaws.jar lib/ext/ldapsec.jar lib/cmm/PYCC.pf \
+ lib/audio/soundbank.gm
+ rm -rf lib/i386/server lib/i386/motif21 lib/i386/client/classes.jsa \
+ lib/i386/libjavaplugin_nscp_gcc29.so \
+ lib/i386/headless
+ rm -rf fonts oblique-fonts man
+ rm -rf lib/locale lib/zi lib/management
+ rm -rf lib/desktop LICENSE README COPYRIGHT THIRDPARTYLICENSEREADME.txt \
+ Welcome.html
+ # Find out what shared libs we contain and spit it out to a file
+ find . -name "*.so" -exec basename {} \; | sort | uniq > ${WORKDIR}/${SD}.shlibs
+}
+
+PACKAGES =+ "${PN}-plugin"
+FILES_${PN} = "/usr/"
+FILES_${PN}-dbg += "/usr/*/.debug /usr/*/*/.debug /usr/*/*/*/.debug /usr/*/*/*/*/.debug /usr/*/*/*/*/*/.debug"
+FILES_${PN}-plugin = "${libdir}/mozilla/plugins/* ${libdir}/sun-java6-${PV}/plugin/i386/ns7/libjavaplugin_oji.so"
+
+pkg_postinst_${PN} () {
+ grep -v JAVA_HOME /etc/environment > /etc/environment.new
+ mv /etc/environment.new /etc/environment
+ echo "JAVA_HOME=\"${libdir}/sun-java6-${PV}\"" >> /etc/environment
+}
+
+COMPATIBLE_HOST = "i.86.*-linux"