diff options
author | John Lee <john_lee@openmoko.org> | 2008-05-29 13:22:56 +0000 |
---|---|---|
committer | John Lee <john_lee@openmoko.org> | 2008-05-29 13:22:56 +0000 |
commit | 9f46910df0c94b8f88f00d3893d809de33192261 (patch) | |
tree | e8d396c1b3330d71da4f21594223573a9a3673b1 /packages | |
parent | 2433655bf3333faf292c9ee7d3f1c5cbe91b7919 (diff) |
libmatthew: add 0.7
Diffstat (limited to 'packages')
-rw-r--r-- | packages/libmatthew/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/libmatthew/files/Makefile-0.7.patch | 15 | ||||
-rw-r--r-- | packages/libmatthew/libmatthew_0.7.bb | 50 |
3 files changed, 65 insertions, 0 deletions
diff --git a/packages/libmatthew/files/.mtn2git_empty b/packages/libmatthew/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/libmatthew/files/.mtn2git_empty diff --git a/packages/libmatthew/files/Makefile-0.7.patch b/packages/libmatthew/files/Makefile-0.7.patch new file mode 100644 index 0000000000..4a91cd52cf --- /dev/null +++ b/packages/libmatthew/files/Makefile-0.7.patch @@ -0,0 +1,15 @@ +Index: libmatthew-java-0.7/Makefile +=================================================================== +--- libmatthew-java-0.7.orig/Makefile 2008-05-27 13:17:47.000000000 +0800 ++++ libmatthew-java-0.7/Makefile 2008-05-27 13:18:04.000000000 +0800 +@@ -8,8 +8,8 @@ + PPFLAGS+=-C -P + CFLAGS+=-fpic -Wall -Os -pedantic -std=c99 -Werror + GCJFLAGS+=-fjni +-JCFLAGS+=-source 5.0 +-INCLUDES+=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux ++#JCFLAGS+=-source 5.0 ++#INCLUDES+=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux + JAVADOCFLAGS?=-quiet -author -link http://java.sun.com/j2se/1.4.2/docs/api/ + + LDVER?=$(shell ld -v | cut -d' ' -f1) diff --git a/packages/libmatthew/libmatthew_0.7.bb b/packages/libmatthew/libmatthew_0.7.bb new file mode 100644 index 0000000000..68be750f8e --- /dev/null +++ b/packages/libmatthew/libmatthew_0.7.bb @@ -0,0 +1,50 @@ +DESCRIPTION = "Unix socket, debug and hexdump libraries" +AUTHOR = "Matthew Johnson <web@matthew.ath.cx>" +HOMEPAGE = "http://www.matthew.ath.cx/projects/java" +SECTION = "libs" +LICENSE = "LGPL" +DEPENDS = "classpath-native classpath fastjar-native virtual/javac-native" +RDEPENDS_${JPN} = "${PN}-jni" +PR = "r0" + +SRC_URI = "http://www.matthew.ath.cx/projects/java/libmatthew-java-${PV}.tar.gz \ + file://Makefile-0.7.patch;patch=1" + +S = "${WORKDIR}/libmatthew-java-${PV}" + +inherit java-library + +do_compile() { + oe_runmake \ + JCFLAGS="-source 1.5" \ + JAVAC="javac" \ + JAR="fastjar" \ + JAVAH="gjavah" \ + INCLUDES="-I${STAGING_INCDIR}/classpath" \ + LDFLAGS="-fpic -shared -lc ${LDFLAGS}" \ + LD="${CC}" \ + CFLAGS="-fpic -Wall -Os -pedantic -std=c99 -Werror" +} +do_install() { + oe_jarinstall cgi-0.5.jar cgi.jar + oe_jarinstall debug-disable-1.1.jar debug-disable.jar + oe_jarinstall debug-enable-1.1.jar debug-enable.jar + oe_jarinstall hexdump-0.2.jar hexdump.jar + oe_jarinstall io-0.1.jar io.jar + oe_jarinstall unix-0.4.jar unix.jar + oe_libinstall -so libcgi-java ${D}${libdir_jni} + oe_libinstall -so libunix-java ${D}${libdir_jni} +} +do_stage() { + oe_jarinstall -s cgi-0.5.jar cgi.jar + oe_jarinstall -s debug-disable-1.1.jar debug-disable.jar + oe_jarinstall -s debug-enable-1.1.jar debug-enable.jar + oe_jarinstall -s hexdump-0.2.jar hexdump.jar + oe_jarinstall -s io-0.1.jar io.jar + oe_jarinstall -s unix-0.4.jar unix.jar +} + +PACKAGES += "${PN}-jni ${PN}-jni-dbg" + +FILES_${PN}-jni = "${libdir_jni}/lib*.so" +FILES_${PN}-jni-dbg = "${libdir_jni}/.debug/lib*.so" |