initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
From: Benjamin Drung <bdrung@debian.org>
|
||||
Date: Sat, 16 Sep 2017 11:22:03 +0200
|
||||
Subject: Add a pkg-config file for the shared libraries
|
||||
|
||||
This patch was downloaded from Debian
|
||||
https://sources.debian.org/src/liblivemedia/2018.08.05-1/debian/patches/0002-Add-a-pkg-config-file-for-the-shared-libraries.patch/
|
||||
|
||||
The local/ part of PREXIX and LIBDIR was removed to fit into buildroot.
|
||||
|
||||
A similar version of this patch is part of the vlc source repo:
|
||||
http://git.videolan.org/?p=vlc.git;a=blob;f=contrib/src/live555/add-pkgconfig-file.patch;hb=HEAD
|
||||
|
||||
Upstream status: Rejected
|
||||
http://lists.live555.com/pipermail/live-devel/2013-January/016374.html
|
||||
http://lists.live555.com/pipermail/live-devel/2013-January/016375.html
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
Makefile.head | 3 +++
|
||||
Makefile.tail | 7 ++++++-
|
||||
live555.pc.in | 9 +++++++++
|
||||
3 files changed, 18 insertions(+), 1 deletion(-)
|
||||
create mode 100644 live555.pc.in
|
||||
|
||||
diff --git a/Makefile.head b/Makefile.head
|
||||
index 458c54c..1571037 100644
|
||||
--- a/Makefile.head
|
||||
+++ b/Makefile.head
|
||||
@@ -1 +1,4 @@
|
||||
+PREFIX = /usr
|
||||
+LIBDIR = /usr/lib
|
||||
+VERSION = $(shell grep LIVEMEDIA_LIBRARY_VERSION_STRING liveMedia/include/liveMedia_version.hh | sed 's/.*"\([^"]*\)".*/\1/')
|
||||
##### Change the following for your environment:
|
||||
diff --git a/Makefile.tail b/Makefile.tail
|
||||
index fc594ea..a20a527 100644
|
||||
--- a/Makefile.tail
|
||||
+++ b/Makefile.tail
|
||||
@@ -22,7 +22,12 @@ all:
|
||||
@echo
|
||||
@echo "For more information about this source code (including your obligations under the LGPL), please see our FAQ at http://live555.com/liveMedia/faq.html"
|
||||
|
||||
-install:
|
||||
+install_shared_libraries:
|
||||
+ install -d $(DESTDIR)$(LIBDIR)/pkgconfig
|
||||
+ sed "s#@PREFIX@#$(PREFIX)#;s#@LIBDIR@#$(LIBDIR)#;s#@VERSION@#$(VERSION)#" live555.pc.in > $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc
|
||||
+ chmod 644 $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc
|
||||
+
|
||||
+install: $(INSTALL2)
|
||||
cd $(LIVEMEDIA_DIR) ; $(MAKE) install
|
||||
cd $(GROUPSOCK_DIR) ; $(MAKE) install
|
||||
cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE) install
|
||||
diff --git a/live555.pc.in b/live555.pc.in
|
||||
new file mode 100644
|
||||
index 0000000..3736944
|
||||
--- /dev/null
|
||||
+++ b/live555.pc.in
|
||||
@@ -0,0 +1,9 @@
|
||||
+prefix=@PREFIX@
|
||||
+libdir=@LIBDIR@
|
||||
+includedir=${prefix}/include
|
||||
+
|
||||
+Name: live555
|
||||
+Description: multimedia RTSP streaming library
|
||||
+Version: @VERSION@
|
||||
+Cflags: -I${includedir}/liveMedia -I${includedir}/groupsock -I${includedir}/BasicUsageEnvironment -I${includedir}/UsageEnvironment
|
||||
+Libs: -L${libdir} -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment
|
||||
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_LIVE555
|
||||
bool "live555"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
LIVE555 Streaming Media forms a set of C++ libraries for
|
||||
multimedia streaming, using open standard protocols
|
||||
(RTP/RTCP, RTSP, SIP).
|
||||
|
||||
http://www.live555.com/liveMedia/
|
||||
|
||||
comment "live555 needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
@@ -0,0 +1,5 @@
|
||||
# From http://www.live555.com/liveMedia/public/live555-latest-md5.txt
|
||||
md5 3c1992b0e9b871bcad7491a3da541781 live.2021.05.03.tar.gz
|
||||
# Locally generated
|
||||
sha256 ae73241f9cc4ab740d60737c0438d62a7635af3822de5d84acf275793de42029 live.2021.05.03.tar.gz
|
||||
sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 COPYING.LESSER
|
||||
@@ -0,0 +1,74 @@
|
||||
################################################################################
|
||||
#
|
||||
# live555
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIVE555_VERSION = 2021.05.03
|
||||
LIVE555_SOURCE = live.$(LIVE555_VERSION).tar.gz
|
||||
LIVE555_SITE = http://www.live555.com/liveMedia/public
|
||||
# There is a COPYING file with the GPL-3.0 license text, but none of
|
||||
# the source files appear to be released under GPL-3.0, and the
|
||||
# project web site says it's licensed under the LGPL:
|
||||
# http://live555.com/liveMedia/faq.html#copyright-and-license
|
||||
LIVE555_LICENSE = LGPL-3.0+
|
||||
LIVE555_LICENSE_FILES = COPYING.LESSER
|
||||
LIVE555_CPE_ID_VENDOR = live555
|
||||
LIVE555_CPE_ID_PRODUCT = streaming_media
|
||||
LIVE555_INSTALL_STAGING = YES
|
||||
|
||||
LIVE555_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIVE555_CONFIG_TARGET = linux
|
||||
LIVE555_LIBRARY_LINK = $(TARGET_AR) cr
|
||||
else
|
||||
LIVE555_CONFIG_TARGET = linux-with-shared-libraries
|
||||
LIVE555_LIBRARY_LINK = $(TARGET_CC) -o
|
||||
LIVE555_CFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIVE555_DEPENDENCIES += host-pkgconf openssl
|
||||
LIVE555_CONSOLE_LIBS = `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
|
||||
# passed to ar for static linking, which gets confused by -L<dir>
|
||||
ifneq ($(BR2_STATIC_LIBS),y)
|
||||
LIVE555_LIVEMEDIA_LIBS = $(LIVE555_CONSOLE_LIBS)
|
||||
endif
|
||||
else
|
||||
LIVE555_CFLAGS += -DNO_OPENSSL
|
||||
endif
|
||||
|
||||
ifndef ($(BR2_ENABLE_LOCALE),y)
|
||||
LIVE555_CFLAGS += -DLOCALE_NOT_USED
|
||||
endif
|
||||
|
||||
define LIVE555_CONFIGURE_CMDS
|
||||
echo 'COMPILE_OPTS = $$(INCLUDES) -I. -DSOCKLEN_T=socklen_t $(LIVE555_CFLAGS)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
echo 'C_COMPILER = $(TARGET_CC)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
echo 'CPLUSPLUS_COMPILER = $(TARGET_CXX)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
|
||||
echo 'LINK = $(TARGET_CXX) -o' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
echo 'LINK_OPTS = -L. $(TARGET_LDFLAGS)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
echo 'PREFIX = /usr' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
# Must have a whitespace at the end of LIBRARY_LINK, otherwise static link
|
||||
# fails
|
||||
echo 'LIBRARY_LINK = $(LIVE555_LIBRARY_LINK) ' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
echo 'LIBS_FOR_CONSOLE_APPLICATION = $(LIVE555_CONSOLE_LIBS)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
echo 'LIBS_FOR_LIVEMEDIA_LIB = $(LIVE555_LIVEMEDIA_LIBS)' >> $(@D)/config.$(LIVE555_CONFIG_TARGET)
|
||||
(cd $(@D); ./genMakefiles $(LIVE555_CONFIG_TARGET))
|
||||
endef
|
||||
|
||||
define LIVE555_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
|
||||
endef
|
||||
|
||||
define LIVE555_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) -C $(@D) install
|
||||
endef
|
||||
|
||||
define LIVE555_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user