[med-svn] [praat] 01/02: d/p/use-gtk-pkg-config.patch: New patch
Rafael Laboissiere
rafael at debian.org
Sat Aug 12 14:07:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
rafael pushed a commit to branch master
in repository praat.
commit dea3201b924989fe47fb39d7a1c0997f6e850fa6
Author: Rafael Laboissiere <rafael at debian.org>
Date: Sat Aug 12 09:17:51 2017 -0300
d/p/use-gtk-pkg-config.patch: New patch
---
debian/patches/series | 1 +
debian/patches/use-gtk-pkg-config.patch | 25 +++++++++++++++++++++++++
2 files changed, 26 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index 9512a9e..d6fba6e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
use-ldflags.patch
remove-time-date-macros.patch
tensor-h-filename.patch
+use-gtk-pkg-config.patch
diff --git a/debian/patches/use-gtk-pkg-config.patch b/debian/patches/use-gtk-pkg-config.patch
new file mode 100644
index 0000000..963c0c6
--- /dev/null
+++ b/debian/patches/use-gtk-pkg-config.patch
@@ -0,0 +1,25 @@
+Description: Use Gtk's pkg-config for setting CFLAGS and LDFLAGS
+Author: Rafael Laboissiere <rafael at debian.org>
+Forwarded: https://github.com/praat/praat/pull/416
+Last-Update: 2017-08-12
+
+--- praat-6.0.30.orig/makefiles/makefile.defs.linux.nogui
++++ praat-6.0.30/makefiles/makefile.defs.linux.nogui
+@@ -7,7 +7,7 @@ CC = gcc -std=gnu99
+
+ CXX = g++ -std=c++11
+
+-CFLAGS = -DNO_GUI -DNO_NETWORK -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -DUNIX -Dlinux -Werror=missing-prototypes -Werror=implicit -Wreturn-type -Wunused -Wunused-parameter -Wuninitialized -O3 -g1 -pthread
++CFLAGS = -DNO_GUI -DNO_NETWORK -D_FILE_OFFSET_BITS=64 `pkg-config --cflags gtk+-2.0` -DUNIX -Dlinux -Werror=missing-prototypes -Werror=implicit -Wreturn-type -Wunused -Wunused-parameter -Wuninitialized -O3 -g1 -pthread
+
+ CXXFLAGS = $(CFLAGS) -Wshadow
+
+@@ -15,7 +15,7 @@ LINK = g++
+
+ EXECUTABLE = praat_nogui
+
+-LIBS = -lpangocairo-1.0 -lcairo -lpango-1.0 -lgobject-2.0 -lm -lpthread
++LIBS = `pkg-config --libs gtk+-2.0` -lm -lpthread
+
+ AR = ar
+ RANLIB = ls
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/praat.git
More information about the debian-med-commit
mailing list