wok view xmgrace/receipt @ rev 25270

gst-ffmpeg*: ORC_TARGET_ALTIVEC_ALTIVEC not defined yet
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 17 15:43:19 2022 +0000 (2022-07-17)
parents adc1d6ae992b
children df63c4ce07f8
line source
1 # SliTaz package receipt.
3 PACKAGE="xmgrace"
4 VERSION="5.1.25"
5 CATEGORY="math"
6 SHORT_DESC="Grace is a WYSIWYG 2D plotting tool."
7 MAINTAINER="Lucas Levrel <llev@slitaz.org>"
8 LICENSE="GPL2"
9 SOURCE="grace"
10 WEB_SITE="https://plasma-gate.weizmann.ac.il/Grace/"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/$TARBALL"
14 DEPENDS="libjpeg libpng fftw lesstif"
15 BUILD_DEPENDS="jpeg-dev libpng-dev fftw-dev lesstif-dev xorg-printproto bison"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://plasma-gate.weizmann.ac.il/pub/grace/src/stable/ 2>/dev/null | \
21 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 compile_rules()
25 {
26 sed -i 's|/man/|/share&|' doc/Makefile*
27 ./configure $CONFIGURE_ARGS \
28 --prefix=/usr --sharedstatedir=/var/lib --localstatedir=/var \
29 --enable-grace-home=/usr/share/grace \
30 --without-pdf-library \
31 --disable-netcdf --disable-editres \
32 --with-editor="editor" --with-helpviewer="browser %s" \
33 --disable-xmhtml &&
34 make &&
35 make install &&
36 make links
37 mkdir -p $install/usr/share/applications
38 cp -a $stuff/xmgrace.desktop $install/usr/share/applications
39 }
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 rm -r $fs/usr/share/grace/auxiliary/magic.grace \
45 $fs/usr/share/grace/doc/*.pdf \
46 $fs/usr/share/grace/doc/*.1 \
47 $fs/usr/man
48 }