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