summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cowgill <jcowgill@debian.org>2018-05-16 11:30:29 +0100
committerJames Cowgill <jcowgill@debian.org>2018-05-16 11:34:09 +0100
commitf15c56ca20da2d9809c776a219396c70e84f9b10 (patch)
tree151920ed8d5cca2860652f424e1fef45737b1f9f
parent53715dd9061df6012c84f44ce4058e84522e6c4f (diff)
Add patch to remove unnecessary dependencies from pkg-config files
-rw-r--r--debian/patches/06_pkgconfig-libs-private.patch38
-rw-r--r--debian/patches/series1
2 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches/06_pkgconfig-libs-private.patch b/debian/patches/06_pkgconfig-libs-private.patch
new file mode 100644
index 0000000..050453b
--- /dev/null
+++ b/debian/patches/06_pkgconfig-libs-private.patch
@@ -0,0 +1,38 @@
+Description: Remove *.private fields from pkg-config files
+ This avoids unnecessary dependencies which are only needed when building static
+ libraries. It also removes the unused dependency on glu.
+Author: James Cowgill <jcowgill@debian.org>
+Forwarded: not-needed
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tools/pkg-config/sfml-audio.pc.in
++++ b/tools/pkg-config/sfml-audio.pc.in
+@@ -8,8 +8,5 @@ Description: The Simple and Fast Multime
+ URL: http://www.sfml-dev.org
+ Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@
+ Requires: sfml-system
+-Requires.private: openal, vorbisenc, vorbisfile, vorbis, ogg, flac
+ Libs: -L${libdir} -lsfml-audio
+-# openal may be a system framework
+-Libs.private: @OPENAL_LIBRARY@
+ Cflags: -I${includedir}
+--- a/tools/pkg-config/sfml-graphics.pc.in
++++ b/tools/pkg-config/sfml-graphics.pc.in
+@@ -8,8 +8,5 @@ Description: The Simple and Fast Multime
+ URL: http://www.sfml-dev.org
+ Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@
+ Requires: sfml-window
+-Requires.private: sfml-system, freetype2
+ Libs: -L${libdir} -lsfml-graphics
+-# gl may not be in pkg-config
+-Libs.private: @OPENGL_gl_LIBRARY@ @OPENGL_glu_LIBRARY@
+ Cflags: -I${includedir}
+--- a/tools/pkg-config/sfml-window.pc.in
++++ b/tools/pkg-config/sfml-window.pc.in
+@@ -9,6 +9,4 @@ URL: http://www.sfml-dev.org
+ Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@
+ Requires: sfml-system
+ Libs: -L${libdir} -lsfml-window
+-# gl may not be in pkg-config
+-Libs.private: @OPENGL_gl_LIBRARY@ @OPENGL_glu_LIBRARY@
+ Cflags: -I${includedir}
diff --git a/debian/patches/series b/debian/patches/series
index 2cb92b1..51f1523 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
03_pkgconfig-cleanup.patch
04_pkgconfig-freebsd.patch
05_cmake-config-LIB_SIFFIX.patch
+06_pkgconfig-libs-private.patch