kumquat-buildroot/package/dmenu-wayland/dmenu-wayland.mk
Fabrice Fontaine 46bb598f1a package/dmenu-wayland: fix uclibc build
Set -std=gnu99 to fix the following uclibc build failure raised since
the addition of the package in commit
2f6b1b8e68:

../draw.c:37:23: error: 'CLOCK_REALTIME' undeclared (first use in this function)
   37 |         clock_gettime(CLOCK_REALTIME, &ts);
      |                       ^~~~~~~~~~~~~~

Fixes: 2f6b1b8e68
 - http://autobuild.buildroot.org/results/4b9db67fb444ec35d741e5d3e74263ac0c4d4a7d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2024-04-07 18:25:27 +02:00

30 lines
845 B
Makefile

################################################################################
#
# dmenu-wayland
#
################################################################################
DMENU_WAYLAND_VERSION = a380201dff5bfac2dace553d7eaedb6cea6855f9
DMENU_WAYLAND_SITE = $(call github,nyyManni,dmenu-wayland,$(DMENU_WAYLAND_VERSION))
DMENU_WAYLAND_LICENSE = MIT
DMENU_WAYLAND_LICENSE_FILES = LICENSE
DMENU_WAYLAND_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
# host-wayland is for wayland-scanner
DMENU_WAYLAND_DEPENDENCIES = \
host-wayland \
cairo \
libglib2 \
libxkbcommon \
pango \
wayland \
wayland-protocols
# By default, sway calls dmenu not dmenu-wl
define DMENU_WAYLAND_SYMLINK_DMENU_WL
ln -sf dmenu-wl $(TARGET_DIR)/usr/bin/dmenu
endef
DMENU_WAYLAND_POST_INSTALL_TARGET_HOOKS += DMENU_WAYLAND_SYMLINK_DMENU_WL
$(eval $(meson-package))