[oe-commits] org.oe.dev rxtx: Fixes.

thebohemian commit openembedded-commits at lists.openembedded.org
Wed Feb 13 01:50:17 UTC 2008


rxtx: Fixes.
  - added custom compilation step
  - corrected build dependencies

Author: thebohemian at openembedded.org
Branch: org.openembedded.dev
Revision: 07f4b07b22997d9522bc550a97584b8903b7425f
ViewMTN: http://monotone.openembedded.org/revision/info/07f4b07b22997d9522bc550a97584b8903b7425f
Files:
1
packages/rxtx/rxtx_2.1-7r2.bb
Diffs:

#
# mt diff -r54ce4f5442ffb0d780cdf5c1a25ee924f54bc01b -r07f4b07b22997d9522bc550a97584b8903b7425f
#
# 
# 
# patch "packages/rxtx/rxtx_2.1-7r2.bb"
#  from [261fb1dbbffc4e2294a5a6838e4defa40431abd5]
#    to [feb6090d9eff9d3f7bfe883a3e6ac6a35893e0a5]
# 
============================================================
--- packages/rxtx/rxtx_2.1-7r2.bb	261fb1dbbffc4e2294a5a6838e4defa40431abd5
+++ packages/rxtx/rxtx_2.1-7r2.bb	feb6090d9eff9d3f7bfe883a3e6ac6a35893e0a5
@@ -1,8 +1,12 @@ HOMEPAGE = "http://rxtx.org"
 DESCRIPTION = "RXTX provides serial and parallel communication for Java applications"
 LICENSE = "LGPL"
 SECTION = "libs"
 HOMEPAGE = "http://rxtx.org"
 
+PR = "r1"
+
+DEPENDS = "classpath classpath-native virtual/javac-native"
+
 inherit autotools java-library
 
 SRC_URI = "\
@@ -10,6 +14,15 @@ SRC_URI = "\
     file://rxtx-fixes-from-debian.patch;patch=1 \
     "
 
+do_compile() {
+  # Whatever configure detected it is completely unusable. So we override heavily.
+  oe_runmake \
+    JAVAH="gjavah -classpath \$(CLASSPATH) -d \$(DEST) -jni" \
+    JAR=gjar \
+    JAVAC="javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3" \
+    JAVAINCLUDEDIR=${STAGING_INCDIR}/classpath
+}
+
 do_install() {
   install -d ${D}/${libdir_jni}
   install -d ${D}/${datadir_java}






More information about the Openembedded-commits mailing list