summaryrefslogtreecommitdiffstats
path: root/kde3/qt3/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-09-30 00:43:30 +0200
committertnut <thierryn1 at hispeed dot ch>2010-09-30 00:43:30 +0200
commit9801cfbd9009368306f8de2efab826c1940136fe (patch)
tree2f4e8827cae885fadbfe367ccb3fc317eeeef55b /kde3/qt3/Pkgfile
parent6793faa0cdadd46f16f7257294a4da916e16761b (diff)
downloadnutyx-extra-9801cfbd9009368306f8de2efab826c1940136fe.tar.gz
nutyx-extra-9801cfbd9009368306f8de2efab826c1940136fe.tar.bz2
nutyx-extra-9801cfbd9009368306f8de2efab826c1940136fe.tar.xz
nutyx-extra-9801cfbd9009368306f8de2efab826c1940136fe.zip
ajout qt3#3.3.8b-1
Diffstat (limited to 'kde3/qt3/Pkgfile')
-rw-r--r--kde3/qt3/Pkgfile45
1 files changed, 45 insertions, 0 deletions
diff --git a/kde3/qt3/Pkgfile b/kde3/qt3/Pkgfile
new file mode 100644
index 000000000..4abcd180b
--- /dev/null
+++ b/kde3/qt3/Pkgfile
@@ -0,0 +1,45 @@
+# 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
+
+name=qt3
+version=3.3.8b
+release=1
+source=( ftp://ftp.trolltech.com/qt/source/qt-x11-free-$version.tar.gz \
+ qt-3.3.8b-png14-1.patch )
+
+build() {
+ cd qt-x11-free-$version
+ patch -Np1 -i ../qt-3.3.8b-png14-1.patch
+ export QTDIR=$PWD
+ sed -i '/QMAKE_RPATH/d' mkspecs/linux*/qmake.conf
+ export PATH=$PWD/bin:$PATH
+ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`pwd`/lib"
+
+ ./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 -j2
+ 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 -j2
+ 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 -rf $PKG/opt/qt/share/doc
+}