]> git.sesse.net Git - vlc/commitdiff
contrib: qt4: only disable cde, motif, plastique and cleanlooks style
authorRafaël Carré <funman@videolan.org>
Thu, 10 Nov 2011 22:46:14 +0000 (17:46 -0500)
committerRafaël Carré <funman@videolan.org>
Thu, 10 Nov 2011 22:46:14 +0000 (17:46 -0500)
This keeps windows and mac styles (for mac builds)

contrib/src/qt4/rules.mak
contrib/src/qt4/styles.patch [new file with mode: 0644]

index 3aa2e246073e34f48e23565b4679cd138a3a66f2..973fcc26bf5c2c3841b452fb19bd0cc528554643 100644 (file)
@@ -20,7 +20,7 @@ $(TARBALLS)/qt-$(QT4_VERSION).tar.gz:
 qt4: qt-$(QT4_VERSION).tar.gz .sum-qt4
        $(UNPACK)
        patch -p0 < $(SRC)/qt4/cross.patch
-       sed -i.orig s/'QMakeVar add styles "cde mac motif plastique cleanlooks windows"'// qt-everywhere-opensource-src-4.7.4/configure
+       patch -p0 < $(SRC)/qt4/styles.patch
        mv qt-everywhere-opensource-src-4.7.4 $@ && touch $@
 
 XTOOLS := XCC="$(CC)" XCXX="$(CXX)" XSTRIP="$(STRIP)" XAR="$(AR)"
diff --git a/contrib/src/qt4/styles.patch b/contrib/src/qt4/styles.patch
new file mode 100644 (file)
index 0000000..aa9a307
--- /dev/null
@@ -0,0 +1,11 @@
+--- qt-everywhere-opensource-src-4.7.4/configure.orig  2011-11-10 17:44:02.427883340 -0500
++++ qt-everywhere-opensource-src-4.7.4/configure       2011-11-10 17:44:13.915940309 -0500
+@@ -584,7 +584,7 @@
+ rm -f "$outpath/config.tests/.qmake.cache"
+ cp "$QMAKE_VARS_FILE" "$outpath/config.tests/.qmake.cache"
+-QMakeVar add styles "cde mac motif plastique cleanlooks windows"
++QMakeVar add styles "mac windows"
+ QMakeVar add decorations "default windows styled"
+ QMakeVar add mouse-drivers "pc"
+ if [ "$UNAME_SYSTEM" = "Linux" ] ; then