wok-next view qt-everywhere-opensource-src/receipt @ rev 5358
Up: asunder (1.9.3)
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Apr 28 20:35:32 2010 +0000 (2010-04-28) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="qt-everywhere-opensource-src"
4 VERSION="4.6.2"
5 CATEGORY="meta"
6 SHORT_DESC="qt x11 toolkit"
7 MAINTAINER="allan316@gmail.com"
8 DEPENDS="glibc-locale"
9 BUILD_DEPENDS="xorg-libX11-dev dbus-dev slitaz-dev-pkgs"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://qt.nokia.com/"
12 WGET_URL="ftp://ftp.qt.nokia.com/qt/source/$TARBALL"
13 PROVIDE="qt-x11-opensource-src"
14 TAGS="qt"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 -prefix /usr \
22 -confirm-license \
23 -silent \
24 -sysconfdir /etc \
25 -plugindir /usr/lib/qt/plugins \
26 -translationdir /usr/share/qt/translations \
27 -datadir /usr/share/qt \
28 -docdir /usr/share/doc/qt \
29 -examplesdir /usr/share/doc/qt/examples \
30 -demosdir /usr/share/doc/qt/demos \
31 -no-separate-debug-info \
32 -nomake demos \
33 -nomake examples \
34 -nomake docs \
35 -no-phonon \
36 -optimized-qmake &&
37 make &&
38 make INSTALL_ROOT=$PWD/_pkg install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 # dummy tree to avoid 'tazwok cmp --cook' building loop
45 mkdir $fs/etc
46 # pkgconfig path fixes
47 sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc
48 sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc
49 sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc
50 }