-
Notifications
You must be signed in to change notification settings - Fork 23
/
live555-add-pkgconfig-file.patch
37 lines (35 loc) · 1.59 KB
/
live555-add-pkgconfig-file.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Add a pkg-config file for the shared libraries.
Author: Benjamin Drung <bdrung@debian.org>
diff --git a/Makefile.tail b/Makefile.tail
--- a/Makefile.tail
+++ b/Makefile.tail
@@ -22,7 +22,12 @@
@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 > live555.pc
+ install -m 644 live555.pc $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc
+
+install: $(INSTALL2)
cd $(LIVEMEDIA_DIR) ; $(MAKE) install
cd $(GROUPSOCK_DIR) ; $(MAKE) install
cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE) install
--- /dev/null 2017-01-19 15:35:15.538412775 +0100
+++ live.2016.07.19/live555.pc.in 2017-01-19 18:46:01.456059400 +0100
@@ -0,0 +1,9 @@
+prefix=@PREFIX@
+libdir=${prefix}/lib
+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
--- live.2016.07.19/Makefile.head.orig 2017-01-19 18:47:50.376062631 +0100
+++ live.2016.07.19/Makefile.head 2017-01-19 18:48:09.940063212 +0100
@@ -1 +1,2 @@
+VERSION = $(shell grep LIVEMEDIA_LIBRARY_VERSION_STRING liveMedia/include/liveMedia_version.hh | sed 's/.*"\([^"]*\)".*/\1/')
##### Change the following for your environment: