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