[stella] 05/06: Install evdev-joystick and Stelladaptor and 2600-daptor udev rules.

Stephen Kitt skitt at moszumanska.debian.org
Mon Feb 15 16:48:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

skitt pushed a commit to branch master
in repository stella.

commit 88187495695c479d1a13188ef5d216ce120e1d76
Author: Stephen Kitt <steve at sk2.org>
Date:   Mon Feb 15 17:26:03 2016 +0100

    Install evdev-joystick and Stelladaptor and 2600-daptor udev rules.
---
 debian/changelog                          |  1 +
 debian/clean                              |  3 +++
 debian/patches/evdev-joystick-flags.patch | 14 ++++++++++++++
 debian/patches/series                     |  1 +
 debian/rules                              |  8 +++++---
 debian/stella.install                     |  1 +
 6 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 340584b..4cb2deb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ stella (4.7.1-1) UNRELEASED; urgency=medium
 
   * New upstream version.
   * Make debian/watch more generic.
+  * Install evdev-joystick and Stelladaptor and 2600-daptor udev rules.
 
  -- Stephen Kitt <skitt at debian.org>  Mon, 15 Feb 2016 16:27:42 +0100
 
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..d002098
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+debian/stella.udev
+src/tools/evdev-joystick/evdev-joystick
+tags
diff --git a/debian/patches/evdev-joystick-flags.patch b/debian/patches/evdev-joystick-flags.patch
new file mode 100644
index 0000000..bf0b4dc
--- /dev/null
+++ b/debian/patches/evdev-joystick-flags.patch
@@ -0,0 +1,14 @@
+Description: Apply flags when building evdev-joystick
+Author: Stephen Kitt <skitt at debian.org>
+
+--- a/src/tools/evdev-joystick/Makefile
++++ b/src/tools/evdev-joystick/Makefile
+@@ -1,7 +1,7 @@
+ all : evdev-joystick
+ 
+ evdev-joystick: evdev-joystick.c
+-	gcc -Wall -O2 -o evdev-joystick evdev-joystick.c
++	gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o evdev-joystick evdev-joystick.c
+ 
+ install: evdev-joystick 80-stelladaptor-joystick.rules
+ 	install -s evdev-joystick /usr/local/bin/
diff --git a/debian/patches/series b/debian/patches/series
index 8165f7f..ae6df3e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 spelling-fix.patch
+evdev-joystick-flags.patch
diff --git a/debian/rules b/debian/rules
index 68aa748..56f6e2e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,12 +8,14 @@ override_dh_auto_clean:
 	test -f config.mak || echo "RM_REC := rm -f -r" > config.mak
 	dh_auto_clean
 
-override_dh_clean:
-	dh_clean tags
-
 override_dh_auto_configure:
 	./configure --prefix=/usr
 
+override_dh_auto_build:
+	dh_auto_build
+	dh_auto_build -B src/tools/evdev-joystick
+	sed 'sXlocal/XXg' < src/tools/evdev-joystick/80-stelladaptor-joystick.rules > debian/stella.udev
+
 override_dh_auto_install:
 	dh_auto_install
 	# This is also installed as the upstream changelog
diff --git a/debian/stella.install b/debian/stella.install
index c49645e..5eb807f 100644
--- a/debian/stella.install
+++ b/debian/stella.install
@@ -1 +1,2 @@
 debian/debian-menus usr/lib/games/stella
+src/tools/evdev-joystick/evdev-joystick usr/bin

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/stella.git



More information about the Pkg-games-commits mailing list