Bug#634369: ia32-libs: cannot build wine - missing freetype

2012-06-08 Thread Nicolas Le Cam
Package: ia32-libs-dev
Followup-For: Bug #634369

Since commit a37f74f5adec, included in wine 1.5.2, wine uses pkg-config
rather than freetype-config which fixes the problem with ia32-libs.

Nicolas Le Cam

From a37f74f5adec8cd3f924fc96e083a66219086091 Mon Sep 17 00:00:00 2001
From: Nicolas Le Cam niko.le...@gmail.com
Date: Sat, 7 Apr 2012 22:46:58 +0200
Subject: [PATCH] configure.ac: Prefer pkg-config over freetype-config.

---
 configure|   16 +++-
 configure.ac |   14 ++
 2 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/configure b/configure
index 3e6e777..5b0dcba 100755
--- a/configure
+++ b/configure
@@ -10262,7 +10262,12 @@ fi
 
 if test x$with_freetype != xno
 then
-for ac_prog in freetype-config freetype2-config
+if test $PKG_CONFIG != false
+then
+ac_freetype_incl=`$PKG_CONFIG --cflags freetype2 2/dev/null`
+ac_freetype_libs=`$PKG_CONFIG --libs freetype2 2/dev/null`
+else
+for ac_prog in freetype-config freetype2-config
 do
   # Extract the first word of $ac_prog, so it can be a program name with 
args.
 set dummy $ac_prog; ac_word=$2
@@ -10305,10 +10310,11 @@ fi
 done
 test -n $ft_devel || ft_devel=no
 
-if test $ft_devel != no
-then
-ac_freetype_incl=`$ft_devel --cflags`
-ac_freetype_libs=`$ft_devel --libs`
+if test $ft_devel != no
+then
+ac_freetype_incl=`$ft_devel --cflags`
+ac_freetype_libs=`$ft_devel --libs`
+fi
 fi
 ac_freetype_libs=${ac_freetype_libs:--lfreetype}
 { $as_echo $as_me:${as_lineno-$LINENO}: checking for -lfreetype 5
diff --git a/configure.ac b/configure.ac
index 667d725..a57f133 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1384,11 +1384,17 @@ WINE_NOTICE_WITH(cms,[test 
$ac_cv_lib_lcms_cmsOpenProfileFromFile != yes],
 dnl  Check for FreeType 2 
 if test x$with_freetype != xno
 then
-AC_CHECK_PROGS(ft_devel,[freetype-config freetype2-config],no)
-if test $ft_devel != no
+if test $PKG_CONFIG != false
 then
-ac_freetype_incl=`$ft_devel --cflags`
-ac_freetype_libs=`$ft_devel --libs`
+ac_freetype_incl=`$PKG_CONFIG --cflags freetype2 2/dev/null`
+ac_freetype_libs=`$PKG_CONFIG --libs freetype2 2/dev/null`
+else
+AC_CHECK_PROGS(ft_devel,[freetype-config freetype2-config],no)
+if test $ft_devel != no
+then
+ac_freetype_incl=`$ft_devel --cflags`
+ac_freetype_libs=`$ft_devel --libs`
+fi
 fi
 ac_freetype_libs=${ac_freetype_libs:--lfreetype}
 
WINE_CHECK_SONAME(freetype,FT_Init_FreeType,[ft_lib=yes],[ft_lib=no],[$ac_freetype_libs])
-- 
1.7.2.5



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#634369: ia32-libs: cannot build wine - missing freetype

2011-07-18 Thread Michal Suchanek
Package: ia32-libs
Version: 20110609
Severity: normal


Wine is not buildable on Debian.

Works on Ubuntu.


-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'testing'), (410, 'unstable'), (200, 
'experimental'), (111, 'oldstable'), (107, 'natty-updates'), (107, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-rc3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ia32-libs depends on:
ii  dpkg   1.15.8.11 Debian package management system
ii  lib32asound2   1.0.24.1-0ubuntu5 shared library for ALSA applicatio
ii  lib32bz2-1.0   1.0.5-6   high-quality block-sorting file co
ii  lib32gcc1  1:4.6.1-1 GCC support library (32 bit Versio
ii  lib32ncurses5  5.7+20100313-5shared libraries for terminal hand
ii  lib32stdc++6   4.4.5-8   The GNU Standard C++ Library v3 (3
ii  lib32v4l-0 0.8.0-1   Collection of video4linux support 
ii  lib32z11:1.2.3.4.dfsg-3  compression library - 32 bit runti
ii  libc6-i386 2.11.2-10 Embedded GNU C Library: 32-bit sha

ia32-libs recommends no packages.

Versions of packages ia32-libs suggests:
pn  ia32-libs-gtk none (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org