summaryrefslogtreecommitdiff
path: root/packages/libmatthew/libmatthew.inc
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2008-07-28 16:09:07 +0000
committerRobert Schuster <thebohemian@gmx.net>2008-07-28 16:09:07 +0000
commit6e12a46abf54dd10e635210137f91f7269b88c95 (patch)
tree3091a243a6996121946f4aeae2dd25559ae18afb /packages/libmatthew/libmatthew.inc
parentf5415a35f3dd4cff91277f0c0226b91fe8673867 (diff)
parentb047e503865c7bcbda9dd618d8ac62f6a5ea9204 (diff)
merge of '8003a3400630ec53f3ce15fc048a60a29d5e7bed'
and 'efd5f8a984f8580641b9e6e68ee6d933d93e6fc2'
Diffstat (limited to 'packages/libmatthew/libmatthew.inc')
-rw-r--r--packages/libmatthew/libmatthew.inc71
1 files changed, 71 insertions, 0 deletions
diff --git a/packages/libmatthew/libmatthew.inc b/packages/libmatthew/libmatthew.inc
new file mode 100644
index 0000000000..d7a483e25f
--- /dev/null
+++ b/packages/libmatthew/libmatthew.inc
@@ -0,0 +1,71 @@
+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"
+
+S = "${WORKDIR}/libmatthew-java-${PV}"
+
+inherit java-library
+
+# Some internal version numbers which change from time to time.
+# Allowing to override them makes this include file more
+# versatile.
+VER_CGI ?= "0.5"
+VER_DEBUG ?= "1.1"
+VER_HEXDUMP ?= "0.2"
+VER_IO ?= "0.1"
+VER_UNIX ?= "0.5"
+
+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-${VER_CGI}.jar cgi.jar
+ oe_jarinstall debug-disable-${VER_DEBUG}.jar debug-disable.jar
+ oe_jarinstall debug-enable-${VER_DEBUG}.jar debug-enable.jar
+ oe_jarinstall hexdump-${VER_HEXDUMP}.jar hexdump.jar
+ oe_jarinstall io-${VER_IO}.jar io.jar
+ oe_jarinstall unix-${VER_UNIX}.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-${VER_CGI}.jar cgi.jar
+ oe_jarinstall -s debug-disable-${VER_DEBUG}.jar debug-disable.jar
+ oe_jarinstall -s debug-enable-${VER_DEBUG}.jar debug-enable.jar
+ oe_jarinstall -s hexdump-${VER_HEXDUMP}.jar hexdump.jar
+ oe_jarinstall -s io-${VER_IO}.jar io.jar
+ oe_jarinstall -s unix-${VER_UNIX}.jar unix.jar
+}
+
+PACKAGES = "\
+ libcgi-java libcgi-jni libcgi-jni-dbg \
+ libunixsocket-java libunixsocket-jni libunixsocket-jni-dbg \
+ ${PN}-io-java ${PN}-debug-java \
+"
+
+FILES_libcgi-java = "${datadir_java}/cgi*.jar"
+FILES_libcgi-jni = "${libdir_jni}/libcgi-java.so"
+FILES_libcgi-jni-dbg = "${libdir_jni}/.debug/libcgi-java.so"
+RDEPENDS_libcgi-java = "libcgi-jni"
+
+FILES_libunixsocket-java = "${datadir_java}/unix*.jar"
+FILES_libunixsocket-jni = "${libdir_jni}/libunix-java.so"
+FILES_libunixsocket-jni-dbg = "${libdir_jni}/.debug/libunix-java.so"
+RDEPENDS_libunixsocket-java = "libunixsocket-jni"
+
+FILES_${PN}-io-java = "${datadir_java}/io*.jar"
+
+FILES_${PN}-debug-java = "${datadir_java}/debug-*.jar ${datadir_java}/hexdump*.jar"
+