diff options
author | Henning Heinold <h.heinold@tarent.de> | 2011-03-25 20:39:19 +0100 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-03-27 23:05:16 +0200 |
commit | ff1f04ded44eccba57573ae40bc65b37bbf27cc4 (patch) | |
tree | 6a3a68fac22334697110cd40b0348640b2bd5600 /recipes/classpathx | |
parent | bcd8c69a68dbce31a1a66576f6c1bc4b7aac4760 (diff) | |
download | openembedded-ff1f04ded44eccba57573ae40bc65b37bbf27cc4.tar.gz |
inetlib: move to proper place
Diffstat (limited to 'recipes/classpathx')
-rw-r--r-- | recipes/classpathx/inetlib-1.1.1/datadir_java.patch | 23 | ||||
-rw-r--r-- | recipes/classpathx/inetlib_1.1.1.bb | 38 |
2 files changed, 61 insertions, 0 deletions
diff --git a/recipes/classpathx/inetlib-1.1.1/datadir_java.patch b/recipes/classpathx/inetlib-1.1.1/datadir_java.patch new file mode 100644 index 0000000000..16302cdafe --- /dev/null +++ b/recipes/classpathx/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/classpathx/inetlib_1.1.1.bb b/recipes/classpathx/inetlib_1.1.1.bb new file mode 100644 index 0000000000..9377d6dccf --- /dev/null +++ b/recipes/classpathx/inetlib_1.1.1.bb @@ -0,0 +1,38 @@ +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 \ + " + +inherit java-library autotools + +DEPENDS = "fastjar-native" + +PR = "r1" + +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 +} + +SRC_URI[md5sum] = "aaa24be4bc8d172ac675be8bdfa636ee" +SRC_URI[sha256sum] = "1b078a39e022f86e4e2c8189b4d2789a5da414e8f1cb285587b7800b950a44de" + +NATIVE_INSTALL_WORKS = "1" +BBCLASSEXTEND = "native" |