1
0
forked from ports/opt

qt4: updated to 4.6.1 and cleaned up

This commit is contained in:
Jose V Beneyto 2010-02-09 11:12:44 +01:00
parent ca631eb4a5
commit c51ed21d2a
3 changed files with 3069 additions and 2468 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
3988cf9af68be2df8a8000ede231de9b qt-x11-opensource-src-4.5.3.tar.gz
0542a4be6425451ab5f668c6899cac36 qt-everywhere-opensource-src-4.6.1.tar.gz

View File

@ -5,57 +5,55 @@
# Depends on: fontconfig glib libmng libpng mesa3d xorg-libxcursor xorg-libxi xorg-libxinerama xorg-libxrandr dbus
name=qt4
version=4.5.3
version=4.6.1
release=1
source=(ftp://ftp.trolltech.com/pub/qt/source/qt-x11-opensource-src-$version.tar.gz)
source=(ftp://ftp.trolltech.com/pub/qt/source/qt-everywhere-opensource-src-$version.tar.gz)
build () {
cd qt-x11-opensource-src-$version
cd qt-everywhere-opensource-src-$version
sed -i 's|X11R6/||g' mkspecs/*/*.conf
sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
sed -i "s|INSTALLS += translations||" projects.pro
./configure -prefix /usr/share/qt4 \
-bindir /usr/share/qt4/bin \
-headerdir /usr/include/qt4 \
-libdir /usr/lib \
-plugindir /usr/lib/qt4 \
-platform linux-g++ -release -shared -sm \
-nis -verbose -qt-gif -system-zlib \
-system-lib{png,jpeg} \
-no-{cups,fast,exceptions,nas-sound,phonon} \
-x{cursor,inerama,kb,randr,render} \
-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 \
-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
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*
rm -rf $PKG/usr/share/qt4/phrasebooks
ln -s ../../include/qt4 $PKG/usr/share/qt4/include
ln -s ../../lib $PKG/usr/share/qt4/lib
ln -s ../../lib/qt $PKG/usr/share/qt4/plugins
ln -s linux-g++ $PKG/usr/share/qt4/mkspecs/default
install -d $PKG/{etc/ld.so.conf.d,usr/{bin,lib,include}}
echo "/usr/share/qt4/lib" > $PKG/etc/ld.so.conf.d/qt4.conf
sed -i -e "s|-L$SRC/qt-x11-opensource-src-$version/lib ||g" \
-e "s|$SRC/qt-x11-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
$PKG/usr/lib/pkgconfig/*.pc
mkdir -p $PKG/usr/bin
cd $PKG/usr/bin
for f in assistant designer linguist lrelease lupdate moc qmake qtconfig uic
do
ln -s ../share/qt4/bin/$f $f
done
ln -s ../../share/qt4/include $PKG/usr/include/qt4
ln -s ../../share/qt4/lib $PKG/usr/lib/qt4
ln -s linux-g++ $PKG/usr/share/qt4/mkspecs/default
for f in pixeltool qdbus qdbuscpp2xml qdbusxml2cpp qt3to4 rcc uic3; do
ln -s ../share/qt4/bin/$f $f
mv $PKG/usr/share/qt4/lib/pkgconfig $PKG/usr/lib
sed -i -e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
-e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt4/bin|g" \
$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
ln -s ../share/qt4/bin/$f $PKG/usr/bin/$f
done
}