summaryrefslogtreecommitdiffstats
path: root/extra/qt3/Pkgfile
blob: 460eaa3d49036f4b102821ec6c6e05206faf98ed (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
46
47
48
49
50
51
52
# 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, libcups

name=qt3
version=3.3.8b
release=3
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
        cd src && make
	cd ..
	cd plugins/src
	make sub-imageformats
	cd ../..
	mkdir -p $PKG/opt/qt/{lib,plugins/imageformats}
	cp -a lib/libqt-mt.* $PKG/opt/qt/lib/
	cp -a plugins/imageformats/* \
	$PKG/opt/qt/plugins/imageformats/
}