0
0
mirror of https://github.com/openwrt/packages.git synced 2025-08-06 16:31:45 +00:00
Files
packages/libs/libmanette/Makefile
Daniel Golle 1e08c79d55 libmanette: update to version 0.2.12
Release 0.2.12
 steam-deck: Add a deadzone for the sticks
 meson: Fix build with pre-1.83.2 GIR
 Post-release version bump to 0.2.12

Release 0.2.11
 ci: Build flatpak bundles and make releases from that

Release 0.2.10
 ci: Switch to F42
 meson: Specify --doc-format for gir
 event-mapping: Fix half-range abs to button mapping
 evdev-mapping: Fix half-range mapping
 contributing: Add a no-LLM statement
 readme: Add CoC
 hacking: Rename to CONTRIBUTING.md
 device: Remove leftover code
 Use non-gprefixed types where possible
 Actually use config.h
 event: Simplify enum definition
 doc: Change Since versions
 ci: Refresh pages after CI passes on main
 version: Add runtime version checking too
 version: Deprecate the old version symbols; add ones with the correct namespace
 doc: Port to gi-docgen
 Change Since versions to 0.2.10
 evdev-backend: Ignore DualSense motion sensor and touchpad
 event-mapping: Make hat to buttons mapping always emit button release
 monitor: Avoid criticals when reloading mappings if hid devices are present
 steam-deck-driver: Fix has_input() for qam and paddles
 hid-backend: Bail if we failed to even open the device
 mapping: Fix paddles for real this time
 mapping: Fix keycodes for paddles
 Introduce HID backend and Steam Deck HID driver
 build: Depend on hidapi
 Add ManetteDeviceType and manette_device_get_device_type()
 device: Add supports_mapping()
 Introduce groundwork for multiple device types and backends
 Post-release bump to version 0.2.10

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

     Sat Apr 26 04:42:37 2025 +0100
2025-04-26 16:55:11 +01:00

56 lines
1.5 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=libmanette
PKG_VERSION:=0.2.12
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/$(basename $(PKG_VERSION))
PKG_HASH:=48b349267180f1dc34d405a9e1e90ba16f054a19ce907930e679493d911ea1d8
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/meson.mk
include $(INCLUDE_DIR)/nls.mk
define Package/libmanette
SECTION:=libs
CATEGORY:=Libraries
TITLE:=The simple GObject game controller library.
URL:=https://gitlab.gnome.org/GNOME/libmanette
DEPENDS:=+glib2 +libgudev +hidapi
endef
define Package/libmanette/description
libmanette offers painless access to game controllers, from any programming
language and with little dependencies.
endef
MESON_ARGS += \
-Ddemos=true \
-Dbuild-tests=true \
-Dinstall-tests=true \
-Ddoc=false \
-Dintrospection=false \
-Dvapi=false \
-Dgudev=enabled
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/libmanette
$(CP) $(PKG_INSTALL_DIR)/usr/include/libmanette/*.h $(1)/usr/include/libmanette
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,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/libmanette/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
endef
$(eval $(call BuildPackage,libmanette))