1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
9 PKG_RELEASE
:=$(AUTORELEASE
)
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
12 PKG_SOURCE_URL
:=http
://www.freedesktop.org
/software
/libinput
13 PKG_HASH
:=e51c50f3ce253961bed452d9f93102cc26128406975ab88ff9ec9e6c3b875137
15 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
17 PKG_LICENSE_FILES
:=COPYING
20 PKG_BUILD_DEPENDS
:=meson
/host
22 include $(INCLUDE_DIR
)/package.mk
23 include ..
/..
/devel
/meson
/meson.mk
25 define Package
/libinput
28 TITLE
:=a library to handle input devices
29 URL
:=http
://freedesktop.org
/wiki
/Software
/libinput
/
30 DEPENDS
:=+libevdev
+mtdev
+libudev
33 define Package
/libinput
/description
34 libinput is a library to handle input devices in Wayland compositors
35 and to provide a generic X.Org input driver. It provides device
36 detection
, device handling
, input device event processing and
37 abstraction so minimize the amount of custom input code compositors
38 need to provide the common set of functionality that users expect.
46 -Dinstall-tests
=false \
47 -Ddocumentation
=false \
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libinput.h
$(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libinput.so
* $(1)/usr
/lib
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libinput.
pc $(1)/usr
/lib
/pkgconfig
/
60 define Package
/libinput
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/{udev
,libinput.so.
*} $(1)/usr
/lib
63 $(INSTALL_DIR
) $(1)/usr
/bin
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/libinput
$(1)/usr
/bin
67 $(eval
$(call BuildPackage
,libinput
))