summaryrefslogtreecommitdiffstats
path: root/extra/qt/Pkgfile
blob: 9871ded1a75289820658a70f6b4514e6c6af71ea (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Description: Librairie très évolué de chez Nokia
# URL: http://qt.nokia.com/products/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: libtiff, libpng, libmng, sqlite3, ca-certificates, glib, dbus, fontconfig, xorg-libsm, xorg-libxrandr, xorg-libxv, xorg-libxi, alsa-lib, xdg-utils, hicolor-icon-theme, libpostgresql, libmysql, unixodbc, xorg-libxinerama, xorg-libxcursor, xorg-libxfixes, mesa3d, cups, gtk 

name=qt
version=4.7.0
release=1
_name=qt-everywhere-opensource-src-${version}

source=(http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-$version.tar.gz)

build() {
	unset QMAKESPC
	export QT4DIR=$SRC/${_name}
	export PATH=${QT4DIR}/bin:$PATH
	cd ${_name}
	# Install service phonon
	./configure -confirm-license -opensource \
		-prefix /usr \
		-sysconfdir /etc \
		-plugindir /usr/lib/qt/plugins \
		-translationdir /usr/share/qt/translations \
		-datadir /usr/share/qt \
		-docdir /usr/share/doc/qt \
		-examplesdir /usr/share/doc/qt/examples \
		-demosdir /usr/share/doc/qt/demos \
		-largefile \
		-plugin-sql-{psql,mysql,sqlite} \
		-system-sqlite \
		-xmlpatterns \
		-no-phonon \
		-no-phonon-backend \
		-svg \
		-webkit \
		-scripttools \
		-system-zlib \
		-system-libtiff \
		-system-libpng \
		-system-libmng \
		-system-libjpeg \
		-openssl-linked \
		-nomake demos \
		-nomake examples \
		-nomake docs \
		-no-rpath \
		-silent \
		-optimized-qmake \
		-dbus \
		-reduce-relocations \
		-no-separate-debug-info \
		-gtkstyle \
		-opengl \
		-glib

	make
	make INSTALL_ROOT=$PKG install
 	rm -rf $PKG/usr/doc
		# cleanup and path fixes
	find $PKG/usr/lib -type f -name '*prl' -print -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;
	sed -i -e "s|-L$srcdir/${_pkgfqn}/lib||g" $PKG/usr/lib/pkgconfig/*.pc
	sed -i -e "s|$srcdir/${_pkgfqn}/bin/moc|/usr/bin/moc|g" $PKG/usr/lib/pkgconfig/*.pc
	sed -i -e "s|$srcdir/${_pkgfqn}/bin/uic|/usr/bin/uic|g" $PKG/usr/lib/pkgconfig/*.pc

}