SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "scilab"

# SliTaz package receipt.

PACKAGE="scilab"
VERSION="5.5.2"
CATEGORY="office"
SHORT_DESC="Open source software for numerical computation."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="CECILL"
WEB_SITE="https://www.scilab.org/"

TARBALL="$PACKAGE-$VERSION-src.tar.gz"
WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"

DEPENDS="arpack-ng blas curl fftw gcc-lib-math hdf5 lapack libgfortran \
    libxml2 matio pcre tk"
BUILD_DEPENDS="arpack-ng-dev blas curl-dev fftw-dev gettext gfortran \
    hdf5-dev lapack libxml2-dev matio-dev ncursesw-dev ocaml pcre-dev \
    pkg-config tcl-dev tk-dev xorg-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed 's|>|>\n|g' | sed '/\/download\//!d;s|.*scilab-||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed 's|H5R_OBJECT|H5P_DEFAULT, &|' -i \
        modules/hdf5/src/c/h5_readDataFromFile.c \
        modules/hdf5/src/c/h5_readDataFromFile_v1.c
    sed 's|H5Rdereference(file, |&H5P_DEFAULT, |' -i \
        modules/hdf5/src/cpp/H5ReferenceData.cpp

    export LDFLAGS="$LDFLAGS -ltinfo"
    ./configure            \
        --prefix=/usr        \
        --without-javasci    \
        --without-gui        \
        --disable-build-help    \
        --without-umfpack    \
        $CONFIGURE_ARGS &&
    make all &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs/
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)