wok-next annotate transfig/receipt @ rev 19972

Up copyq (3.1.1), qedit (2.8.1)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Oct 17 19:29:54 2017 +0200 (2017-10-17)
parents f7cf1ead56c0
children 8d3183aefad5
rev   line source
pascal@14246 1 # SliTaz package receipt.
pascal@14246 2
pascal@14246 3 PACKAGE="transfig"
pascal@14246 4 VERSION="3.2.5d"
pascal@14246 5 CATEGORY="x-window"
pascal@14246 6 SHORT_DESC="Utilities for converting XFig figure files."
pascal@14246 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15601 8 LICENSE="BSD"
pascal@14246 9 TARBALL="$PACKAGE.$VERSION.tar.gz"
pascal@14246 10 WEB_SITE="http://www.xfig.org/"
pascal@14246 11 WGET_URL="http://downloads.sourceforge.net/mcj/$TARBALL"
pascal@14246 12
pascal@14246 13 DEPENDS="xorg xorg-libXpm libpng zlib"
pascal@14246 14 BUILD_DEPENDS="xorg-imake xorg-libXpm-dev libpng-dev zlib-dev"
pascal@14246 15
pascal@14246 16 # Rules to configure and make the package.
pascal@14246 17 compile_rules()
pascal@14246 18 {
pascal@14246 19 sed -i 's|/usr/local|/usr|' */*akefile
pascal@19728 20 # Update for libpng > 1.5
pascal@19728 21 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' fig2dev/dev/readpng.c
pascal@19728 22 sed -i 's|info_ptr->valid|png_get_valid(png_ptr,info_ptr,PNG_INFO_gAMA)|' fig2dev/dev/readpng.c
pascal@19728 23 sed -i 's/png_ptr->gamma/png_gamma(png_ptr)/' fig2dev/dev/readpng.c
pascal@14246 24 xmkmf &&
pascal@14246 25 make Makefiles &&
pascal@14246 26 make &&
pascal@14246 27 make DESTDIR=$DESTDIR install
pascal@14246 28 }
pascal@14246 29
pascal@14246 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14246 31 genpkg_rules()
pascal@14246 32 {
pascal@14246 33 cp -a $install/* $fs
pascal@14246 34 }