portability fix for MacOS X for package qt

This commit is contained in:
Volker Grabsch 2009-10-10 04:15:53 +02:00
parent 4d5c3964b6
commit 1328479859
1 changed files with 5 additions and 0 deletions

View File

@ -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'