Magellan Linux

Contents of /smage/trunk/core/xf86-input-vmmouse/xf86-input-vmmouse-13.0.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5515 - (show annotations) (download)
Thu Mar 27 12:59:40 2014 UTC (10 years, 2 months ago) by niro
File size: 1437 byte(s)
-rebuild against xorg-server-1.15
1 # $Id$
2
3 PNAME="xf86-input-vmmouse"
4 PVER="13.0.0"
5 PBUILD="r2"
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-20"
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 UP2DATE="updatecmd_xorg ${PNAME}"
26
27 src_compile()
28 {
29 cd ${SRCDIR}
30
31 # use /lib for udev dir on multilib systems too!
32 xorg_src_configure \
33 --with-udev-rules-dir=/usr/lib/udev/rules.d \
34 --with-hal-callouts-dir=/usr/bin \
35 || die
36
37 mmake || die
38
39 }
40
41 alx_generic_src_install()
42 {
43 cd ${SRCDIR}
44 xorg_src_install || die
45
46 # install xorg.conf.d for udev vmmouse driver
47 minstalldir /etc/X11/xorg.conf.d || die
48 minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die
49 }
50
51 # reload udev to get the provided udev rules recognized
52 postinstall()
53 {
54 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
55 [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
56 then
57 udevadm control --reload-rules
58 fi
59 }
60
61 postremove()
62 {
63 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
64 [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
65 then
66 udevadm control --reload-rules
67 fi
68 }