wok-6.x view qt4/receipt @ rev 8513
Add patches from archlinux to fix problems in libsdl.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 12 04:48:06 2011 +0000 (2011-02-12) |
parents | 568b7f4604a2 |
children | 20c7c65ea549 |
line source
1 # SliTaz package receipt.
3 PACKAGE="qt4"
4 SOURCE="qt-everywhere-opensource-src"
5 VERSION="4.7.1"
6 CATEGORY="meta"
7 SHORT_DESC="qt x11 toolkit"
8 MAINTAINER="allan316@gmail.com"
9 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
10 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
11 libQtOpenGL libQtSql libQtWebkit gstreamer"
12 BUILD_DEPENDS="xorg-libX11-dev dbus-dev gstreamer \
13 gstreamer-dev gst-python-dev libmng-dev cups-dev mysql-dev unixODBC-dev \
14 mesa-dev fontconfig-dev libegl-mesa libglu-mesa libglw-mesa postgresql-dev glibc-locale \
15 gtk+-dev gst-plugins-base-dev atk autoconf automake bash binutils bison bzip2 cairo \
16 coreutils expat flex fontconfig freetype gcc gettext glib jpeg libIDL \
17 libcap libpng libtool libxml2 linux-api-headers m4 make mercurial ncurses openssl \
18 pango patch pcre perl perl-xml-parser perl-xml-simple pixman pkg-config tiff \
19 xorg xorg-dev-proto zip zlib"
20 TARBALL="$SOURCE-$VERSION.tar.gz"
21 WEB_SITE="http://qt.nokia.com/"
22 WGET_URL="ftp://ftp.qt.nokia.com/qt/source/$TARBALL"
23 PROVIDE="qt-x11-opensource-src"
24 TAGS="qt"
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
31 ./configure -v \
32 -prefix /usr \
33 -confirm-license -opensource \
34 -silent \
35 -sysconfdir /etc \
36 -plugindir /usr/lib/qt/plugins \
37 -translationdir /usr/share/qt/translations \
38 -datadir /usr/share/qt \
39 -docdir /usr/share/doc/qt \
40 -examplesdir /usr/share/doc/qt/examples \
41 -demosdir /usr/share/doc/qt/demos \
42 -no-separate-debug-info \
43 -nomake demos \
44 -nomake examples \
45 -nomake docs \
46 -system-zlib \
47 -system-libtiff \
48 -system-libpng \
49 -system-libmng \
50 -system-libjpeg \
51 -system-sqlite \
52 -glib \
53 -phonon \
54 -optimized-qmake \
55 -opengl \
56 -gtkstyle &&
57 make -j 4 &&
58 make INSTALL_ROOT=$PWD/_pkg install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 # dummy tree to avoid 'tazwok cmp --cook' building loop
65 mkdir $fs/etc
66 # pkgconfig path fixes
67 sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc
68 sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc
69 sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc
70 }