summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/classpath/inetlib-1.1.1/datadir_java.patch23
-rw-r--r--recipes/classpath/inetlib-native_1.1.1.bb3
-rw-r--r--recipes/classpath/inetlib_1.1.1.bb30
3 files changed, 56 insertions, 0 deletions
diff --git a/recipes/classpath/inetlib-1.1.1/datadir_java.patch b/recipes/classpath/inetlib-1.1.1/datadir_java.patch
new file mode 100644
index 0000000000..16302cdafe
--- /dev/null
+++ b/recipes/classpath/inetlib-1.1.1/datadir_java.patch
@@ -0,0 +1,23 @@
+Index: inetlib-1.1.1/Makefile.am
+===================================================================
+--- inetlib-1.1.1.orig/Makefile.am 2008-03-01 10:49:49.000000000 +0100
++++ inetlib-1.1.1/Makefile.am 2008-03-01 10:52:21.000000000 +0100
+@@ -7,6 +7,8 @@
+ JAVADOC = @JAVADOC@
+ JAVADOCFLAGS = @JAVADOCFLAGS@
+
++JARDIR = $(datadir)/java
++
+ src = @srcdir@/source
+ dst = classes
+ doc = @srcdir@/docs
+@@ -280,7 +282,7 @@
+ find $(dst) -name '*.class' -exec rm -f '{}' ';'
+
+ install-data-local:
+- $(mkinstalldirs) $(prefix)/share/java
+- $(INSTALL_DATA) $(inetlib_jar) $(prefix)/share/java
++ $(mkinstalldirs) $(DESTDIR)/$(JARDIR)
++ $(INSTALL_DATA) $(inetlib_jar) $(DESTDIR)/$(JARDIR)
+
+ # End of Makefile.am
diff --git a/recipes/classpath/inetlib-native_1.1.1.bb b/recipes/classpath/inetlib-native_1.1.1.bb
new file mode 100644
index 0000000000..53ee782c81
--- /dev/null
+++ b/recipes/classpath/inetlib-native_1.1.1.bb
@@ -0,0 +1,3 @@
+require inetlib_${PV}.bb
+
+inherit native
diff --git a/recipes/classpath/inetlib_1.1.1.bb b/recipes/classpath/inetlib_1.1.1.bb
new file mode 100644
index 0000000000..1fba4b4e7c
--- /dev/null
+++ b/recipes/classpath/inetlib_1.1.1.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "A Java library of clients for common internet protocols"
+LICENSE = "GPL + library exception"
+AUTHOR = "GNU Classpath"
+HOMEPAGE = "http://gnu.org/software/classpath/inetlib.html"
+
+SRC_URI = "\
+ http://ftp.gnu.org/gnu/classpath/${BP}.tar.gz \
+ file://datadir_java.patch;patch=1 \
+ "
+
+inherit java-library autotools
+
+DEPENDS = "fastjar-native"
+
+JPN = "libgnuinet-java"
+
+export JAVAC = "javac"
+
+export JAVA = "java"
+
+# We fake this, it is not neccessary anyway.
+export JAVADOC = "true"
+
+do_compile() {
+ oe_runmake JARDIR=${datadir_java} inetlib_jar=${JARFILENAME}
+}
+
+do_install_append() {
+ java_install
+}