package/startup-notification: add version selection

Some packages require to use newer version of startup-notification
library which currenly does not support by the package makefile.
This patch created a version selection for this package.

Signed-off-by: Mohamad Noor Alim Hussin <mnalim@efinixinc.com>
This commit is contained in:
Mohamad Noor Alim Hussin
2025-02-09 01:20:23 +08:00
committed by Byron Lathi
parent d3aadecd54
commit 360c9e03d4
3 changed files with 18 additions and 2 deletions

View File

@@ -1,3 +1,14 @@
config BR2_STARTUP_NOTIFICATION_VERSION_0_9
bool "startup-notification 0.9"
config BR2_STARTUP_NOTIFICATION_VERSION_0_12
bool "startup-notification 0.12"
config BR2_STARTUP_NOTIFICATION_VERSION
string
default "0.9" if BR2_STARTUP_NOTIFICATION_VERSION_0_9
default "0.12" if BR2_STARTUP_NOTIFICATION_VERSION_0_12
config BR2_PACKAGE_STARTUP_NOTIFICATION config BR2_PACKAGE_STARTUP_NOTIFICATION
bool "startup-notification" bool "startup-notification"
depends on BR2_PACKAGE_XORG7 depends on BR2_PACKAGE_XORG7

View File

@@ -1,3 +1,4 @@
# Locally calculated # Locally calculated
sha256 c2fa09f9a49d8b319e79638e49e967c682df8726006e03059b1ffca5ab82099c startup-notification-0.9.tar.gz sha256 c2fa09f9a49d8b319e79638e49e967c682df8726006e03059b1ffca5ab82099c startup-notification-0.9.tar.gz
sha256 3c391f7e930c583095045cd2d10eb73a64f085c7fde9d260f2652c7cb3cfbe4a startup-notification-0.12.tar.gz
sha256 29935974beae046f50da806b5f4e54532401dd7bcfbc696a0b645f4cbcce9dbb COPYING sha256 29935974beae046f50da806b5f4e54532401dd7bcfbc696a0b645f4cbcce9dbb COPYING

View File

@@ -3,11 +3,15 @@
# startup-notification # startup-notification
# #
################################################################################ ################################################################################
STARTUP_NOTIFICATION_VERSION = $(call qstrip,$(BR2_STARTUP_NOTIFICATION_VERSION))
STARTUP_NOTIFICATION_VERSION = 0.9
STARTUP_NOTIFICATION_SITE = http://freedesktop.org/software/startup-notification/releases STARTUP_NOTIFICATION_SITE = http://freedesktop.org/software/startup-notification/releases
STARTUP_NOTIFICATION_INSTALL_STAGING = YES STARTUP_NOTIFICATION_INSTALL_STAGING = YES
STARTUP_NOTIFICATION_DEPENDENCIES = xlib_libX11 STARTUP_NOTIFICATION_DEPENDENCIES = xlib_libX11
ifeq ($(BR2_STARTUP_NOTIFICATION_VERSION_0_12), y)
STARTUP_NOTIFICATION_DEPENDENCIES += xcb-util
endif
STARTUP_NOTIFICATION_CONF_ENV = lf_cv_sane_realloc=yes STARTUP_NOTIFICATION_CONF_ENV = lf_cv_sane_realloc=yes
STARTUP_NOTIFICATION_CONF_OPTS = --with-x \ STARTUP_NOTIFICATION_CONF_OPTS = --with-x \
--x-includes="$(STAGING_DIR)/usr/include/X11" \ --x-includes="$(STAGING_DIR)/usr/include/X11" \