initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
From c9f5783bb2df4a19c6281daeda30e8ab905d2ca3 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 22 Aug 2021 10:44:48 +0200
|
||||
Subject: [PATCH] Don't build po files if NLS is disabled
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/ddugovic/uShare/pull/12]
|
||||
---
|
||||
Makefile | 7 +++++--
|
||||
configure | 3 +++
|
||||
2 files changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index ebd8f91..6686cfd 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -14,10 +14,13 @@ EXTRADIST = AUTHORS \
|
||||
THANKS \
|
||||
TODO \
|
||||
|
||||
-SUBDIRS = po \
|
||||
- scripts \
|
||||
+SUBDIRS = scripts \
|
||||
src \
|
||||
|
||||
+ifeq ($(NLS),yes)
|
||||
+SUBDIRS += po
|
||||
+endif
|
||||
+
|
||||
all:
|
||||
for subdir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$subdir $@; \
|
||||
diff --git a/configure b/configure
|
||||
index 4a3efe0..f48806a 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -414,6 +414,8 @@ for opt do
|
||||
;;
|
||||
--with-libdlna-dir=*) libdlnadir="$optval";
|
||||
;;
|
||||
+ --enable-nls) nls="yes"
|
||||
+ ;;
|
||||
--disable-nls) nls="no"
|
||||
;;
|
||||
--enable-dlna) dlna="yes"
|
||||
@@ -723,6 +725,7 @@ append_config "LDFLAGS=$LDFLAGS"
|
||||
append_config "INSTALL=$INSTALL"
|
||||
|
||||
append_config "DEBUG=$debug"
|
||||
+append_config "NLS=$nls"
|
||||
|
||||
|
||||
echolog "Creating $CONFIG_H ..."
|
||||
--
|
||||
2.32.0
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_USHARE
|
||||
bool "ushare"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libupnp
|
||||
# ushare has a completely custom configure script that does
|
||||
# broken things with library ordering, which breaks static
|
||||
# linking.
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_LIBUPNP
|
||||
help
|
||||
uShare is a UPnP (TM) A/V & DLNA Media Server.
|
||||
It implements the server component that provides UPnP media
|
||||
devices with information on available multimedia files.
|
||||
|
||||
http://ushare.geexbox.org/
|
||||
|
||||
comment "ushare needs a toolchain w/ threads, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,3 @@
|
||||
# locally computed hash
|
||||
sha256 e4563141a171138900540cc979f205cf666e820f709d47a98521bc77f53a99e6 ushare-2.1.tar.gz
|
||||
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING
|
||||
@@ -0,0 +1,48 @@
|
||||
################################################################################
|
||||
#
|
||||
# ushare
|
||||
#
|
||||
################################################################################
|
||||
|
||||
USHARE_VERSION = 2.1
|
||||
USHARE_SITE = $(call github,ddugovic,uShare,v$(USHARE_VERSION))
|
||||
USHARE_DEPENDENCIES = host-pkgconf libupnp $(TARGET_NLS_DEPENDENCIES)
|
||||
USHARE_LICENSE = GPL-2.0+
|
||||
USHARE_LICENSE_FILES = COPYING
|
||||
USHARE_LDFLAGS = $(TARGET_NLS_LIBS)
|
||||
|
||||
USHARE_CONF_OPTS = \
|
||||
--prefix=/usr \
|
||||
--cross-compile \
|
||||
--cross-prefix="$(TARGET_CROSS)" \
|
||||
--sysconfdir=/etc \
|
||||
--disable-strip
|
||||
|
||||
USHARE_MAKE_OPTS = LDFLAGS="$(TARGET_LDFLAGS) $(USHARE_LDFLAGS)"
|
||||
|
||||
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
||||
USHARE_CONF_OPTS += --enable-nls
|
||||
USHARE_MAKE_OPTS += GMSGFMT="$(HOST_DIR)/bin/msgfmt"
|
||||
else
|
||||
USHARE_CONF_OPTS += --disable-nls
|
||||
endif
|
||||
|
||||
define USHARE_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
$(USHARE_CONF_OPTS) \
|
||||
)
|
||||
endef
|
||||
|
||||
define USHARE_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(USHARE_MAKE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define USHARE_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
rm -f $(TARGET_DIR)/etc/init.d/ushare
|
||||
endef
|
||||
|
||||
# Even though configure is called it's not autoconf
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user