wok annotate xv/receipt @ rev 11363

Fix: add missing depend libgio to dbus-glib
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Dec 08 22:19:40 2011 +0100 (2011-12-08)
parents
children b2a632fc9587
rev   line source
pascal@11204 1 # SliTaz package receipt.
pascal@11204 2
pascal@11204 3 PACKAGE="xv"
pascal@11204 4 VERSION="3.10a"
pascal@11204 5 CATEGORY="non-free"
pascal@11204 6 SHORT_DESC="Interactive image manipulation program for the X Window System."
pascal@11204 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@11204 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11204 9 WEB_SITE="http://www.trilon.com/xv/xv.html"
pascal@11204 10 WGET_URL="ftp://ftp.trilon.com/pub/$PACKAGE/$TARBALL"
pascal@11204 11 PATCH1="$SF_MIRROR/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz"
pascal@11204 12 PATCH2="http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff"
pascal@11204 13
pascal@11204 14 DEPENDS="xorg"
pascal@11204 15 BUILD_DEPENDS="xorg-dev"
pascal@11204 16
pascal@11204 17 # Rules to configure and make the package.
pascal@11204 18 compile_rules()
pascal@11204 19 {
pascal@11204 20 cd $src
pascal@11204 21 for i in $PATCH1 $PATCH2 ; do
pascal@11204 22 [ -s $SOURCES_REPOSITORY/$(basename $i) ] ||
pascal@11204 23 wget -P $SOURCES_REPOSITORY $i
pascal@11204 24 done
pascal@11204 25 cd .. ; tar xzf $SOURCES_REPOSITORY/$(basename $PATCH1) ; cd $src
pascal@11204 26 #patch -p0 < $SOURCES_REPOSITORY/$(basename $PATCH2)
pascal@11204 27 sed -i 's/.*stdio.*/&\n#include <stdlib.h>/' xcmap.c bggen.c
pascal@11204 28 sed -i 's/ gets *(\(.*\))/ fgets(\1,sizeof(\1)-1,stdin)/' vdcomp.c
pascal@11204 29 sed -i 's/mktemp/mkstemp/' *.c
pascal@11204 30 cat > tiff/RANLIB.csh <<EOT
pascal@11204 31 #!/bin/sh
pascal@11204 32 exec ranlib \$@
pascal@11204 33 EOT
pascal@11204 34 chmod +x tiff/RANLIB.csh
pascal@11204 35 sed -i 's|.*extern.*sys_errlist.*|//&|;s|sys_errlist.x.|strerror(x)|' xv.h
pascal@11204 36 sed -i -e 's|undef USE_GUNZIP|define USE_GUNZIP\n#define USE_GETCWD|' \
pascal@11204 37 -e 's|/usr/local/bin/gunzip -q|/bin/gunzip|' config.h
pascal@11204 38 make jpeg/libjpeg.a &&
pascal@11204 39 make
pascal@11204 40 }
pascal@11204 41
pascal@11204 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11204 43 genpkg_rules()
pascal@11204 44 {
pascal@11204 45 mkdir -p $fs/usr/bin $fs/usr/share/doc/slitaz $fs/usr/share/applications
pascal@11204 46 cp $src/xv $src/bggen $src/vdcomp $src/xcmap $src/xvpictoppm $fs/usr/bin
pascal@11204 47 cp $src/README $fs/usr/share/doc/slitaz/README.xv
pascal@11204 48 cat > $fs/usr/share/applications/xv.desktop <<EOT
pascal@11204 49 [Desktop Entry]
pascal@11204 50 Encoding=UTF-8
pascal@11204 51 Categories=Application;Graphics;Utility
pascal@11204 52 Exec=xv %f
pascal@11204 53 Icon=image
pascal@11204 54 StartupNotify=true
pascal@11204 55 Type=Application
pascal@11204 56 Terminal=false
pascal@11204 57 Name=Image manipulation
pascal@11204 58 EOT
pascal@11204 59 }