summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--org.handhelds.familiar/packages/swt/no-native-no-files-cruft.patch65
-rw-r--r--org.handhelds.familiar/packages/swt/swt-gtk_3.1.bb37
2 files changed, 102 insertions, 0 deletions
diff --git a/org.handhelds.familiar/packages/swt/no-native-no-files-cruft.patch b/org.handhelds.familiar/packages/swt/no-native-no-files-cruft.patch
new file mode 100644
index 0000000..57a5f38
--- /dev/null
+++ b/org.handhelds.familiar/packages/swt/no-native-no-files-cruft.patch
@@ -0,0 +1,65 @@
+--- swt-gtk-3.1.orig.orig/Makefile 2005-10-02 19:17:47.000000000 +0200
++++ swt-gtk-3.1.orig/Makefile 2005-10-02 19:27:30.000000000 +0200
+@@ -1,4 +1,4 @@
+-TARGETS=swt.jar libswt.so libswt-pi.so libswt-mozilla.so
++TARGETS=swt.jar
+ CLEANFILES=java-stamp *.jar *.o *.so.* `find org -name *.class`
+
+ RELEASE=3.1
+@@ -7,22 +7,12 @@
+ AGE=1
+ SOVERSION=$(CURRENT).$(REVISION).$(AGE)
+
+-GCJ=gcj
+-GCJLD=gcj
+ JAR=fastjar
+ JAVAC=jikes-classpath -nowarn
+-LDCONFIG=/sbin/ldconfig
+ LN_S=ln -s
+ RM=rm -f
+
+-GCJFLAGS=-fPIC -fjni
+-GCJLDFLAGS=-shared
+-
+-COMPILE=$(GCJ) $(GCJFLAGS)
+-LINK=$(GCJLD) $(GCJLDFLAGS) -o $@
+-
+ all: $(TARGETS)
+- $(LDCONFIG) -n .
+
+ clean distclean:
+ $(RM) $(CLEANFILES) $(TARGETS)
+@@ -31,33 +21,11 @@
+
+ java-stamp:
+ for i in `find org -name *.java`; do \
+- echo " GCJ $$i"; \
+- $(COMPILE) -c $$i; \
+ echo " JAVAC $$i"; \
+ $(JAVAC) $$i; \
+ done
+ touch $@
+
+-swt.files:
+- find org -type f \
+- -not -path org/eclipse/swt/internal\* \
+- -not -path org/eclipse/swt/browser\* | sort > $@
+-
+-swt-mozilla.files:
+- find org/eclipse/swt/browser org/eclipse/swt/internal/mozilla \
+- -type f | sort > $@
+-
+-swt-pi.files:
+- find org/eclipse/swt/internal -type f \
+- -not -path org/eclipse/swt/internal/mozilla\* | sort > $@
+-
+-lib%.so.$(SOVERSION): %.files java-stamp
+- $(LINK) -Wl,-soname=lib$*.so.$(CURRENT) \
+- `sed -nre '/\.java$$/{s~.*/(.*)\.java$$~\1.o~;p}' $<`
+-
+-%.so: %.so.$(SOVERSION)
+- $(LN_S) -f $< $@
+-
+ %-gtk-$(RELEASE).jar: java-stamp
+ $(JAR) cf $@ `find . -name *.class`
+
diff --git a/org.handhelds.familiar/packages/swt/swt-gtk_3.1.bb b/org.handhelds.familiar/packages/swt/swt-gtk_3.1.bb
new file mode 100644
index 0000000..35a114d
--- /dev/null
+++ b/org.handhelds.familiar/packages/swt/swt-gtk_3.1.bb
@@ -0,0 +1,37 @@
+# swt-gtk OE build file
+# Copyright (C) 2006, Rene Wagner. All Rights Reserved
+# Released under the MIT license (see org.handhelds.familiar/COPYING.MIT)
+
+DESCRIPTION = "The Standard Widget Toolkit"
+HOMEPAGE = "http://www.eclipse.org/swt/"
+LICENSE = "CPL/MPL/LGPL"
+PRIORITY = "optional"
+MAINTAINER = "Rene Wagner <rw@handhelds.org>"
+SECTION = "libs"
+
+DEPENDS = "glib-2.0 gtk+ libart-lgpl pango xtst"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/s/swt-gtk/swt-gtk_3.1.orig.tar.gz \
+ ${DEBIAN_MIRROR}/main/s/swt-gtk/swt-gtk_3.1-2.diff.gz;patch=1 \
+ file://no-native-no-files-cruft.patch;patch=1"
+
+inherit autotools java
+
+S = "${WORKDIR}/swt-gtk-${PV}.orig"
+
+FILES_${PN} += "${datadir}/java ${libdir}/*.so"
+
+do_compile () {
+ oe_runmake
+ oe_runmake -f make_linux.mak make_swt make_atk
+}
+
+do_install () {
+ install -d ${D}${datadir}/java
+ install -m 0644 swt-gtk-*.jar ${D}${datadir}/java/
+ (cd ${D}${datadir}/java/ && ln -sf swt-gtk-*.jar swt.jar)
+
+ for i in *.so; do
+ install -D -m 0755 $i ${D}${libdir}/$i
+ done
+}