1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
12 PKG_SOURCE_URL
:=http
://www.freedesktop.org
/software
/libinput
/
13 PKG_HASH
:=096d612d2711f0caa2de544976ff3729e6233511ab373808644cc2dd5affcb1d
16 PKG_LICENSE_FILES
:=COPYING
17 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
22 include $(INCLUDE_DIR
)/package.mk
24 TARGET_CFLAGS
+= -std
=gnu99
26 CONFIGURE_ARGS
+= --disable-libwacom
--disable-tests
--disable-documentation
28 define Package
/libinput
31 TITLE
:=a library to handle input devices
32 URL
:=http
://freedesktop.org
/wiki
/Software
/libinput
/
33 DEPENDS
:=+libevdev
+mtdev
+libudev-fbsd
36 define Package
/libinput
/description
37 libinput is a library to handle input devices in Wayland compositors
38 and to provide a generic X.Org input driver. It provides device
39 detection
, device handling
, input device event processing and
40 abstraction so minimize the amount of custom input code compositors
41 need to provide the common set of functionality that users expect.
44 define Build
/InstallDev
45 $(INSTALL_DIR
) $(1)/usr
/include
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
47 $(INSTALL_DIR
) $(1)/usr
/lib
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{la
,so
*} $(1)/usr
/lib
/
49 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* $(1)/usr
/lib
/pkgconfig
/
53 define Package
/libinput
/install
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/{udev
,*.so
*} $(1)/usr
/lib
56 $(INSTALL_DIR
) $(1)/usr
/bin
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
60 $(eval
$(call BuildPackage
,libinput
))