detect-stylus_svn.bb: install and package detect-tsdevice
authorGraeme Gregory <graeme@openmoko.org>
Mon, 28 Jul 2008 16:06:44 +0000 (17:06 +0100)
committerJohn Lee <john_lee@openmoko.org>
Mon, 5 Jan 2009 09:07:02 +0000 (17:07 +0800)
packages/detect-stylus/detect-stylus_svn.bb
packages/detect-stylus/files/install-detect-tsdevice.patch [new file with mode: 0644]

index 7f43854..fa315be 100644 (file)
@@ -3,16 +3,22 @@ SECTION = "gpe"
 LICENSE = "GPL"
 DEPENDS = "virtual/libx11 xcursor-transparent-theme xrdb"
 RDEPENDS = "xrdb"
-PV = "0.13+svn${SRCDATE}"
+PV = "0.13+svnr${SRCREV}"
 PR = "r0"
 
 inherit gpe pkgconfig
 
 SRC_URI = "${GPE_SVN} \
-           file://detect-stylus-svn-build.patch;patch=1"
+           file://detect-stylus-svn-build.patch;patch=1 \
+           file://install-detect-tsdevice.patch;patch=1"
 
 S = "${WORKDIR}/${PN}"
 
 export CVSBUILD="no"
 
 DEFAULT_PREFERENCE = "-1"
+
+PACKAGES =+ "detect-tsdevice"
+
+FILES_detect-tsdevice = "${bindir}/detect-tsdevice"
+
diff --git a/packages/detect-stylus/files/install-detect-tsdevice.patch b/packages/detect-stylus/files/install-detect-tsdevice.patch
new file mode 100644 (file)
index 0000000..5d3afaa
--- /dev/null
@@ -0,0 +1,11 @@
+Index: detect-stylus/Makefile
+===================================================================
+--- detect-stylus.orig/Makefile        2008-07-28 16:30:40.000000000 +0100
++++ detect-stylus/Makefile     2008-07-28 16:31:08.000000000 +0100
+@@ -39,5 +39,6 @@
+       mkdir -p $(DESTDIR)$(PREFIX)/bin/
+       $(STRIP) $(PACKAGE)
+       install $(PACKAGE) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE)
++      install detect-tsdevice $(DESTDIR)$(PREFIX)/bin/detect-tsdevice
+       mkdir -p $(DESTDIR)/etc/X11/Xinit.d
+       install 70detect-stylus $(DESTDIR)/etc/X11/Xinit.d