blob: 4ca81243994eec5f7368559b8bda9d1921b74b79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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, libcups
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
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 -rf $PKG/opt/qt/share/doc
}
|