wok-next view transfig/receipt @ rev 19879
qemacs: does not need gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 04 18:36:44 2017 +0200 (2017-10-04) |
parents | f7cf1ead56c0 |
children | 8d3183aefad5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="transfig"
4 VERSION="3.2.5d"
5 CATEGORY="x-window"
6 SHORT_DESC="Utilities for converting XFig figure files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE.$VERSION.tar.gz"
10 WEB_SITE="http://www.xfig.org/"
11 WGET_URL="http://downloads.sourceforge.net/mcj/$TARBALL"
13 DEPENDS="xorg xorg-libXpm libpng zlib"
14 BUILD_DEPENDS="xorg-imake xorg-libXpm-dev libpng-dev zlib-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's|/usr/local|/usr|' */*akefile
20 # Update for libpng > 1.5
21 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' fig2dev/dev/readpng.c
22 sed -i 's|info_ptr->valid|png_get_valid(png_ptr,info_ptr,PNG_INFO_gAMA)|' fig2dev/dev/readpng.c
23 sed -i 's/png_ptr->gamma/png_gamma(png_ptr)/' fig2dev/dev/readpng.c
24 xmkmf &&
25 make Makefiles &&
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 }