wok view xfig/receipt @ rev 19710
xfig: update for libpng >= 1.4.1
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 15 16:08:02 2017 +0100 (2017-02-15) |
parents | 23c3aed67cd9 |
children | 416babe74368 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xfig"
4 VERSION="3.2.5b"
5 CATEGORY="x-window"
6 SHORT_DESC="Vector graphics editor for X."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE.$VERSION.full.tar.gz"
10 WEB_SITE="http://www.xfig.org/"
11 WGET_URL="http://downloads.sourceforge.net/mcj/$TARBALL"
12 SUGGESTED="transfig"
14 DEPENDS="jpeg libpng xorg xorg-libXp"
15 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep jpeg-dev \
16 libpng-dev xorg-libXp"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mv $PACKAGE.$VERSION $src 2> /dev/null
22 cd $src
23 sed -i 's/png_set_dither/png_set_quantize/' f_readpng.c
24 sed -i 's|/usr/local|/usr|;s|#define XAW3D|XCOMM &|' Imakefile
25 xmkmf &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/* $fs
34 sed -i 's/^Fig\*Font:.*/Fig*Font:\t\t\tfixed/' $fs/etc/X11/app-defaults/Fig
35 }