several bugfixes for package qt to ensure that "i686-pc-mingw32-qmake ; make" will work

pull/13/head
Volker Grabsch 15 years ago
parent 2737dcb9d5
commit 28aecafe83

@ -1,4 +1,5 @@
Copyright (C) 2009 Mark Brand
Volker Grabsch
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@ -170,10 +171,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-QMAKE_IDL = midl
-QMAKE_LIB = ar -ru
-QMAKE_RC = windres
+QMAKE_MOC = moc
+QMAKE_UIC = uic
+QMAKE_IDC = idc
+QMAKE_RCC = rcc
+#QMAKE_IDC = HOSTPLATFORMPREFIX-idc
+QMAKE_MOC = HOSTPLATFORMPREFIX-moc
+QMAKE_RCC = HOSTPLATFORMPREFIX-rcc
+QMAKE_UIC = HOSTPLATFORMPREFIX-uic
+
+#QMAKE_IDL = midl
+QMAKE_LIB = HOSTPLATFORMPREFIX-ar -ru

@ -45,10 +45,6 @@ define $(PKG)_BUILD
# of the patched directory here, it is important that the changes
# in the patches do not break the native build.
# Bogus install bin directory for the DLLs
# Should stay empty because of -prefix-install
mkdir '$(1)'/bindirsink
# First configure a minimal native version of Qt
# for moc, rcc, uic and qmake
cp -a '$(1)' '$(1)'.native
@ -57,7 +53,6 @@ define $(PKG)_BUILD
-confirm-license \
-prefix '$(PREFIX)/$(TARGET)' \
-prefix-install \
-bindir '$(1)'/bindirsink \
-fast \
-nomake demos \
-nomake examples \
@ -70,7 +65,12 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)'.native -j $(JOBS) sub-moc
$(MAKE) -C '$(1)'.native -j $(JOBS) sub-rcc
$(MAKE) -C '$(1)'.native -j $(JOBS) sub-uic
$(MAKE) -C '$(1)'.native clean
# 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'
$(INSTALL) -m755 '$(1)'.native/bin/uic '$(PREFIX)/bin/$(TARGET)-uic'
$(INSTALL) -m755 '$(1)'.native/bin/qmake '$(PREFIX)/bin/$(TARGET)-qmake'
# Trick the build system into using native tools
ln -s '$(1)'.native/bin/{moc,rcc,uic,qmake} '$(1)'/bin/
@ -144,9 +144,6 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(TARGET)-ranlib '$(1)'/lib/*.a
rm -rf '$(PREFIX)/$(TARGET)/mkspecs'
$(MAKE) -C '$(1)' install
# install native tools manually
$(INSTALL) -m755 '$(1)'.native/bin/{moc,rcc,uic} '$(PREFIX)/$(TARGET)/bin/'
$(INSTALL) -m755 '$(1)'.native/bin/qmake '$(PREFIX)/bin/$(TARGET)-qmake'
endef

Loading…
Cancel
Save