wok-current rev 24704

updated lapack (3.4.0 -> 3.10.0)
author Hans-G?nter Theisgen
date Mon Mar 14 14:46:55 2022 +0100 (2022-03-14)
parents f5bcefacd129
children a8521217484c
files lapack/description.txt lapack/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lapack/description.txt	Mon Mar 14 14:46:55 2022 +0100
     1.3 @@ -0,0 +1,2 @@
     1.4 +LAPACK is a library of Fortran subroutines for solving the most
     1.5 +commonly occurring problems in numerical linear algebra.
     2.1 --- a/lapack/receipt	Mon Mar 14 11:12:41 2022 +0100
     2.2 +++ b/lapack/receipt	Mon Mar 14 14:46:55 2022 +0100
     2.3 @@ -1,17 +1,18 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="lapack"
     2.7 -VERSION="3.4.0"
     2.8 +VERSION="3.10.0"
     2.9  CATEGORY="misc"
    2.10 -SHORT_DESC="Linear Algebra PACKage"
    2.11 +SHORT_DESC="Linear Algebra PACKage."
    2.12  MAINTAINER="slaxemulator@gmail.com"
    2.13  LICENSE="BSD"
    2.14 -TARBALL="$PACKAGE-$VERSION.tgz"
    2.15 -WEB_SITE="http://www.netlib.org/lapack"
    2.16 -WGET_URL="$WEB_SITE/$TARBALL"
    2.17 +WEB_SITE="https://www.netlib.org/lapack/"
    2.18  
    2.19 -DEPENDS="gcc-lib-base blas"
    2.20 -BUILD_DEPENDS="gfortran blas"
    2.21 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.22 +WGET_URL="https://github.com/Reference-LAPACK/$PACKAGE/archive/v$VERSION.tar.gz"
    2.23 +
    2.24 +DEPENDS="blas gcc-lib-base"
    2.25 +BUILD_DEPENDS="blas cmake gfortran"
    2.26  
    2.27  # What is the latest version available today?
    2.28  current_version()
    2.29 @@ -23,36 +24,44 @@
    2.30  # Rules to configure and make the package.
    2.31  compile_rules()
    2.32  {
    2.33 -	cd $src
    2.34 -	cp -f $src/INSTALL/make.inc.gfortran make.inc
    2.35 -	cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile
    2.36 -	
    2.37 -	export FC=gfortran
    2.38 +#	cp -f $src/INSTALL/make.inc.gfortran	make.inc
    2.39 +#	cp -f "$stuff/Makefile.lapack"		$src/SRC/Makefile
    2.40  
    2.41 -	cd $src/INSTALL
    2.42 -	make clean
    2.43 -	make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC"
    2.44 +#	export FC=gfortran
    2.45  
    2.46 -	cd $src/SRC
    2.47 -	make clean
    2.48 +#	cd	$src/INSTALL
    2.49 +#	make	clean
    2.50 +#	make	NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC"
    2.51  
    2.52 -	make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared
    2.53 -	cp liblapack.so.$VERSION "$src/"
    2.54 +#	cd	$src/SRC
    2.55 +#	make	clean
    2.56 +#	make	FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared
    2.57 +#	cp liblapack.so.$VERSION		"$src/"
    2.58 +
    2.59 +	mkdir	_build &&
    2.60 +	cd	_build &&
    2.61 +	cmake	..					\
    2.62 +		-D CMAKE_INSTALL_LIBDIR=/usr/lib/lapack	\
    2.63 +		-D BUILD_SHARED_LIBS=ON &&
    2.64 +	make &&
    2.65 +	make	install
    2.66  }
    2.67  
    2.68  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.69  genpkg_rules()
    2.70  {
    2.71 -	mkdir -p $fs/usr
    2.72 +#	mkdir -p $fs/usr
    2.73  
    2.74 -	install -m755 -d "$fs/usr/lib"
    2.75 -  install -m755 "$src/liblapack.so.$VERSION" \
    2.76 -    "$fs/usr/lib/"
    2.77 -  ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so"
    2.78 -  ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3"
    2.79 -  
    2.80 -  install -m755 -d "$fs/usr/share/licenses"
    2.81 -  install -m644 "$src/LICENSE" \
    2.82 -    "$fs/usr/share/licenses/lapack.LICENSE"
    2.83 +#	install -m755 -d "$fs/usr/lib"
    2.84 +# install -m755 "$src/liblapack.so.$VERSION" \
    2.85 +#    "$fs/usr/lib/"
    2.86 +#  ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so"
    2.87 +#  ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3"
    2.88 +
    2.89 +	cook_copy_files	liblapack.so*
    2.90 +
    2.91 +	install -m755 -d	"$fs/usr/share/licenses"
    2.92 +	install -m644 "$src/LICENSE" \
    2.93 +				"$fs/usr/share/licenses/lapack.LICENSE"
    2.94  }
    2.95