| From 226f23f13b628722da77f2ebe534422d223621e3 Mon Sep 17 00:00:00 2001 |
| From: Ray Donnelly <mingw.android@gmail.com> |
| Date: Wed, 17 Feb 2021 16:30:57 +0100 |
| Subject: [PATCH 1/7] Add a pkg-config file for the shared libraries. Author: |
| Benjamin Drung <bdrung@debian.org> |
| |
| --- |
| Makefile.head | 1 + |
| Makefile.tail | 7 ++++++- |
| live555.pc.in | 18 ++++++++++++++++++ |
| 3 files changed, 25 insertions(+), 1 deletion(-) |
| create mode 100644 live555.pc.in |
| |
| diff --git a/Makefile.head b/Makefile.head |
| index 458c54c..34c9dfa 100644 |
| --- a/Makefile.head |
| +++ b/Makefile.head |
| @@ -1 +1,2 @@ |
| +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 6c49b83..6dd0776 100644 |
| --- a/Makefile.tail |
| +++ b/Makefile.tail |
| @@ -25,7 +25,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..3fed3cb |
| --- /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 -lssl -lcrypto |
| -- |
| 2.30.1.windows.1 |
| |