0001-Add-a-pkg-config-file-for-the-shared-libraries.patch 2.4 KB

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