anchor.diff:      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() {
  
positive.code:   install -d ${D}/${datadir_java}
  
    oe_runmake install \
      RXTX_PATH=${D}/${libdir_jni} \
      JHOME=${D}/${datadir_java}
  }
  
  do_stage() {
  
negative.code: SECTION = "libs"
  HOMEPAGE = "http://rxtx.org"
  
  PR = "r2"
  
  DEPENDS = "classpath classpath-tools-native"
  
  