wok-current view gtk+/receipt @ rev 16703

Add: mplayer-opt: the same as mplayer but with enabled CPU optimizations (MMX, MMX2, SSE, SSE2 and friends).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 28 11:27:38 2014 +0300 (2014-05-28)
parents 2cf493b6c670
children 3ce3b57fd0bc
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.24.18"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SUGGESTED="cups gnutls libgcrypt libgpg-error"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="http://www.gtk.org/"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
13 CONFIG_FILES="/etc/gtk-2.0/gtk.immodules"
14 HOST_ARCH="i486 arm"
16 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \
17 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \
18 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
19 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr clearlooks"
20 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
21 xorg-inputproto libxcb-dev fontconfig-dev freetype-dev pixman-dev libxml2-dev \
22 libpng-dev libffi-dev xorg-xextproto"
24 # Handle cross compilation.
25 case "$ARCH" in
26 i?86)
27 BUILD_DEPENDS="$BUILD_DEPENDS bash pkg-config cups-dev perl
28 gobject-introspection-dev" ;;
29 arm*)
30 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
31 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes"
32 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
33 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
34 export LIBTOOL=${HOST_SYSTEM}-libtool ;;
35 esac
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 ./configure \
41 --prefix=/usr \
42 --sysconfdir=/etc \
43 --with-html-dir=/usr/share/doc \
44 $CONFIGURE_ARGS ${ARCH_ARGS} &&
45 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
46 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
47 make $MAKEFLAGS $LIBTOOL &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
56 # Libs.
57 cp -a $install/usr/lib/*.so* $fs/usr/lib
58 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
59 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
61 # Themes
62 cp -a $install/usr/share/themes $fs/usr/share
64 # Apps.
65 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
66 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
67 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
69 mkdir -p $fs/etc/gtk-2.0
70 touch $fs/etc/gtk-2.0/gtk.immodules
71 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
72 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
73 }
75 # Pre and post install commands for Tazpkg.
76 post_install()
77 {
78 local arg
79 echo "Processing post-install commands..."
80 if [ ! -d $1/etc/gtk-2.0 ]; then
81 mkdir -p $1/etc/gtk-2.0
82 fi
83 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
84 # Force reinstall of clearlooks theme (1.0 compatibilty until
85 # clearlooks are updated)
86 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
87 arg="--forced"
88 [ -n "$1" ] && arg="--forced --root=$1/"
89 tazpkg get-install clearlooks $arg
90 rm -rf $1/usr/lib/gtk-2.0/2.4.0
91 fi
92 }