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