[arch-commits] Commit in xf86-input-dynapro/trunk (PKGBUILD git-237ae0c8.patch)
Jan de Groot
jgc at archlinux.org
Sun Mar 1 14:23:28 UTC 2009
Date: Sunday, March 1, 2009 @ 09:23:28
Author: jgc
Revision: 28516
upgpkg: xf86-input-dynapro 1.1.2-2
Patch to support latest xorg-server.
This driver is no longer maintained upstream. If it breaks, drop it!
Added:
xf86-input-dynapro/trunk/git-237ae0c8.patch
Modified:
xf86-input-dynapro/trunk/PKGBUILD
--------------------+
PKGBUILD | 19 ++++---
git-237ae0c8.patch | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 149 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-03-01 13:26:11 UTC (rev 28515)
+++ PKGBUILD 2009-03-01 14:23:28 UTC (rev 28516)
@@ -3,20 +3,27 @@
# Contributor: Jan de Groot <jgc at archlinux.org>
pkgname=xf86-input-dynapro
pkgver=1.1.2
-pkgrel=1
+pkgrel=2
pkgdesc="X.org DynaPro Touch Screen input driver"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
depends=('glibc')
-makedepends=('pkgconfig' 'xorg-server>=1.4.99.906')
+makedepends=('pkgconfig' 'xorg-server>=1.6.0')
+conflicts=('xorg-server<1.6.0')
options=('!libtool')
groups=('xorg-input-drivers')
-source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('ceb5efbd3d62e24ab3a5f9f180777f7c')
+source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2
+ git-237ae0c8.patch)
+md5sums=('ceb5efbd3d62e24ab3a5f9f180777f7c' '7e29a8a66e14e6b0316290945eb3335c')
build() {
- cd ${startdir}/src/${pkgname}-${pkgver}
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i "${srcdir}/git-237ae0c8.patch" || return 1
+ libtoolize --force || return 1
+ aclocal || return 1
+ autoconf || return 1
+ automake || return 1
./configure --prefix=/usr || return 1
make || return 1
- make DESTDIR=${startdir}/pkg install || return 1
+ make DESTDIR="${pkgdir}" install || return 1
}
Added: git-237ae0c8.patch
===================================================================
--- git-237ae0c8.patch (rev 0)
+++ git-237ae0c8.patch 2009-03-01 14:23:28 UTC (rev 28516)
@@ -0,0 +1,136 @@
+diff -ruN -x .gitignore xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/Makefile.am xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/Makefile.am
+--- xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/Makefile.am 2008-03-20 19:22:46.000000000 +0000
++++ xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/Makefile.am 2009-02-02 20:57:55.000000000 +0000
+@@ -20,11 +20,12 @@
+
+ AUTOMAKE_OPTIONS = foreign
+ SUBDIRS = src man
+-
+-CLEANFILES = ChangeLog
+ EXTRA_DIST = ChangeLog
++MAINTAINERCLEANFILES = ChangeLog
+
+ .PHONY: ChangeLog
+
+ ChangeLog:
+- (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
++ $(CHANGELOG_CMD)
++
++dist-hook: ChangeLog
+diff -ruN -x .gitignore xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/README xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/README
+--- xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/README 1970-01-01 00:00:00.000000000 +0000
++++ xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/README 2009-02-02 20:57:55.000000000 +0000
+@@ -0,0 +1,20 @@
++xf86-input-dynapro - Dynapro input driver for the Xorg X server
++
++Please submit bugs & patches to the Xorg bugzilla:
++
++ https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
++
++All questions regarding this software should be directed at the
++Xorg mailing list:
++
++ http://lists.freedesktop.org/mailman/listinfo/xorg
++
++The master development code repository can be found at:
++
++ git://anongit.freedesktop.org/git/xorg/driver/xf86-input-dynapro
++
++ http://cgit.freedesktop.org/xorg/driver/xf86-input-dynapro
++
++For more information on the git code manager, see:
++
++ http://wiki.x.org/wiki/GitPage
+diff -ruN -x .gitignore xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/configure.ac xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/configure.ac
+--- xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/configure.ac 2008-03-20 19:22:46.000000000 +0000
++++ xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/configure.ac 2009-02-02 20:57:55.000000000 +0000
+@@ -32,15 +32,16 @@
+
+ AM_MAINTAINER_MODE
+
+-DRIVER_NAME=dynapro
+-AC_SUBST([DRIVER_NAME])
+-
++# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
++m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])])
++XORG_MACROS_VERSION(1.2)
+ AM_CONFIG_HEADER([config.h])
+
+ # Checks for programs.
+ AC_DISABLE_STATIC
+ AC_PROG_LIBTOOL
+ AC_PROG_CC
++XORG_CWARNFLAGS
+
+ AH_TOP([#include "xorg-server.h"])
+
+@@ -77,16 +78,18 @@
+ # Checks for pkg-config packages
+ PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto $REQUIRED_MODULES)
+ sdkdir=$(pkg-config --variable=sdkdir xorg-server)
+-
+-CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
+-AC_SUBST([CFLAGS])
++XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
+
+ # Checks for libraries.
+
+ # Checks for header files.
+ AC_HEADER_STDC
+
++DRIVER_NAME=dynapro
++AC_SUBST([DRIVER_NAME])
++
+ XORG_MANPAGE_SECTIONS
+ XORG_RELEASE_VERSION
++XORG_CHANGELOG
+
+ AC_OUTPUT([Makefile src/Makefile man/Makefile])
+diff -ruN -x .gitignore xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/man/dynapro.man xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/man/dynapro.man
+--- xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/man/dynapro.man 2008-03-20 19:22:46.000000000 +0000
++++ xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/man/dynapro.man 2009-02-02 20:57:55.000000000 +0000
+@@ -31,6 +31,6 @@
+ .PP
+ Config details...
+ .SH "SEE ALSO"
+-__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), xorgconfig(__appmansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__).
++__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__).
+ .SH AUTHORS
+ Authors include...
+diff -ruN -x .gitignore xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/src/Makefile.am xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/src/Makefile.am
+--- xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/src/Makefile.am 2008-03-20 19:22:46.000000000 +0000
++++ xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/src/Makefile.am 2009-02-02 20:57:55.000000000 +0000
+@@ -24,6 +24,8 @@
+ # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
+ # _ladir passes a dummy rpath to libtool so the thing will actually link
+ # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
++AM_CFLAGS = $(XORG_CFLAGS)
++
+ @DRIVER_NAME at _drv_la_LTLIBRARIES = @DRIVER_NAME at _drv.la
+ @DRIVER_NAME at _drv_la_LDFLAGS = -module -avoid-version
+ @DRIVER_NAME at _drv_ladir = @inputdir@
+diff -ruN -x .gitignore xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/src/xf86Dyna.c xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/src/xf86Dyna.c
+--- xf86-input-dynapro-2f052f7442df5f4d0a6b271f72f61e93731ed8a7/src/xf86Dyna.c 2008-03-20 19:22:46.000000000 +0000
++++ xf86-input-dynapro-237ae0c8ce78e423a53eb5928230abbfb8f3ea32/src/xf86Dyna.c 2009-02-02 20:57:55.000000000 +0000
+@@ -98,7 +98,9 @@
+ "xf86CollectInputOptions",
+ "xf86ErrorFVerb",
+ "xf86FindOptionValue",
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+ "xf86GetMotionEvents",
++#endif
+ "xf86GetVerbosity",
+ "xf86MotionHistoryAllocate",
+ "xf86NameCmp",
+@@ -296,7 +298,10 @@
+ * Device reports motions on 2 axes in absolute coordinates.
+ * Axes min and max values are reported in raw coordinates.
+ */
+- if (InitValuatorClassDeviceStruct (dev, 2, xf86GetMotionEvents,
++ if (InitValuatorClassDeviceStruct (dev, 2,
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
++ xf86GetMotionEvents,
++#endif
+ pInfo->history_size, Absolute) == FALSE)
+ {
+ ErrorF ("Unable to allocate Dynapro ValuatorClassDeviceStruct\n");
More information about the arch-commits
mailing list