From 7951a6b0278c4c108301e929e4001e80b03bc03d Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Tue, 9 Feb 2010 12:29:34 +0100 Subject: swt-gtk.inc: Removed need for specifying SWTVERSION, now done programmatically. swt3.4-gtk 3.4.2: Removed SWTVERSION. --- recipes/swt/swt-gtk.inc | 11 ++++++----- recipes/swt/swt3.4-gtk_3.4.2.bb | 3 +-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'recipes') diff --git a/recipes/swt/swt-gtk.inc b/recipes/swt/swt-gtk.inc index 1c26a397c2..aa0f1ee70e 100644 --- a/recipes/swt/swt-gtk.inc +++ b/recipes/swt/swt-gtk.inc @@ -10,7 +10,6 @@ S = "${WORKDIR}/swt-source" # A number which is used by SWT to mark the shared libraries. It can be found # in the version.txt file inside the source directory. -SWTVERSION = ${@bb.fatal('SWTVERSION is not defined in this swt-gtk recipe!')} SWT_API_VERSION = ${@bb.fatal('SWT_API_VERSION is not defined in this swt-gtk recipe!')} do_unpackpost() { @@ -37,12 +36,14 @@ do_compile() { addtask unpackpost after do_unpack before do_patch do_install() { + local swtversion=`cat version.txt | tr -d "version. "` + oe_jarinstall swt-gtk-${PV}.jar swt-gtk.jar swt.jar - oe_libinstall -so libswt-atk-gtk-${SWTVERSION} ${D}/${libdir_jni} - oe_libinstall -so libswt-cairo-gtk-${SWTVERSION} ${D}/${libdir_jni} - oe_libinstall -so libswt-pi-gtk-${SWTVERSION} ${D}/${libdir_jni} - oe_libinstall -so libswt-gtk-${SWTVERSION} ${D}/${libdir_jni} + oe_libinstall -so libswt-atk-gtk-$swtversion ${D}/${libdir_jni} + oe_libinstall -so libswt-cairo-gtk-$swtversion ${D}/${libdir_jni} + oe_libinstall -so libswt-pi-gtk-$swtversion ${D}/${libdir_jni} + oe_libinstall -so libswt-gtk-$swtversion ${D}/${libdir_jni} } do_stage() { diff --git a/recipes/swt/swt3.4-gtk_3.4.2.bb b/recipes/swt/swt3.4-gtk_3.4.2.bb index 6c0a4d41d8..1f9b80f27c 100644 --- a/recipes/swt/swt3.4-gtk_3.4.2.bb +++ b/recipes/swt/swt3.4-gtk_3.4.2.bb @@ -1,12 +1,11 @@ require swt-gtk.inc -PR = "r1" +PR = "r2" SRC_URI = "http://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.4.2-200902111700/swt-3.4.2-gtk-linux-x86.zip \ file://Makefile" # A number which is used by SWT to mark the shared libraries. -SWTVERSION = "3452" SWT_API_VERSION = "3.4" PROVIDES = "swt3.4-gtk" -- cgit v1.2.3