Control: tags -1 + patch

With the attached patch I was able to compile brutalchess
without freetype-config, by using pkg-config instead.
diff -Nru brutalchess-0.5.2+dfsg/debian/control brutalchess-0.5.2+dfsg/debian/control
--- brutalchess-0.5.2+dfsg/debian/control	2015-12-21 00:45:58.000000000 +0100
+++ brutalchess-0.5.2+dfsg/debian/control	2015-12-21 00:43:32.000000000 +0100
@@ -13,6 +13,7 @@
  libsdl-image1.2-dev,
  libxi-dev,
  libxmu-dev,
+ pkg-config,
  sharutils
 Standards-Version: 3.9.6
 Homepage: http://brutalchess.sf.net/
diff -Nru brutalchess-0.5.2+dfsg/debian/patches/series brutalchess-0.5.2+dfsg/debian/patches/series
--- brutalchess-0.5.2+dfsg/debian/patches/series	2015-12-21 00:45:58.000000000 +0100
+++ brutalchess-0.5.2+dfsg/debian/patches/series	2015-12-21 00:43:32.000000000 +0100
@@ -5,3 +5,4 @@
 05_use_our_fonts.diff
 06_gcc-4.7.patch
 disable-quake-pieces.patch
+use-pkg-config.patch
diff -Nru brutalchess-0.5.2+dfsg/debian/patches/use-pkg-config.patch brutalchess-0.5.2+dfsg/debian/patches/use-pkg-config.patch
--- brutalchess-0.5.2+dfsg/debian/patches/use-pkg-config.patch	1970-01-01 01:00:00.000000000 +0100
+++ brutalchess-0.5.2+dfsg/debian/patches/use-pkg-config.patch	2015-12-21 00:43:32.000000000 +0100
@@ -0,0 +1,15 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Use pkg-config instead of freetype-config for finding freetype2
+Bug-Debian: https://bugs.debian.org/892337
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -54,7 +54,7 @@
+ CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
+ LIBS="$LIBS $SDL_LIBS"
+ 
+-AC_CHECK_FT2
++PKG_CHECK_MODULES([FT2], [freetype2])
+ CFLAGS="$CFLAGS $FT2_CFLAGS"
+ CXXFLAGS="$CXXFLAGS $FT2_CFLAGS"
+ LIBS="$LIBS $FT2_LIBS"

Attachment: signature.asc
Description: PGP signature



Reply via email to