Package: libmediainfo / 0.7.70-1

Drop-copying-of-libzen-s-flags-into-.pc.patch Patch series | download
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
From: Chow Loong Jin <hyperair@debian.org>
Date: Fri, 27 Jan 2012 05:18:44 +0800
Subject: Drop copying of libzen's flags into .pc

Use pkg-config Requires to handle them instead, so that libzen-dev's flags can
be upgraded independently.
---
 Project/GNU/Library/configure.ac       | 1 -
 Project/GNU/Library/libmediainfo.pc.in | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Project/GNU/Library/configure.ac b/Project/GNU/Library/configure.ac
index beb77c6..8a5d599 100755
--- a/Project/GNU/Library/configure.ac
+++ b/Project/GNU/Library/configure.ac
@@ -438,7 +438,6 @@ else
 		else
 			with_zenlib="system"
 			LIBS="$LIBS $(pkg-config --libs libzen)"
-			MediaInfoLib_LIBS="$MediaInfoLib_LIBS $(pkg-config --libs libzen)"
 			MediaInfoLib_LIBS_Static="$MediaInfoLib_LIBS_Static $(pkg-config --variable=LIBS libzen)"
 		fi
 	else
diff --git a/Project/GNU/Library/libmediainfo.pc.in b/Project/GNU/Library/libmediainfo.pc.in
index 1ee9309..43f43cf 100755
--- a/Project/GNU/Library/libmediainfo.pc.in
+++ b/Project/GNU/Library/libmediainfo.pc.in
@@ -9,5 +9,6 @@ la_name=lib@MediaInfoLib_LibName@.la
 Name: libmediainfo
 Version: @PACKAGE_VERSION@
 Description: MediaInfoLib
-Libs: -L@libdir@ -l@MediaInfoLib_LibName@ -lzen -lz -lpthread
+Requires: libzen
+Libs: -L@libdir@ -l@MediaInfoLib_LibName@ -lz -lpthread
 Cflags: -I@includedir@ @MediaInfoLib_CXXFLAGS@