Skip to content

Commit c364796

Browse files
committed
package: Add libmanette
libmanette is a library which provides a higher level interface to enumerate and make use of game controllers (gamepads, joysticks). WebKitGTK can use libmanette to expose controllers to web content, which will be enabled on a follow-up patch. Minimal kernel headers 4.16 for input_event_sec and input_event_usec in struct input_event. Signed-off-by: Adrian Perez de Castro <[email protected]> [Arnout: add kernel headers dependency suggested by Romain] Signed-off-by: Arnout Vandecappelle <[email protected]>
1 parent 1835cb8 commit c364796

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed

DEVELOPERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ F: package/brotli/
9191
F: package/bubblewrap/
9292
F: package/cog/
9393
F: package/libepoxy/
94+
F: package/libmanette/
9495
F: package/libwpe/
9596
F: package/webkitgtk/
9697
F: package/woff2/

package/Config.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ endmenu
510510
source "package/iucode-tool/Config.in"
511511
source "package/kbd/Config.in"
512512
source "package/lcdproc/Config.in"
513+
source "package/libmanette/Config.in"
513514
source "package/libubootenv/Config.in"
514515
source "package/libuio/Config.in"
515516
source "package/linux-backports/Config.in"

package/libmanette/Config.in

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
config BR2_PACKAGE_LIBMANETTE
2+
bool "libmanette"
3+
depends on BR2_USE_MMU # libglib2
4+
depends on BR2_USE_WCHAR # libglib2 -> gettext
5+
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
6+
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
7+
select BR2_PACKAGE_LIBEVDEV
8+
select BR2_PACKAGE_LIBGLIB2
9+
help
10+
GObject library which provides access to game controllers.
11+
12+
https://gitlab.gnome.org/GNOME/libmanette
13+
14+
comment "libmanette needs a toolchain w/ wchar, threads, headers >= 4.16"
15+
depends on BR2_USE_MMU
16+
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
17+
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16

package/libmanette/libmanette.hash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# From https://download.gnome.org/sources/libmanette/0.2/libmanette-0.2.6.sha256sum
2+
sha256 63653259a821ec7d90d681e52e757e2219d462828c9d74b056a5f53267636bac libmanette-0.2.6.tar.xz
3+
4+
# Locally calculated
5+
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING

package/libmanette/libmanette.mk

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
################################################################################
2+
#
3+
# libmanette
4+
#
5+
################################################################################
6+
7+
LIBMANETTE_VERSION_MAJOR = 0.2
8+
LIBMANETTE_VERSION = $(LIBMANETTE_VERSION_MAJOR).6
9+
LIBMANETTE_SOURCE = libmanette-$(LIBMANETTE_VERSION).tar.xz
10+
LIBMANETTE_SITE = https://download.gnome.org/sources/libmanette/$(LIBMANETTE_VERSION_MAJOR)
11+
LIBMANETTE_LICENSE = LGPL-2.1+
12+
LIBMANETTE_LICENSE_FILES = COPYING
13+
LIBMANETTE_INSTALL_STAGING = YES
14+
LIBMANETTE_DEPENDENCIES = \
15+
libevdev \
16+
libglib2 \
17+
$(TARGET_NLS_DEPENDENCIES)
18+
19+
LIBMANETTE_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
20+
21+
LIBMANETTE_CONF_OPTS = \
22+
-Ddemos=false \
23+
-Dbuild-tests=false \
24+
-Dinstall-tests=false \
25+
-Ddoc=false \
26+
-Dvapi=false
27+
28+
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
29+
LIBMANETTE_CONF_OPTS += -Dintrospection=true
30+
LIBMANETTE_DEPENDENCIES += gobject-introspection
31+
else
32+
LIBMANETTE_CONF_OPTS += -Dintrospection=false
33+
endif
34+
35+
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
36+
LIBMANETTE_CONF_OPTS += -Dgudev=enabled
37+
LIBMANETTE_DEPENDENCIES += libgudev
38+
else
39+
LIBMANETTE_CONF_OPTS += -Dgudev=disabled
40+
endif
41+
42+
$(eval $(meson-package))

0 commit comments

Comments
 (0)