CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
qt4: update to 4.8.4
[ports/opt-arm.git] / qt4 / Pkgfile
index 18a07aa3fb2c521b2e33890c5f774090f3bfb3e6..f0f8f3a73ff587881a7b2f86214740b453eb5ad6 100644 (file)
@@ -1,41 +1,42 @@
 # Description: Qt Free Edition
 # URL: http://www.trolltech.com
-# Packager: Johannes Winkelmann, jw at smts dot ch
 # Maintainer: Jose V Beneyto, sepen at crux dot nu
+# Packager: Johannes Winkelmann, jw at smts dot ch
 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus
 
 name=qt4
-version=4.7.3
+version=4.8.4
 release=1
-source=(ftp://ftp.trolltech.com/pub/qt/source/qt-everywhere-opensource-src-$version.tar.gz)
+source=(http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-$version.tar.gz)
 
 build () {
   cd qt-everywhere-opensource-src-$version
-  # We avoid thumb instructions over CFLAGS
-  export CFLAGS="$(echo $CFLAGS | sed -e 's/\-mthumb//')"
-  sed -i -e 's|X11R6/||g' -e "s/\-mthumb//" mkspecs/*/*.conf
-  export CXXFLAGS="$CFLAGS"
+
+  sed -i 's|X11R6/||g' mkspecs/*/*.conf
   sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
   sed -i "s|INSTALLS += translations||" projects.pro
+  sed -i 's|"$COMPILER" -c|$COMPILER -c|' config.tests/unix/fvisibility.test
+
   ./configure -prefix /usr/share/qt4 \
               -bindir /usr/share/qt4/bin \
               -headerdir /usr/share/qt4/include \
               -libdir /usr/share/qt4/lib \
               -plugindir /usr/share/qt4/plugins \
               -platform linux-g++ -release -shared -sm \
-              -nis -verbose -qt-gif -system-zlib \
+              -nis -verbose -system-zlib \
               -system-lib{png,jpeg} -xmlpatterns \
               -no-{cups,fast,nas-sound,phonon} \
               -x{cursor,inerama,kb,randr,render} \
               -nomake demos -nomake examples -nomake docs \
-              -no-separate-debug-info -opensource -confirm-license
+              -no-separate-debug-info -opensource -confirm-license \
+              -no-pch
 
-  make
+  LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib" make
   make INSTALL_ROOT=$PKG install
 
   rm -rf `find $PKG/usr/share/qt4/mkspecs/* | \
-    grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
+       grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
   rm -f $PKG/usr/share/qt4/mkspecs/linux-g++/linux-g++
   rm -rf $PKG/usr/share/qt4/mkspecs/features/{mac,win32}
   rm -rf $PKG/usr/share/qt4/mkspecs/common/mac*
@@ -55,7 +56,7 @@ build () {
     $PKG/usr/lib/pkgconfig/*.pc
 
   for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic \
-    pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
+      pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
     ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f
   done
 }