[libbluray-devel] libbluray.pc: use Requires.private

hpi1 git at videolan.org
Tue Oct 17 16:52:33 CEST 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Oct 17 17:47:01 2017 +0300| [bd887f4e9d8e81f2656fe0d0494bf20af852a23c] | committer: hpi1

libbluray.pc: use Requires.private

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=bd887f4e9d8e81f2656fe0d0494bf20af852a23c
---

 configure.ac        | 4 ++++
 src/libbluray.pc.in | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 98a5226d..1abe9449 100644
--- a/configure.ac
+++ b/configure.ac
@@ -149,18 +149,21 @@ AS_IF([test "x$with_libxml2" != "xno"], [
   PKG_CHECK_MODULES([LIBXML2], [libxml-2.0 >= 2.6],
     [with_libxml2=yes; AC_DEFINE([HAVE_LIBXML2], [1],
         [Define to 1 if libxml2 is to be used for metadata parsing])])
+  PACKAGES="$PACKAGES libxml-2.0"
 ])
 
 dnl FreeType2
 AS_IF([test "x$with_freetype" != "xno"], [
   PKG_CHECK_MODULES([FT2], [freetype2],
     [with_freetype=yes; AC_DEFINE([HAVE_FT2], 1, [Define this if you have FreeType2 library])])
+  PACKAGES="$PACKAGES freetype2"
 
   dnl fontconfig support
   AS_IF([test "${SYS}" != "mingw32"], [
     AS_IF([test "x$with_fontconfig" != "xno"], [
       PKG_CHECK_MODULES([FONTCONFIG], [fontconfig],
         [with_fontconfig=yes; AC_DEFINE([HAVE_FONTCONFIG], 1, [Define this if you have fontconfig library])])
+      PACKAGES="$PACKAGES fontconfig"
     ])
   ],[
     FONTCONFIG_LIBS="-lgdi32"
@@ -268,6 +271,7 @@ AC_SUBST(BDJAVA_CFLAGS)
 AC_CONFIG_FILES([Makefile src/libbluray.pc src/libbluray/bluray-version.h])
 AC_OUTPUT
 
+AC_SUBST([PACKAGES])
 
 dnl ---------------------------------------------
 dnl Some infos:
diff --git a/src/libbluray.pc.in b/src/libbluray.pc.in
index 2fb51bb5..d6a34b1e 100644
--- a/src/libbluray.pc.in
+++ b/src/libbluray.pc.in
@@ -7,5 +7,6 @@ Name: libbluray
 Description: library supporting Blu-ray playback
 Version: @PACKAGE_VERSION@
 Libs: -L${libdir} -lbluray
-Libs.private: @DLOPEN_LIBS@ @LIBXML2_LIBS@ @FT2_LIBS@ @FONTCONFIG_LIBS@
+Libs.private: @DLOPEN_LIBS@ @FONTCONFIG_LIBS@
+Requires.private: @PACKAGES@
 Cflags: -I${includedir}



More information about the libbluray-devel mailing list