wok-next annotate xfig/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 618caf1965c4 |
children | f48456621a9d |
rev | line source |
---|---|
pascal@20049 | 1 # SliTaz package receipt v2. |
pascal@11204 | 2 |
pascal@11204 | 3 PACKAGE="xfig" |
pascal@20049 | 4 VERSION="3.2.6a" |
pascal@11204 | 5 CATEGORY="x-window" |
pascal@11204 | 6 SHORT_DESC="Vector graphics editor for X." |
pascal@11204 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 8 LICENSE="MIT" |
pascal@20048 | 9 TARBALL="$PACKAGE-full-$VERSION.tar.xz" |
pascal@11204 | 10 WEB_SITE="http://www.xfig.org/" |
pascal@20048 | 11 WGET_URL="https://downloads.sourceforge.net/mcj/files/$TARBALL" |
pascal@11204 | 12 |
pascal@11204 | 13 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep jpeg-dev \ |
al@20454 | 14 libpng16-dev xorg-libXp xorg-libX11-dev xorg-libXt-dev xorg-libXpm-dev \ |
pascal@20049 | 15 xorg-libXmu-dev xorg-libXaw-dev xorg-libXaw3d-dev xorg-libXt-dev" |
pascal@20049 | 16 SPLIT="transfig" |
pascal@11204 | 17 |
pascal@11204 | 18 # Rules to configure and make the package. |
pascal@11204 | 19 compile_rules() |
pascal@11204 | 20 { |
pascal@20048 | 21 cd $src/$PACKAGE-$VERSION |
pascal@20048 | 22 ./configure --prefix=/usr \ |
pascal@20048 | 23 $CONFIGURE_ARGS && |
pascal@11204 | 24 make && |
pascal@20049 | 25 make DESTDIR=$DESTDIR/xfig install |
pascal@20049 | 26 cd $src/fig2dev-$VERSION |
pascal@20049 | 27 ./configure --prefix=/usr \ |
pascal@20049 | 28 $CONFIGURE_ARGS && |
pascal@20049 | 29 make && |
pascal@20049 | 30 make DESTDIR=$DESTDIR/transfig install |
pascal@11204 | 31 } |
pascal@11204 | 32 |
pascal@11204 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11204 | 34 genpkg_rules() |
pascal@11204 | 35 { |
pascal@20049 | 36 case $PACKAGE in |
pascal@20049 | 37 xfig) |
pascal@20049 | 38 SUGGESTED="transfig" |
al@20454 | 39 DEPENDS="jpeg libpng16 xorg xorg-libXp" |
pascal@20049 | 40 cp -a $install/xfig/* $fs |
pascal@20049 | 41 ;; |
pascal@20049 | 42 transfig) |
pascal@20049 | 43 CAT="x-window|Utilities for converting XFig figure files." |
al@20454 | 44 DEPENDS="xorg xorg-libXpm libpng16 zlib" |
pascal@20049 | 45 cp -a $install/transfig/* $fs |
pascal@20049 | 46 ;; |
pascal@20049 | 47 esac |
pascal@11204 | 48 } |