summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:42:34 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:42:34 +0200
commit614bd173b5fec99690461ab3fd5b8924f0bfed3a (patch)
tree21eb6855637e9c795bde7a937d9988cf9d6a0ae2
parenta1edc5343646b0d9ac6d49947ccb1d17413f1509 (diff)
downloadnutyx-extra-614bd173b5fec99690461ab3fd5b8924f0bfed3a.tar.gz
nutyx-extra-614bd173b5fec99690461ab3fd5b8924f0bfed3a.tar.bz2
nutyx-extra-614bd173b5fec99690461ab3fd5b8924f0bfed3a.tar.xz
nutyx-extra-614bd173b5fec99690461ab3fd5b8924f0bfed3a.zip
Ajout de qt3#3.3.8b-1
-rw-r--r--extra/qt3/.md5sum1
-rwxr-xr-xextra/qt3/Pkgfile44
2 files changed, 45 insertions, 0 deletions
diff --git a/extra/qt3/.md5sum b/extra/qt3/.md5sum
new file mode 100644
index 000000000..3698ec0b4
--- /dev/null
+++ b/extra/qt3/.md5sum
@@ -0,0 +1 @@
+9f05b4125cfe477cc52c9742c3c09009 qt-x11-free-3.3.8b.tar.gz
diff --git a/extra/qt3/Pkgfile b/extra/qt3/Pkgfile
new file mode 100755
index 000000000..6d7746285
--- /dev/null
+++ b/extra/qt3/Pkgfile
@@ -0,0 +1,44 @@
+# 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\
+)
+
+build() {
+ cd qt-x11-free-$version
+ 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
+}