From a7be2662bd6530524d962332cfd50a81e8878539 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 25 Nov 2024 00:58:54 +0100 Subject: [PATCH] libwacom: add package Signed-off-by: Daniel Golle --- libs/libwacom/Makefile | 63 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 libs/libwacom/Makefile diff --git a/libs/libwacom/Makefile b/libs/libwacom/Makefile new file mode 100644 index 0000000000..b5e0c3e7cb --- /dev/null +++ b/libs/libwacom/Makefile @@ -0,0 +1,63 @@ +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libwacom +PKG_VERSION:=2.13.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=https://github.com/linuxwacom/$(PKG_NAME)/releases/download/$(PKG_NAME)-$(PKG_VERSION)/ +PKG_HASH:=acd18121441bbc00fc5c881fca08a33319ab814b798eac8d0be6354923f8fb08 + +PKG_MAINTAINER:=Daniel Golle +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=COPYING + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk +include $(INCLUDE_DIR)/meson.mk + +define Package/libwacom + SECTION:=libs + CATEGORY:=Libraries + TITLE:=a tablet description library + URL:=https://github.com/linuxwacom/libwacom + DEPENDS:=+glib2 +libevdev +libgudev +endef + +define Package/libwacom/description +libwacom is a library to identify graphics tablets and their model-specific +features. It provides easy access to information such as "is this a built-in +on-screen tablet", "what is the size of this model", etc. + +The name libwacom is historical - it was originally developed for Wacom devices +only but now supports any graphics tablet from any vendor. +endef + +MESON_ARGS += \ + -Ddocumentation=disabled \ + -Dtests=disabled + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/libwacom-1.0/libwacom + $(CP) $(PKG_INSTALL_DIR)/usr/include/libwacom-1.0/libwacom/*.h \ + $(1)/usr/include/libwacom-1.0/libwacom + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig +endef + +define Package/libwacom/install + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,*.so*} $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/share/libwacom + $(CP) $(PKG_INSTALL_DIR)/usr/share/libwacom/* $(1)/usr/share/libwacom +endef + +$(eval $(call BuildPackage,libwacom)) -- 2.30.2