wok annotate qt4/receipt @ rev 13457

hostpad: add missing file
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Oct 07 23:49:54 2012 +0200 (2012-10-07)
parents 8e4c74abdf74
children 6b09507225ec
rev   line source
jozee@5369 1 # SliTaz package receipt.
jozee@5369 2
jozee@5369 3 PACKAGE="qt4"
jozee@5369 4 SOURCE="qt-everywhere-opensource-src"
slaxemulator@10082 5 VERSION="4.7.3"
jozee@5369 6 CATEGORY="meta"
jozee@5369 7 SHORT_DESC="qt x11 toolkit"
jozee@5369 8 MAINTAINER="allan316@gmail.com"
jozee@5369 9 TARBALL="$SOURCE-$VERSION.tar.gz"
jozee@5369 10 WEB_SITE="http://qt.nokia.com/"
jozee@5369 11 WGET_URL="ftp://ftp.qt.nokia.com/qt/source/$TARBALL"
jozee@5369 12 PROVIDE="qt-x11-opensource-src"
jozee@5369 13 TAGS="qt"
jozee@5369 14
pankso@10647 15 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
pankso@10647 16 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
pankso@10647 17 libQtOpenGL libQtSql libQtWebkit gstreamer"
pankso@10647 18 BUILD_DEPENDS="xorg-libX11-dev dbus-dev gstreamer-dev gst-python-dev libmng-dev \
pankso@10647 19 cups-dev mysql-dev unixODBC-dev mesa-dev fontconfig-dev libegl-mesa libglu-mesa \
pankso@10647 20 libglw-mesa postgresql-dev gst-plugins-base-dev atk-dev autoconf automake bash \
pankso@10647 21 binutils bison bzip2-dev cairo-dev coreutils expat-dev flex fontconfig-dev \
pankso@10647 22 freetype-dev gettext glib-dev jpeg-dev libIDL libcap-dev libpng-dev libtool \
pankso@10647 23 libxml2-dev linux-api-headers m4 make mercurial ncurses-dev openssl-dev \
pankso@10647 24 pango-dev patch pcre-dev perl perl-xml-parser perl-xml-simple pixman-dev \
pascal@12453 25 pkg-config tiff-dev xorg-dev-proto xorg-dev zip unzip gtk+-dev alsa-lib-dev \
pascal@12453 26 sqlite-dev"
pankso@10647 27
jozee@5369 28 # Rules to configure and make the package.
jozee@5369 29 compile_rules()
jozee@5369 30 {
jozee@5369 31 cd $src
pankso@5509 32 ./configure -v \
pankso@5509 33 -prefix /usr \
pankso@5509 34 -confirm-license -opensource \
pankso@5509 35 -silent \
pankso@5509 36 -sysconfdir /etc \
pankso@5509 37 -plugindir /usr/lib/qt/plugins \
slaxemulator@10082 38 -importdir /usr/lib/qt/imports \
pankso@5509 39 -translationdir /usr/share/qt/translations \
pankso@5509 40 -datadir /usr/share/qt \
pankso@5509 41 -docdir /usr/share/doc/qt \
pankso@5509 42 -examplesdir /usr/share/doc/qt/examples \
pankso@5509 43 -demosdir /usr/share/doc/qt/demos \
pankso@5509 44 -no-separate-debug-info \
pankso@5509 45 -nomake demos \
pankso@5509 46 -nomake examples \
pankso@5509 47 -nomake docs \
slaxemulator@6976 48 -system-zlib \
slaxemulator@6976 49 -system-libtiff \
slaxemulator@6976 50 -system-libpng \
slaxemulator@6976 51 -system-libmng \
slaxemulator@6976 52 -system-libjpeg \
slaxemulator@6976 53 -system-sqlite \
slaxemulator@9182 54 -scripttools \
slaxemulator@6976 55 -glib \
pankso@5509 56 -phonon \
pankso@5509 57 -optimized-qmake \
pankso@5509 58 -opengl \
pankso@5509 59 -gtkstyle &&
gokhlayeh@11574 60 make $MAKEFLAGS &&
slaxemulator@10082 61 make INSTALL_ROOT=$DESTDIR install
jozee@5369 62 }
jozee@5369 63
jozee@5369 64 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@5369 65 genpkg_rules()
jozee@5369 66 {
jozee@5369 67 # dummy tree to avoid 'tazwok cmp --cook' building loop
jozee@5369 68 mkdir $fs/etc
jozee@5369 69 # pkgconfig path fixes
jozee@5369 70 sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc
jozee@5369 71 sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc
jozee@5369 72 sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc
jozee@5369 73 }
jozee@5369 74