Magellan Linux

Contents of /smage/branches/alx08x-unstable/core/xf86-input-vmmouse/xf86-input-vmmouse-13.2.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16481 - (show annotations) (download)
Mon Oct 2 13:46:35 2023 UTC (8 months, 3 weeks ago) by niro
File size: 1775 byte(s)
-release branches/alx08x-unstable
1 # $Id$
2
3 PNAME="xf86-input-vmmouse"
4 PVER="13.2.0"
5 PBUILD="r1"
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=">= sys-fs/libudev-253
13 == virtual/X-ABI-XINPUT-24.4"
14
15 # the driver itself
16 ALX_PKG_KEEP="usr/$(mlibdir)/xorg/modules/input/vmmouse_drv.so"
17 # xorg config
18 ALX_PKG_KEEP+=" etc/X11/xorg.conf.d"
19 # udev rules (*/usr/lib/udev* also on multilib systems!!)
20 ALX_PKG_KEEP+=" usr/lib/udev/rules.d"
21 # vmmouse detection tool used by udev
22 ALX_PKG_KEEP+=" usr/bin/vmmouse_detect"
23 # xorg configuration
24 ALX_PKG_KEEP+=" usr/share/X11/xorg.conf.d"
25 sminclude xorg mtools udev alx-split
26
27 # remove some hardened flags to fix some modules fail to load with undefined symbol
28 # see https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
29 export CFLAGS=${CFLAGS/-fno-plt}
30 export CXXFLAGS=${CXXFLAGS/-fno-plt}
31 export LDFLAGS=${LDFLAGS/,-z,now}
32
33 src_compile()
34 {
35 cd ${SRCDIR}
36
37 xorg_src_configure --with-udev-rules-dir=$(mget-udev-rules-dir) || die
38 mmake || die
39 }
40
41 alx_generic_src_install()
42 {
43 cd ${SRCDIR}
44 xorg_src_install || die
45
46 # remove obsolete hal stuff
47 mdelete -r /usr/$(mlibdir)/hal || die
48 mdelete -r /usr/share/hal || die
49
50 # install xorg.conf.d for udev vmmouse driver
51 minstalldir /etc/X11/xorg.conf.d || die
52 minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die
53 }
54
55 # reload udev to get the provided udev rules recognized
56 postinstall()
57 {
58 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
59 [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
60 then
61 udevadm control --reload-rules
62 fi
63 }
64
65 postremove()
66 {
67 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
68 [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
69 then
70 udevadm control --reload-rules
71 fi
72 }