File: jniInclude.patch

package info (click to toggle)
libusb-java 0.8%2Bztex20090101-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 416 kB
  • ctags: 810
  • sloc: java: 1,102; ansic: 605; makefile: 98; sh: 29
file content (16 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: libusb-java-0.8+ztex20090101/Makefile
===================================================================
--- libusb-java-0.8+ztex20090101.orig/Makefile	2011-02-02 13:13:45.000000000 +0100
+++ libusb-java-0.8+ztex20090101/Makefile	2012-09-16 20:45:06.000000000 +0200
@@ -13,7 +13,10 @@
 #########################
 
 # $(JAVAPREFIX)/include should contain jni.h
-JAVAPREFIX=/usr/local/java
+#JAVAPREFIX=$(shell find /usr/lib/jvm/ -name jni.h | sed -e 's/include.*//' | head -n 1)
+#JAVAPREFIX=/usr/lib/jvm/java-6-openjdk-$(shell dpkg-architecture -qDEB_BUILD_ARCH|tr -d "\n")
+# A bit desparate, things fail to work across platforms
+JAVAPREFIX=$(shell find /usr/lib/jvm/ -name jni.h | sed -e 's/include.*//' | head -n 1)
 
 ###############################
 # this should not be modified #