debian/0000755000000000000000000000000012244442407007171 5ustar debian/README.source0000644000000000000000000000050511632477612011356 0ustar libusb-java for Debian ---------------------- The source code for libusb-java was taken from the ztex source bundle on http://ztex.de/downloads The patch is removing a -static flag to the compilation. A lintian error W: libusb-java-lib: package-name-doesnt-match-sonames libusbJavaSh0.8 libusbJavaSt0.8 was overridden. debian/libusb-java.dirs0000644000000000000000000000002711631237206012250 0ustar usr/lib usr/share/java debian/source/0000755000000000000000000000000012244442406010470 5ustar debian/source/format0000644000000000000000000000001411630367646011710 0ustar 3.0 (quilt) debian/libusb-java-lib.lintian-overrides0000644000000000000000000000010711632477612015520 0ustar libusb-java-lib binary: package-name-doesnt-match-sonames libusbJavaSh debian/watch0000644000000000000000000000007411630367646010234 0ustar version=3 http://sf.net/libusbjava/libusbjava-(.*)\.tar\.gz debian/copyright0000644000000000000000000000201111630367646011127 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: libusb-java Source: libusbjava.sf.net Files: * Copyright: Copyright (c) 2005-2006 Andreas Schläpfer License: LGPL-2.1 Files: debian/* Copyright: 2011 Steffen Moeller License: LGPL-2.1 License: LGPL-2.1 This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation in version 2.1. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2.1". debian/README.Debian0000644000000000000000000000075111632477612011243 0ustar libusb-java for Debian ---------------------- Upstream work on this library seems to have stalled since 2008, but the experts of ztex.de, with a focus on FPGA boards, have adopted the maintenance as part of their ztex FPGA suite. A particular feature of the upstream source tree, i.e. the cross platform compatibility, has not yet made it into this package. This is all unfortunate and should somehow be fixed. -- Steffen Moeller Thu, 28 Jul 2011 01:14:47 +0200 debian/control0000644000000000000000000000276312235477731010614 0ustar Source: libusb-java Section: java Priority: extra Maintainer: Steffen Moeller Build-Depends: debhelper (>= 8.0.0), default-jdk (>= 1:1.6), libusb-dev Standards-Version: 3.9.4 Vcs-Browser: http://svn.debian.org/wsvn/pkg-escience/libusb-java/trunk Vcs-Svn: svn://svn.debian.org/pkg-escience/libusb-java/trunk Homepage: http://libusbjava.sf.net Package: libusb-java-lib Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: libusb-java (<= 0.8+ztex20090101-3) Description: C part of Java wrapper for libusb This package provides the architecture-dependent component of libusb-java. Package: libusb-java Architecture: all Depends: ${misc:Depends}, libusb-java-lib Description: Java wrapper for libusb This Java library wraps the C library libusb (0.1). It is designed to support user level applications to access USB devices regardless of the operating system. Package: libusb-java-doc Section: doc Architecture: all Depends: ${misc:Depends} Suggests: libusb-java Description: javadoc documentation for libusb-java The libusb source code provides its own documentation. It is transformed to HTML by the javadoc tool. Package: libusb-java-dbg Section: debug Architecture: any Depends: ${misc:Depends}, libusb-java-lib (= ${binary:Version}) Description: debug information for libusb java wrapper When developing, unforseen things may happen. This package provides symbol information to allow debuggers to match the position in a binary with the function in the source code. debian/libusb-java-lib.links0000644000000000000000000000014612025425204013170 0ustar /usr/lib/libusbJava.so.0.8 /usr/lib/libusbJava.so /usr/lib/libusbJava.so.0.8 /usr/lib/libusbJavaSh.so debian/compat0000644000000000000000000000000211630367646010400 0ustar 8 debian/libusb-java-lib.postinst0000644000000000000000000000154711632477612013756 0ustar #!/bin/sh # postinst script for libusb-java-lib # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) ldconfig ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000012244442407010620 5ustar debian/patches/series0000644000000000000000000000011212225037276012032 0ustar jniInclude.patch sharedLibraries.patch java-compat.patch schlaepfer.patch debian/patches/schlaepfer.patch0000644000000000000000000002227612225037025013761 0ustar Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Device.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Device.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Device.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/LibusbJava.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/LibusbJava.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/LibusbJava.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. @@ -394,4 +394,4 @@ ERROR_IO_ERROR = -usb_error_no(6); ERROR_NOT_ENOUGH_MEMORY = -usb_error_no(7); } -} \ No newline at end of file +} Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/USB.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/USB.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/USB.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/USBException.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/USBException.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/USBException.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/USBTimeoutException.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/USBTimeoutException.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/USBTimeoutException.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Bus.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Usb_Bus.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Bus.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. @@ -83,4 +83,4 @@ public String toString() { return "Usb_Bus " + dirname; } -} \ No newline at end of file +} Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Config_Descriptor.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Usb_Config_Descriptor.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Config_Descriptor.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. @@ -136,4 +136,4 @@ return "Usb_Config_Descriptor bNumInterfaces: 0x" + Integer.toHexString(bNumInterfaces); } -} \ No newline at end of file +} Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Descriptor.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Usb_Descriptor.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Descriptor.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Device.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Usb_Device.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Device.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. @@ -123,4 +123,4 @@ public String toString() { return "Usb_Device " + filename; } -} \ No newline at end of file +} Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Device_Descriptor.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Usb_Device_Descriptor.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Device_Descriptor.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. @@ -187,4 +187,4 @@ + Integer.toHexString(idProduct & 0xFFFF)); return sb.toString(); } -} \ No newline at end of file +} Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Endpoint_Descriptor.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Usb_Endpoint_Descriptor.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Endpoint_Descriptor.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Interface.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Usb_Interface.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Interface.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Interface_Descriptor.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Usb_Interface_Descriptor.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Usb_Interface_Descriptor.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/Utils.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/Utils.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/Utils.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. Index: libusb-java-0.8+ztex20090101/ch/ntb/usb/logger/LogUtil.java =================================================================== --- libusb-java-0.8+ztex20090101.orig/ch/ntb/usb/logger/LogUtil.java +++ libusb-java-0.8+ztex20090101/ch/ntb/usb/logger/LogUtil.java @@ -1,6 +1,6 @@ /* * Java libusb wrapper - * Copyright (c) 2005-2006 Andreas Schläpfer + * Copyright (c) 2005-2006 Andreas Schlaepfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. debian/patches/java-compat.patch0000644000000000000000000000116412225037221014036 0ustar Description: Ensure source/target is specified so that bytecode is backwards compatible/avoiding encoding errors. Author: James Page Forwarded: no Index: libusb-java-0.8+ztex20090101/Makefile =================================================================== --- libusb-java-0.8+ztex20090101.orig/Makefile 2012-08-07 13:31:24.000000000 +0100 +++ libusb-java-0.8+ztex20090101/Makefile 2012-08-07 13:37:22.199906759 +0100 @@ -22,7 +22,7 @@ GCC=gcc STRIP=strip CHMOD=chmod -x -JAVAC=javac +JAVAC=javac -source 1.5 -target 1.5 -encoding ISO-8859-1 RM=rm -f INSTALL=install INSTALLDIR=$(INSTALL) -d debian/patches/sharedLibraries.patch0000644000000000000000000000575012225037645014756 0ustar Index: libusb-java-0.8+ztex20090101/Makefile =================================================================== --- libusb-java-0.8+ztex20090101.orig/Makefile +++ libusb-java-0.8+ztex20090101/Makefile @@ -25,7 +25,7 @@ JAVAC=javac RM=rm -f INSTALL=install -INSTALLDIR=$(INSTALL) -d +INSTALLDIR=$(INSTALL) -d INSTALLEXE=$(INSTALL) -m 0755 INSTALLFILE=$(INSTALL) -m 0644 OBJEXTRADEPS=LibusbJava.h @@ -45,24 +45,43 @@ classes: classes.made -libs: $(LIBTARGET_SH) $(LIBTARGET_ST) $(LIBTARGET_64) +#libs: $(LIBTARGET_SH) $(LIBTARGET_ST) $(LIBTARGET_64) +libs: $(LIBTARGET_SH) %.o: %.c LibusbJava.h $(GCC) -fPIC -g -c -std=c99 -Wall -Wno-pointer-to-int-cast $(LIBINCS) $< -o$@ $(LIBTARGET_ST): $(LIBSRCS) -# $(GCC) -shared -Wl,-static,-soname,$(LIBTARGET_ST) $(LIBINCS) -static $(LIBSRCS) -o $(LIBTARGET_ST) $(LIBLIBS) - $(GCC) -shared -Wl,-soname,$(LIBTARGET_ST),-static $(LIBINCS) $(LIBSRCS) -static -o $(LIBTARGET_ST) $(LIBLIBS) + +VERSIONSUFFIX= + +$(LIBTARGET_ST):$(LIBTARGET_ST)$(VERSIONSUFFIX) +$(LIBTARGET_SH):$(LIBTARGET_SH)$(VERSIONSUFFIX) +$(LIBTARGET):$(LIBTARGET)$(VERSIONSUFFIX) +$(LIBTARGET_64):$(LIBTARGET_64)$(VERSIONSUFFIX) + + +$(LIBTARGET_ST)$(VERSIONSUFFIX): $(LIBSRCS) + $(GCC) -shared -Wl,-soname,$(LIBTARGET_ST),-static $(LIBINCS) $(LIBSRCS) -static -o $(LIBTARGET_ST)$(VERSIONSUFFIX) $(LIBLIBS) + [ -r $(LIBTARGET_ST) ] || ln -s $(LIBTARGET_ST)$(VERSIONSUFFIX) $(LIBTARGET_ST) $(STRIP) $(LIBTARGET_ST) $(CHMOD) $(LIBTARGET_ST) -$(LIBTARGET_SH): $(LIBSRCS) - $(GCC) -fPIC -shared -Wl,-soname,$(LIBTARGET_SH) $(LIBINCS) $(LIBSRCS) -o $(LIBTARGET_SH) $(LIBLIBS) +$(LIBTARGET_SH)$(VERSIONSUFFIX): $(LIBSRCS) + $(GCC) -fPIC -shared -Wl,-soname,$(LIBTARGET_SH) $(LIBINCS) $(LIBSRCS) -o $(LIBTARGET_SH)$(VERSIONSUFFIX) $(LIBLIBS) + [ -r $(LIBTARGET_SH) ] || ln -s $(LIBTARGET_SH)$(VERSIONSUFFIX) $(LIBTARGET_SH) $(STRIP) $(LIBTARGET_SH) $(CHMOD) $(LIBTARGET_SH) -$(LIBTARGET_64): $(LIBSRCS64) - $(GCC) -fPIC -m64 -shared -std=c99 -Wall -Wno-pointer-to-int-cast -Wl,-soname,$(LIBTARGET_64) $(LIBINCS) $(LIBSRCS64) $(LIBLIBS) -o $(LIBTARGET_64) +$(LIBTARGET)$(VERSIONSUFFIX): $(LIBSRCS) + $(GCC) -fPIC -shared -Wl,-soname,$(LIBTARGET) $(LIBINCS) $(LIBSRCS) -o $(LIBTARGET)$(VERSIONSUFFIX) $(LIBLIBS) + [ -r $(LIBTARGET) ] || ln -s $(LIBTARGET)$(VERSIONSUFFIX) $(LIBTARGET) + $(STRIP) $(LIBTARGET) + $(CHMOD) $(LIBTARGET) + +$(LIBTARGET_64)$(VERSIONSUFFIX): $(LIBSRCS64) + $(GCC) -fPIC -m64 -shared -std=c99 -Wall -Wno-pointer-to-int-cast -Wl,-soname,$(LIBTARGET_64) $(LIBINCS) $(LIBSRCS64) $(LIBLIBS) -o $(LIBTARGET_64)$(VERSIONSUFFIX) + [ -r $(LIBTARGET_64) ] || ln -s $(LIBTARGET_64)$(VERSIONSUFFIX) $(LIBTARGET_64) $(STRIP) $(LIBTARGET_64) $(CHMOD) $(LIBTARGET_64) @@ -81,7 +100,5 @@ $(INSTALLFILE) ch/ntb/usb/*.class ../libusbJava/ch/ntb/usb $(INSTALLFILE) ch/ntb/usb/logger/*.class ../libusbJava/ch/ntb/usb/logger -clean: - -distclean: +clean distclean: $(RM) *.o $(LIBTARGET_SH) $(LIBTARGET_ST) $(LIBTARGET_64) libusbJava*.dll ch/ntb/usb/*.class ch/ntb/usb/logger/*.class classes.made debian/patches/jniInclude.patch0000644000000000000000000000143412240430306013716 0ustar 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 # debian/changelog0000644000000000000000000000507512244442372011053 0ustar libusb-java (0.8+ztex20090101-7) unstable; urgency=low * Reverting previous change for locating jni.h, let us hope it all now just builds for everyone (Closes: #728293), many thanks to James Page again. -- Steffen Moeller Tue, 12 Nov 2013 14:48:49 +0100 libusb-java (0.8+ztex20090101-6) unstable; urgency=low * The NMU addressed James' report already (Closes: #711843). * Bumping policy compliance to 3.9.4. * Transcribed umlaut in source tree (patch) to help encoding issue, despite it technically already been addressed by Gregor. -- Steffen Moeller Tue, 08 Oct 2013 18:58:50 +0200 libusb-java (0.8+ztex20090101-5.1) unstable; urgency=low * Non-maintainer upload. * Fix "Transition package to use default java implementation + java 7 compatibility": apply patch from Ubuntu / James Page (after adjusting it to apply against -5): Transition package to use default java implementation: - d/control: BD on default-jdk (>= 1:1.6). - d/rules: Specify source = 1.5 during javadoc generation. - d/patches/java-compat.patch: Specify source/target = 1.5 to ensure that bytecode is backwards compatible and avoid Java 7 errors. Additionally add -encoding to d/rules and d/patches/java-compat.patch (Closes: #684154) -- gregor herrmann Wed, 22 May 2013 18:41:11 +0200 libusb-java (0.8+ztex20090101-5) unstable; urgency=low * Fix of FTBFS stimulated by patch from Konstantinos Margaritis (Closes: #641152) * Solved mysterious issue with sharedLibrary patch * Policy compliance declared against 3.9.3 - Added reference to Vcs in debian/control -- Steffen Moeller Fri, 14 Sep 2012 22:55:53 +0200 libusb-java (0.8+ztex20090101-4) unstable; urgency=low * Added javadoc * Removed .java files from .jar * Separated architecture-dependent files * Eliminated lintian warning on jre dependency. * Removed special notion of 64bit with Debian -- Steffen Moeller Fri, 09 Sep 2011 13:49:37 +0200 libusb-java (0.8+ztex20090101-3) unstable; urgency=low * Added creation of jar file -- Steffen Moeller Mon, 05 Sep 2011 23:20:13 +0200 libusb-java (0.8+ztex20090101-2) unstable; urgency=low * Addressing those embarrasing build failures (Closes: #637762). -- Steffen Moeller Fri, 05 Aug 2011 17:35:50 +0200 libusb-java (0.8+ztex20090101-1) unstable; urgency=low * Initial release (Closes: #635661) -- Steffen Moeller Thu, 28 Jul 2011 01:14:47 +0200 debian/docs0000644000000000000000000000000711630367646010052 0ustar Readme debian/libusb-java-doc.docs0000644000000000000000000000001111632477612013003 0ustar doc/html debian/rules0000755000000000000000000000255412225034444010254 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 P=$(shell dirname `find /usr/lib/jvm/ -name jni.h | head -n 1` ) export CFLAGS=-I$(P) %: dh $@ test: echo "P=$(P)" DOCPATH=doc/html override_dh_auto_build-arch: $(MAKE) STRIP="# not stripping: " libs touch build-arch-stamp override_dh_auto_build-indep: $(MAKE) STRIP="# not stripping: " classes jar cf libusb.jar `find ch -name "*.class"` [ -d $(DOCPATH) ] || mkdir -p $(DOCPATH) javadoc -source 1.5 -encoding ISO-8859-1 -classpath . -d $(DOCPATH) ch.ntb.usb touch build-indep-stamp LIBPACKAGE=libusb-java-lib # /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libusb.a(usb.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC override_dh_auto_install-arch: dh_install [ -d $(CURDIR)/debian/$(LIBPACKAGE)/usr/lib/ ] || mkdir -p $(CURDIR)/debian/$(LIBPACKAGE)/usr/lib/ cp libusbJavaSh.so $(CURDIR)/debian/$(LIBPACKAGE)/usr/lib/libusbJava.so.0.8 override_dh_auto_install-indep: cp libusb.jar $(CURDIR)/debian/libusb-java/usr/share/java/ override_dh_strip: dh_strip --dbg-package=libusb-java-dbg override_dh_clean: dh_clean [ ! -r Makefile ] || make clean rm -f lib*.so.* libusb.jar rm -rf doc rm -f build-indep-stamp rm -f build-arch-stamp build-indep-stamp .PHONY: build-arch-stamp build-indep-stamp