wok-next annotate giac/receipt @ rev 13943

giac: add LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 27 20:26:38 2013 +0100 (2013-01-27)
parents 90dc8be173fd
children 2b9f96603415
rev   line source
al@13723 1 # SliTaz package receipt.
al@13723 2
al@13723 3 PACKAGE="giac"
al@13723 4 VERSION="0.9.4"
al@13723 5 CATEGORY="misc"
al@13723 6 SHORT_DESC="Giac/Xcas is a free computer algebra system"
al@13723 7 MAINTAINER="al.bobylev@gmail.com"
al@13723 8 WEB_SITE="http://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
al@13723 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@13723 10 WGET_URL="http://www-fourier.ujf-grenoble.fr/~parisse/giac/giac_frozen.tgz"
al@13723 11
al@13723 12 DEPENDS="gmp mpfr libpng gsl pari ntl readline cocoalib fltk gf2x"
al@13723 13 BUILD_DEPENDS="gmp-dev mpfr-dev libpng-dev gsl-dev pari-dev ntl readline-dev \
al@13723 14 cocoalib fltk-dev xorg-libX11-dev gf2x-dev xorg-libXinerama-dev \
pascal@13943 15 fltk-2.0.x-gl bison gfortran mesa-dev expat-dev gf2x-dev libboost-system-dev" # lapack
al@13723 16
al@13723 17 # Rules to configure and make the package.
al@13723 18 compile_rules()
al@13723 19 {
pascal@13939 20 cp /usr/include/FL/Fl_PostScript.H /usr/include/FL/Fl_PostScript.H.ORG
pascal@13939 21 cp /usr/include/FL/Fl_Input.H /usr/include/FL/Fl_Input.H.ORG
pascal@13939 22 sed -i '220,220s/protected/public/' /usr/include/FL/Fl_PostScript.H
pascal@13939 23 sed -i '266,266s/protected/public/' /usr/include/FL/Fl_Input.H
pascal@13943 24 export LDFLAGS="$LDFLAGS -lgf2x -lboost_system"
al@13723 25 ./configure $CONFIGURE_ARGS &&
al@13723 26 make &&
al@13723 27 make install
pascal@13939 28 mv -f /usr/include/FL/Fl_PostScript.H.ORG /usr/include/FL/Fl_PostScript.H
pascal@13939 29 mv -f /usr/include/FL/Fl_Input.H.ORG /usr/include/FL/Fl_Input.H
al@13723 30 }
al@13723 31
al@13723 32 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13723 33 genpkg_rules()
al@13723 34 {
pascal@13943 35 cp -a $install/* $fs
al@13723 36 }