4 QT4_URL := http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-$(QT4_VERSION).tar.gz
7 # FIXME : native win32 build
8 ifdef HAVE_CROSS_COMPILE
14 ifeq ($(call need_pkg,"QtCore QtGui"),)
18 $(TARBALLS)/qt-$(QT4_VERSION).tar.gz:
19 $(call download,$(QT4_URL))
21 .sum-qt4: qt-$(QT4_VERSION).tar.gz
23 qt4: qt-$(QT4_VERSION).tar.gz .sum-qt4
25 patch -p0 < $(SRC)/qt4/tools.diff
28 patch -p0 < $(SRC)/qt4/cross-win64.diff
30 patch -p0 < $(SRC)/qt4/cross-win32.diff
33 mv qt-everywhere-opensource-src-4.7.4 $@ && touch $@
36 for i in qmake moc uic rcc; do ln -sf `which $$i` $</bin/; done # FIXME : we probably need the exact same version of those tools on the host
37 cd $< && ./configure -platform win32-g++ -static -release -fast -no-exceptions -no-stl -no-sql-sqlite -no-qt3support -no-gif -no-libmng -qt-libjpeg -no-libtiff -no-qdbus -no-openssl -no-webkit -sse -no-script -no-multimedia -no-phonon -opensource -no-scripttools -no-opengl -no-script -no-scripttools -no-declarative -no-declarative-debug -opensource -no-s60 -host-little-endian -confirm-license
39 cd $</src/plugins/imageformats/jpeg && make # FIXME
40 # INSTALLING LIBRARIES
41 for lib in QtGui QtCore; \
42 do install -D -- $</lib/lib$${lib}.a "$(PREFIX)/lib/lib$${lib}.a"; \
45 install -D -- $</plugins/imageformats/libqjpeg.a "$(PREFIX)/lib/libqjpeg.a"
46 install -D -- $</plugins/accessible/libqtaccessiblewidgets.a "$(PREFIX)/lib/libqtaccessiblewidgets.a"
47 for codec in cn jp kr tw; \
48 do install -D -- $</plugins/codecs/libq$${codec}codecs.a "$(PREFIX)/lib/libq$${codec}codecs.a"; \
50 # INSTALLING CORE HEADERS
51 cd $</src/corelib; find . -type f -name '*.h' -exec install -D -- "{}" "$(PREFIX)/include/qt4/src/corelib/{}" \;
52 cd $</include/QtCore; find . -maxdepth 1 -type f \( -name '*.h' -o -name 'Q*' \) -exec install -D -s --strip-program="$(abspath $(SRC)/qt4/fix_header.sh)" -- "{}" "$(PREFIX)/include/qt4/QtCore/{}" \;
53 # INSTALLING GUI HEADERS
54 cd $</src/gui; find . -type f -name '*.h' -exec install -D -- "{}" "$(PREFIX)/include/qt4/src/gui/{}" \;
55 cd $</include/QtGui; find . -maxdepth 1 -type f \( -name '*.h' -o -name 'Q*' \) -exec install -D -s --strip-program="$(abspath $(SRC)/qt4/fix_header.sh)" -- "{}" "$(PREFIX)/include/qt4/QtGui/{}" \;
56 # INSTALLING PKGCONFIG FILES
57 cat $(SRC)/qt4/QtCore.pc.in | sed -e s/@@VERSION@@/$(QT4_VERSION)/ | sed -e 's|@@PREFIX@@|$(PREFIX)|' > "$(PREFIX)/lib/pkgconfig/QtCore.pc"
58 cat $(SRC)/qt4/QtGui.pc.in | sed -e s/@@VERSION@@/$(QT4_VERSION)/ | sed -e 's|@@PREFIX@@|$(PREFIX)|' > "$(PREFIX)/lib/pkgconfig/QtGui.pc"