Contents of /smage/trunk/core/xf86-input-vmmouse/xf86-input-vmmouse-13.0.0-r3.smage2
Parent Directory | Revision Log
Revision 6339 -
(show annotations)
(download)
Tue Mar 31 12:20:30 2015 UTC (9 years, 2 months ago) by niro
File size: 1730 byte(s)
Tue Mar 31 12:20:30 2015 UTC (9 years, 2 months ago) by niro
File size: 1730 byte(s)
-buildserver
1 | # $Id$ |
2 | |
3 | PNAME="xf86-input-vmmouse" |
4 | PVER="13.0.0" |
5 | PBUILD="r3" |
6 | |
7 | PCAT="x11-drivers" |
8 | |
9 | DESCRIPTION="Xorg input driver for ${PNAME/xf86-input-/} devices." |
10 | HOMEPAGE="http://xorg.freedesktop.org" |
11 | |
12 | DEPEND="== virtual/X-ABI-XINPUT-21" |
13 | |
14 | # the driver itself |
15 | ALX_PKG_KEEP="usr/$(mlibdir)/xorg/modules/input/vmmouse_drv.so" |
16 | # xorg config |
17 | ALX_PKG_KEEP+=" etc/X11/xorg.conf.d" |
18 | # udev rules (*/usr/lib/udev* also on multilib systems!!) |
19 | ALX_PKG_KEEP+=" usr/lib/udev/rules.d" |
20 | # vmmouse detection tool used by udev |
21 | ALX_PKG_KEEP+=" usr/bin/vmmouse_detect" |
22 | |
23 | sminclude xorg mtools alx-split |
24 | |
25 | SRC_URI+=( mirror://${PNAME}/${PNAME}-${PVER}-missing-include-with-xorg-116.patch ) |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # fix ftbfs with newer xorg-headers |
33 | # see: http://lists.x.org/archives/xorg-devel/2014-July/042950.html |
34 | mpatch ${PNAME}-${PVER}-missing-include-with-xorg-116.patch || die |
35 | } |
36 | |
37 | src_compile() |
38 | { |
39 | cd ${SRCDIR} |
40 | |
41 | xorg_src_configure --with-udev-rules-dir=$(mget-udev-rules-dir) || die |
42 | mmake || die |
43 | } |
44 | |
45 | alx_generic_src_install() |
46 | { |
47 | cd ${SRCDIR} |
48 | xorg_src_install || die |
49 | |
50 | # remove obsolete hal stuff |
51 | mdelete -r /usr/$(mlibdir)/hal || die |
52 | mdelete -r /usr/share/hal || die |
53 | |
54 | # install xorg.conf.d for udev vmmouse driver |
55 | minstalldir /etc/X11/xorg.conf.d || die |
56 | minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die |
57 | } |
58 | |
59 | # reload udev to get the provided udev rules recognized |
60 | postinstall() |
61 | { |
62 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && |
63 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] |
64 | then |
65 | udevadm control --reload-rules |
66 | fi |
67 | } |
68 | |
69 | postremove() |
70 | { |
71 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && |
72 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] |
73 | then |
74 | udevadm control --reload-rules |
75 | fi |
76 | } |