qt5: 5.3.1 -> 5.3.2

This commit is contained in:
Danny Rawlins 2014-09-28 17:40:04 +10:00
parent 1fb43f9881
commit 04c0a9109a
4 changed files with 2362 additions and 9649 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1 @@
f9a24a0d5645efa0715b6ff0fa13d60f qt-everywhere-opensource-src-5.3.1.tar.xz
7ea073b55d232467cc0c7098b66ad216 qt5-5.3.1.patch
c4e893678e3d8388ab04d059523d1d78 qt-everywhere-opensource-src-5.3.2.tar.xz

View File

@ -5,16 +5,13 @@
# Depends on: dbus gst-plugins-base gst-plugins-base-compat libmng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr xorg-xcb-util-image xorg-xcb-util-wm xorg-xcb-util-keysyms
name=qt5
version=5.3.1
version=5.3.2
release=1
source=(http://download.qt-project.org/official_releases/qt/${version%.*}/$version/single/qt-everywhere-opensource-src-$version.tar.xz
$name-$version.patch)
source=(http://download.qt-project.org/official_releases/qt/${version%.*}/$version/single/qt-everywhere-opensource-src-$version.tar.xz)
build() {
cd qt-everywhere-opensource-src-$version
patch -p1 -i $SRC/$name-$version.patch
# Respect system CXX
[ "$CXX" ] || CXX=g++
sed -i "/^QMAKE_CXX\s/s|=.*|= $CXX|" qtbase/mkspecs/common/g++-base.conf
@ -29,30 +26,27 @@ build() {
# Respect system LDFLAGS
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" qtbase/mkspecs/common/gcc-base.conf
# Don't use RPATH
sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" qtbase/mkspecs/common/gcc-base-unix.conf
# Fix quoting bug
sed -i 's|"$COMPILER" -c|$COMPILER -c|' qtbase/config.tests/unix/fvisibility.test
export QTDIR="$PWD"
export LD_LIBRARY_PATH="$QTDIR/qtbase/lib:$QTDIR/qttools/lib:$LD_LIBRARY_PATH"
export QT_PLUGIN_PATH="$QTDIR/qtbase/plugins"
./configure -prefix /usr/share/qt5 \
-bindir /usr/share/qt5/bin \
-headerdir /usr/share/qt5/include \
-libdir /usr/share/qt5/lib \
-libexecdir /usr/share/qt5/lib \
-plugindir /usr/share/qt5/plugins \
-platform linux-g++ -release -shared -sm \
-nis -verbose -system-zlib \
-sysconfdir /usr/etc/xdg \
-openssl-linked -dbus-linked \
-system-lib{png,jpeg} -system-sqlite \
-system-lib{png,jpeg} -system-{zlib,sqlite} \
-no-cups -optimized-qmake \
-x{cursor,inerama,kb,randr,render} \
-nomake examples \
-no-separate-debug-info -opensource -confirm-license
export QTDIR="$PWD"
export LD_LIBRARY_PATH="$QTDIR/qtbase/lib:$QTDIR/qttools/lib:$LD_LIBRARY_PATH"
export QT_PLUGIN_PATH="$QTDIR/qtbase/plugins"
-no-separate-debug-info -no-strip -shared -no-rpath \
-opensource -confirm-license -release -reduce-relocations
make
make INSTALL_ROOT=$PKG install
@ -61,12 +55,12 @@ build() {
find $PKG/usr/share/qt5/lib -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
sed -e "s|$PWD/qtbase|/usr/lib/qt5|g" \
sed -e "s|$PWD/qtbase|/usr/share/qt5/lib|g" \
-i $PKG/usr/share/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri
# Remove unnecessary files
rm -rf `find $PKG/usr/share/qt5/mkspecs/* | \
grep -v linux-g++ | grep -v common | grep -v pri | grep -v features`
rm -rf $(find $PKG/usr/share/qt5/mkspecs/* | \
egrep -v '(linux-g++|common|modules|pri|features)')
rm -f $PKG/usr/share/qt5/mkspecs/linux-g++/linux-g++
rm -rf $PKG/usr/share/qt5/mkspecs/features/{mac,win32}
@ -85,11 +79,12 @@ build() {
mv $PKG/usr/share/qt5/lib/pkgconfig $PKG/usr/lib
# Fix paths
sed -i -e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
sed \
-e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
-e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt5/bin|g" \
$PKG/usr/lib/pkgconfig/*.pc
-i $PKG/usr/lib/pkgconfig/*.pc
# Install symlinks
# Install useful symlinks
install -d $PKG/usr/bin
for b in $PKG/usr/share/qt5/bin/*; do
ln -s /usr/share/qt5/bin/$(basename $b) $PKG/usr/bin/$(basename $b)-qt5

File diff suppressed because it is too large Load Diff