1From: Benjamin Drung <bdrung@debian.org> 2Date: Sat, 16 Sep 2017 11:22:03 +0200 3Subject: Add a pkg-config file for the shared libraries 4 5This patch was downloaded from Debian 6https://sources.debian.org/src/liblivemedia/2018.08.05-1/debian/patches/0002-Add-a-pkg-config-file-for-the-shared-libraries.patch/ 7 8The local/ part of PREXIX and LIBDIR was removed to fit into buildroot. 9 10A similar version of this patch is part of the vlc source repo: 11http://git.videolan.org/?p=vlc.git;a=blob;f=contrib/src/live555/add-pkgconfig-file.patch;hb=HEAD 12 13Upstream status: Rejected 14http://lists.live555.com/pipermail/live-devel/2013-January/016374.html 15http://lists.live555.com/pipermail/live-devel/2013-January/016375.html 16 17Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> 18--- 19 Makefile.head | 3 +++ 20 Makefile.tail | 7 ++++++- 21 live555.pc.in | 9 +++++++++ 22 3 files changed, 18 insertions(+), 1 deletion(-) 23 create mode 100644 live555.pc.in 24 25diff --git a/Makefile.head b/Makefile.head 26index 458c54c..1571037 100644 27--- a/Makefile.head 28+++ b/Makefile.head 29@@ -1 +1,4 @@ 30+PREFIX = /usr 31+LIBDIR = /usr/lib 32+VERSION = $(shell grep LIVEMEDIA_LIBRARY_VERSION_STRING liveMedia/include/liveMedia_version.hh | sed 's/.*"\([^"]*\)".*/\1/') 33 ##### Change the following for your environment: 34diff --git a/Makefile.tail b/Makefile.tail 35index fc594ea..a20a527 100644 36--- a/Makefile.tail 37+++ b/Makefile.tail 38@@ -22,7 +22,12 @@ all: 39 @echo 40 @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" 41 42-install: 43+install_shared_libraries: 44+ install -d $(DESTDIR)$(LIBDIR)/pkgconfig 45+ sed "s#@PREFIX@#$(PREFIX)#;s#@LIBDIR@#$(LIBDIR)#;s#@VERSION@#$(VERSION)#" live555.pc.in > $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc 46+ chmod 644 $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc 47+ 48+install: $(INSTALL2) 49 cd $(LIVEMEDIA_DIR) ; $(MAKE) install 50 cd $(GROUPSOCK_DIR) ; $(MAKE) install 51 cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE) install 52diff --git a/live555.pc.in b/live555.pc.in 53new file mode 100644 54index 0000000..3736944 55--- /dev/null 56+++ b/live555.pc.in 57@@ -0,0 +1,9 @@ 58+prefix=@PREFIX@ 59+libdir=@LIBDIR@ 60+includedir=${prefix}/include 61+ 62+Name: live555 63+Description: multimedia RTSP streaming library 64+Version: @VERSION@ 65+Cflags: -I${includedir}/liveMedia -I${includedir}/groupsock -I${includedir}/BasicUsageEnvironment -I${includedir}/UsageEnvironment 66+Libs: -L${libdir} -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment 67