summaryrefslogtreecommitdiffstats
path: root/src/qt.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-10-10 02:15:53 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-10-10 02:15:53 (GMT)
commit1328479859c8fd51f0c6c45084d53bf4c5594657 (patch)
treeadcd2fdb29fd80e8a7856dd2fb61a093292b5dc8 /src/qt.mk
parent4d5c3964b68be6f7e882783d5139d5b9d7a30c28 (diff)
downloadmxe-1328479859c8fd51f0c6c45084d53bf4c5594657.zip
mxe-1328479859c8fd51f0c6c45084d53bf4c5594657.tar.gz
mxe-1328479859c8fd51f0c6c45084d53bf4c5594657.tar.bz2
portability fix for MacOS X for package qt
Diffstat (limited to 'src/qt.mk')
-rw-r--r--src/qt.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt.mk b/src/qt.mk
index f58a86a..9c0c0b3 100644
--- a/src/qt.mk
+++ b/src/qt.mk
@@ -64,6 +64,11 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)'.native -j $(JOBS) sub-rcc
$(MAKE) -C '$(1)'.native -j $(JOBS) sub-uic
+ # rebuild qmake to use "-unix" as default and to use the correct "ar" command
+ $(SED) 's,\(Option::TARG_MODE Option::target_mode = Option::TARG_\)[A-Z_]*,\1UNIX_MODE,' -i '$(1)'.native/qmake/option.cpp
+ $(SED) 's,"ar -M,"$(TARGET)-ar -M,' -i '$(1)'.native/qmake/generators/win32/mingw_make.cpp
+ $(MAKE) -C '$(1)'.native/qmake -j $(JOBS)
+
# install the native tools manually
$(INSTALL) -m755 '$(1)'.native/bin/moc '$(PREFIX)/bin/$(TARGET)-moc'
$(INSTALL) -m755 '$(1)'.native/bin/rcc '$(PREFIX)/bin/$(TARGET)-rcc'