wok-current view giac/receipt @ rev 25379
updated uget (2.2.1 -> 2.2.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 15:37:46 2022 +0100 (2022-07-30) |
parents | b55f6ebcce61 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="giac"
4 VERSION="1.7.0.47"
5 CATEGORY="misc"
6 SHORT_DESC="A free computer algebra system."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
11 TARBALL="${PACKAGE}_${VERSION%.*}-${VERSION##*.}.tar.gz"
12 WGET_URL="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/$TARBALL"
14 DEPENDS="cocoalib fltk gf2x gmp gsl libpng mpfr ntl pari readline"
15 BUILD_DEPENDS="bison cocoalib expat-dev fltk-2.0.x-gl fltk-dev gf2x-dev
16 gfortran gmp-dev gsl-dev libboost-system-dev libpng-dev
17 libtool libxml2-dev mesa-dev mpfr-dev ntl pari-dev py3k
18 readline-dev xorg-libX11-dev xorg-libXinerama-dev" # lapack
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*\".*|\\1|;s|-|.|g" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's| doc | |' Makefile*
32 cp /usr/include/FL/Fl_PostScript.H /usr/include/FL/Fl_PostScript.H.ORG
33 cp /usr/include/FL/Fl_Input.H /usr/include/FL/Fl_Input.H.ORG
35 sed -i 's/protected:/public:/' \
36 /usr/include/FL/Fl_Input.H \
37 /usr/include/FL/Fl_PostScript.H
39 export LDFLAGS="$LDFLAGS -lgf2x -lboost_system"
41 ./configure $CONFIGURE_ARGS &&
42 make &&
43 make install
45 mv -f /usr/include/FL/Fl_PostScript.H.ORG /usr/include/FL/Fl_PostScript.H
46 mv -f /usr/include/FL/Fl_Input.H.ORG /usr/include/FL/Fl_Input.H
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 cp -a $install/* $fs
53 }