diff options
author | tnut <thierryn1 at hispeed dot ch> | 2011-02-04 19:30:38 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2011-02-04 19:30:38 +0100 |
commit | 7d6e3eb814fc241d31ae05071354dba845a486d2 (patch) | |
tree | 52911dc946e11ba1995af52dc29fb7296ad2b30a /extra/qt3-devel/Pkgfile | |
parent | f0a0a777634d09df6c4bed07b3deb0a5792c6df7 (diff) | |
download | nutyx-pakxe-7d6e3eb814fc241d31ae05071354dba845a486d2.tar.gz nutyx-pakxe-7d6e3eb814fc241d31ae05071354dba845a486d2.tar.bz2 nutyx-pakxe-7d6e3eb814fc241d31ae05071354dba845a486d2.tar.xz nutyx-pakxe-7d6e3eb814fc241d31ae05071354dba845a486d2.zip |
qt3-devel dans extra
Diffstat (limited to 'extra/qt3-devel/Pkgfile')
-rw-r--r-- | extra/qt3-devel/Pkgfile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/extra/qt3-devel/Pkgfile b/extra/qt3-devel/Pkgfile new file mode 100644 index 000000000..137ec2dfd --- /dev/null +++ b/extra/qt3-devel/Pkgfile @@ -0,0 +1,55 @@ +# Description: Librairie très complète de chez Trolltech +# URL: http://trolltech.com/products/qt/qt3 +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: xorg, libjpeg, libmng, libcups, qt3 + +name=qt3-devel +version=3.3.8b +release=2 +source=( ftp://ftp.trolltech.com/qt/source/qt-x11-free-$version.tar.gz \ + http://nutyx.meticul.eu/files/patchs/qt3/qt-3.3.8b-png14-1.patch \ + http://nutyx.meticul.eu/files/patchs/qt3/qt-patches.tar.bz2 \ + http://nutyx.meticul.eu/files/patchs/qt3/qt-copy-kde-patches.tar.bz2\ + http://nutyx.meticul.eu/files/patchs/qt3/utf8-bug-qt3.diff) + +build() { + cd qt-x11-free-$version + for i in ../qt-copy-kde-patches/* + do patch -Np0 -i $i + done + for i in ../qt-patches/* + do patch -Np1 -i $i + done + patch -Np1 -i ../qt-3.3.8b-png14-1.patch +# patch -Np0 -i ../utf8-bug-qt3.diff + export QTDIR=$PWD + export PATH=$PWD/bin:$PATH + + echo "yes"|./configure -prefix /opt/qt \ + -docdir /opt/qt/share/doc/qt \ + -sysconfdir /etc/qt3 \ + -qt-gif \ + -system-zlib \ + -system-libpng \ + -system-libjpeg \ + -system-libmng \ + -plugin-imgfmt-png \ + -plugin-imgfmt-jpeg \ + -plugin-imgfmt-mng \ + -no-exceptions \ + -thread \ + -tablet + make src-moc sub-src + find . -name Makefile -exec sed -i "s|,/usr/lib|,`pwd`/lib|" {} \; + find . -name Makefile -exec sed -i "s|,/opt/qt/lib|,`pwd`/lib|" {} \; + make sub-tools + make INSTALL_ROOT=$PKG install + + # correct qmake's PRL files (the libraries were placed into + # /usr/lib*/ and + # not in our temporary build directory ./work/src/..) + sed -i "s|-L$SRC/qt-x11-free-$version/lib ||g" $PKG/opt/qt/lib/*.prl + rm $PKG/opt/qt/lib/libqt-mt.* + rm -r $PKG/opt/qt/plugins/imageformats +} |