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