rxtx 2.1-7r2: Fix libtool incompatibility.
authorRobert Schuster <thebohemian@gmx.net>
Fri, 10 Oct 2008 14:06:33 +0000 (14:06 +0000)
committerRobert Schuster <thebohemian@gmx.net>
Fri, 10 Oct 2008 14:06:33 +0000 (14:06 +0000)
packages/rxtx/rxtx_2.1-7r2.bb

index 9b4f9fa..360d5ac 100644 (file)
@@ -3,7 +3,7 @@ LICENSE = "LGPL"
 SECTION = "libs"
 HOMEPAGE = "http://rxtx.org"
 
-PR = "r1"
+PR = "r2"
 
 DEPENDS = "classpath classpath-tools-native"
 
@@ -14,13 +14,18 @@ SRC_URI = "\
     file://rxtx-fixes-from-debian.patch;patch=1 \
     "
 
+do_removebinaries_append() {
+       rm acinclude.m4
+}
+
 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
+    JAVAINCLUDEDIR=${STAGING_INCDIR}/classpath \
+               GLIBTOOL="${TARGET_SYS}-libtool"
 }
 
 do_install() {
@@ -28,8 +33,9 @@ do_install() {
   install -d ${D}/${datadir_java}
 
   oe_runmake install \
-    RXTX_PATH=${D}/${libdir_jni} \
-    JHOME=${D}/${datadir_java}
+    RXTX_PATH="${D}/${libdir_jni}" \
+    JHOME="${D}/${datadir_java}" \
+               GLIBTOOL="${TARGET_SYS}-libtool"
 }
 
 do_stage() {