Maemo debianization.
[wpasupplicant] / debian / patches.debian / 05_qmake_version_makefile.patch
1 From: Kel Modderman <kel@otaku42.de>
2 Reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463547
3 Description: fix FTBFS if both qt3 and qt4 are installed
4  invoke versioned qmake binary when preparing the Makefile for
5  wpa_gui/wpa_gui-qt4 or else a failure to build from source can be possible
6  when more than one QT version is installed.
7
8 --- a/wpa_supplicant/Makefile
9 +++ b/wpa_supplicant/Makefile
10 @@ -1107,13 +1107,13 @@ windows-bin: $(WINALL)
11         $(STRIP) $(WINALL)
12  
13  wpa_gui/Makefile:
14 -       qmake -o wpa_gui/Makefile wpa_gui/wpa_gui.pro 
15 +       qmake-qt3 -o wpa_gui/Makefile wpa_gui/wpa_gui.pro
16  
17  wpa_gui: wpa_gui/Makefile
18         $(MAKE) -C wpa_gui
19  
20  wpa_gui-qt4/Makefile:
21 -       qmake -o wpa_gui-qt4/Makefile wpa_gui-qt4/wpa_gui.pro 
22 +       qmake-qt4 -o wpa_gui-qt4/Makefile wpa_gui-qt4/wpa_gui.pro
23  
24  wpa_gui-qt4: wpa_gui-qt4/Makefile
25         $(MAKE) -C wpa_gui-qt4