--- libwiimote-0.4.orig/debian/libcwiimote-dev.install +++ libwiimote-0.4/debian/libcwiimote-dev.install @@ -0,0 +1,3 @@ +debian/tmp/usr/include/libcwiimote-0.4.0/libcwiimote/* usr/include/libcwiimote +debian/tmp/usr/lib/libcwiimote.so +debian/tmp/usr/lib/libcwiimote.a --- libwiimote-0.4.orig/debian/rules +++ libwiimote-0.4/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/class/autotools.mk + +DEB_MAKE_INSTALL_TARGET = install prefix=$(CURDIR)/debian/tmp/usr +CFLAGS:=$(CFLAGS) -fPIC -D_ENABLE_TILT -D_ENABLE_FORCE + +makebuilddir:: patch + autoconf -f + +install/libcwiimote-0.4:: + mv $(CURDIR)/debian/tmp/usr/lib/libcwiimote.so.0.4.0 \ + $(CURDIR)/debian/tmp/usr/lib/libcwiimote-0.4.so + +clean:: + rm -f config.mk configure Makefile src/Makefile test/Makefile --- libwiimote-0.4.orig/debian/changelog +++ libwiimote-0.4/debian/changelog @@ -0,0 +1,73 @@ +libwiimote (0.4-0ubuntu2) karmic; urgency=low + + * debian/rules, debian/*install, debian/patches/02_install_target.patch: + - Rename libcwiimote.so.0.4.0 to libcwiimote-0.4.so. + + -- Siegfried-Angel Gevatter Pujals Wed, 26 Aug 2009 22:12:13 +0200 + +libwiimote (0.4-0ubuntu1) karmic; urgency=low + + * New upstream release (LP: #382863). + * debian/control: + - Set Maintainer field to Ubuntu Developers given that the original + packager seems to have abandoned this package. + - Upgrade Standards-Version to 3.8.3: + + Move Homepage field to Source stanza. + + Change ${Source-Version} to ${binary:Version}. + + Add ${Misc:Depends}. + - Rename libcwiimote-0.2 to libcwiimote-0.4. + - Remove "a " from the short description. + - Ensure all lines are shorter than 80 characters. + * debian/copyright: + - Add missing copyright holders; slight reformatting. + * debian/*.install: + - Rename -0.2 to -0.4 and update them for 0.4. + - Install header files into /usr/include/libcwiimote/. + * debian/patches/0{1,3}_soname.patch: + - Update it and rename it. + * debian/patches/01_hci_remote_name.patch: + - Add fix so that it compiles with our Bluez. Thanks to Neil Mayhew. + Remove 01_fix_build.patch which did the same job before. + * debian/rules, debian/patches/03_override_config.patch: + - Remove the patch and add a CFLAGS override to debian/rules. We include + -D_ENABLE_TILT in there, even though it's already in config.mk.in, + because else for some reason the files in test/ don't get it. + * debian/patches/02_install_target.patch: + - Update it against the new Makefile.in. + * debian/rules: + - Call autoconf to generate the build files from the .in versions (after + applying the patches). Remove the generated files in clean::. + + -- Siegfried-Angel Gevatter Pujals Wed, 26 Aug 2009 14:12:55 +0200 + +libwiimote (0.2-0ubuntu4) intrepid; urgency=low + + * debian/control + - Change build dependency libbluetooth2-dev to libbluetooth-dev. + - Change runtime dependency of libcwiimote-dev from libbluetooth2-dev to + libbluetooth-dev. + * debian/patches/01_fix_build.patch + - Patch to change function name to the corresponding name in bluez 4.x. + (LP: #276343) + + -- Onkar Shinde Wed, 01 Oct 2008 01:55:50 +0530 + +libwiimote (0.2-0ubuntu3) hardy; urgency=low + + * debian/patches/03_override_config.patch: + + add -fPIC to CFLAGS to fix FTBFS on AMD64. + + -- Michael Bienia Tue, 01 Jan 2008 19:04:22 +0100 + +libwiimote (0.2-0ubuntu2) feisty; urgency=low + + * Fix debian/copyright. + * Link against libm and libbluetooth. + + -- Lukas Fittl Sat, 24 Feb 2007 18:17:12 +0100 + +libwiimote (0.2-0ubuntu1) feisty; urgency=low + + * Initial release. + + -- Lukas Fittl Wed, 7 Feb 2007 19:48:58 +0100 --- libwiimote-0.4.orig/debian/compat +++ libwiimote-0.4/debian/compat @@ -0,0 +1 @@ +5 --- libwiimote-0.4.orig/debian/control +++ libwiimote-0.4/debian/control @@ -0,0 +1,33 @@ +Source: libwiimote +Section: libs +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Lukas Fittl +Build-Depends: debhelper (>= 5.0.0), cdbs, libbluetooth-dev +Standards-Version: 3.8.3 +Homepage: http://libwiimote.sourceforge.net/ + +Package: libcwiimote-0.4 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: simple nintendo wii remote framework + Libwiimote is a C-library that provides a simple API for communicating + with the Nintendo Wii Remote (aka. wiimote) on a Linux system. + . + The goal of this library is to be a complete and easy to use framework + for interfacing applications with the wiimote. + +Package: libcwiimote-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, libcwiimote-0.4 (= ${binary:Version}), + libbluetooth-dev, libc6-dev | libc-dev +Description: simple nintendo wii remote framework (development files) + Libwiimote is a C-library that provides a simple API for communicating + with the Nintendo Wii Remote (aka. wiimote) on a Linux system. + . + The goal of this library is to be a complete and easy to use framework + for interfacing applications with the wiimote. + . + This package contains the header files and static libraries needed + to build programs that use libwiimote. --- libwiimote-0.4.orig/debian/libcwiimote-0.4.install +++ libwiimote-0.4/debian/libcwiimote-0.4.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/libcwiimote-0.4.so --- libwiimote-0.4.orig/debian/copyright +++ libwiimote-0.4/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Lukas Fittl on +Wed, 7 Feb 2007 19:48:58 +0100 + +It was downloaded from http://libwiimote.sourceforge.net/ + +Copyright: + + Copyright © 2007 Joel Andersson + + For src/wiimote_link.c, additionally: + Copyright © 2007 Krishna Gadepalli + + For src/wiimote_mii.*, additionally, and test/text4.c (exclusively): + Copyright © 2007 Chad Phillips + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software Foundation, + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- libwiimote-0.4.orig/debian/patches/01_hci_remote_name.patch +++ libwiimote-0.4/debian/patches/01_hci_remote_name.patch @@ -0,0 +1,24 @@ +diff -Nur -x '*.orig' -x '*~' libwiimote-0.4/configure.in libwiimote-0.4.new/configure.in +--- libwiimote-0.4/configure.in 2007-03-10 15:46:36.000000000 +0100 ++++ libwiimote-0.4.new/configure.in 2009-08-26 14:43:39.474932188 +0200 +@@ -10,7 +10,7 @@ + AC_PROG_INSTALL + + # Checks for BlueZ. +-AC_CHECK_LIB([bluetooth], [hci_remote_name], ++AC_CHECK_LIB([bluetooth], [hci_read_remote_name], + [], [AC_MSG_ERROR([We require BlueZ])]) + + AC_CONFIG_FILES([config.mk +diff -Nur -x '*.orig' -x '*~' libwiimote-0.4/src/wiimote_link.c libwiimote-0.4.new/src/wiimote_link.c +--- libwiimote-0.4/src/wiimote_link.c 2007-02-08 00:51:07.000000000 +0100 ++++ libwiimote-0.4.new/src/wiimote_link.c 2009-08-26 14:43:32.846971167 +0200 +@@ -95,7 +95,7 @@ + return 0; + } + +- if (hci_remote_name(hci_sock, &dev->bdaddr, WIIMOTE_CMP_LEN, dev_name, 5000)) { ++ if (hci_read_remote_name(hci_sock, &dev->bdaddr, WIIMOTE_CMP_LEN, dev_name, 5000)) { + wiimote_error("is_wiimote(): Error reading device name: %m"); + return 0; + } --- libwiimote-0.4.orig/debian/patches/03_soname.patch +++ libwiimote-0.4/debian/patches/03_soname.patch @@ -0,0 +1,15 @@ +diff -Nur -x '*.orig' -x '*~' libwiimote-0.4/src/Makefile.in libwiimote-0.4.new/src/Makefile.in +--- libwiimote-0.4/src/Makefile.in 2009-08-26 16:46:13.000000000 +0200 ++++ libwiimote-0.4.new/src/Makefile.in 2009-08-26 16:46:39.499863645 +0200 +@@ -32,8 +32,10 @@ + + all: libcwiimote.a libcwiimote.so + ++SONAME = libcwiimote-0.4.so ++ + libcwiimote.so: $(SOURCES) $(HEADERS) +- $(CC) $(CFLAGS) $(INCLUDES) $(SOURCES) -shared -o $@ $(LIBS) ++ $(CC) $(CFLAGS) $(INCLUDES) $(SOURCES) -shared -Wl,--soname=$(SONAME) -o $@ $(LIBS) + @cp $@ $(LIBDIR) + + libcwiimote.a: $(SOURCES) $(HEADERS) --- libwiimote-0.4.orig/debian/patches/02_install_target.patch +++ libwiimote-0.4/debian/patches/02_install_target.patch @@ -0,0 +1,10 @@ +--- libwiimote-0.4/Makefile.in 2007-02-22 15:54:54.000000000 +0100 ++++ libwiimote-0.4.new/Makefile.in 2009-08-26 16:00:34.638935427 +0200 +@@ -25,6 +25,7 @@ + install: + mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(libwiimote_includedir) + $(INSTALL) -m 755 $(LIBDIR)/libcwiimote.so $(DESTDIR)$(libdir)/libcwiimote.so.$(PACKAGE_VERSION) ++ cd $(DESTDIR)$(libdir); ln -sf libcwiimote-0.4.so libcwiimote.so + $(INSTALL) -m 755 $(LIBDIR)/libcwiimote.a $(DESTDIR)$(libdir)/libcwiimote.a + for i in $(SRCDIR)/*.h; do \ + $(INSTALL) -m 644 $$i $(DESTDIR)$(libwiimote_includedir); \