# HG changeset patch # User Volker Grabsch # Date 1255140953 -7200 # Node ID c8954f97a8eabb41d6dc62255a48534ac5bdb567 # Parent fd71d3c6e621b944c23aa58825f877145d04a467 portability fix for MacOS X for package qt diff -r fd71d3c6e621 -r c8954f97a8ea src/qt.mk --- a/src/qt.mk Sat Oct 10 03:55:22 2009 +0200 +++ b/src/qt.mk Sat Oct 10 04:15:53 2009 +0200 @@ -64,6 +64,11 @@ $(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'