wok view f2c/receipt @ rev 24991

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 14 08:41:24 2022 +0000 (2022-05-14)
parents 970deba23db6
children 7ae189994f37
line source
1 # SliTaz package receipt.
3 PACKAGE="f2c"
4 VERSION="20200916"
5 CATEGORY="development"
6 SHORT_DESC="A Fortran 77 to C translator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="https://github.com/barak/f2c"
11 WGET_URL="http://www.netlib.org/f2c/src.tgz"
12 LIBF2C="http://www.netlib.org/f2c/libf2c.zip"
13 EXTRA_SOURCE_FILES="${LIBF2C##*/}"
14 TAGS="fortran"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WGET_URL 2>/dev/null | \
20 tar xOzf - src/changes | sed '/^20[0-9]/!d' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
27 wget -P $SOURCES_REPOSITORY $LIBF2C
28 cp makefile.u makefile
29 make
30 mkdir libf2c && cd libf2c
31 unzip -q $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
32 sed 's|^CFLAGS.*|& -fPIC -DNON_UNIX_STDIO|' < makefile.u > makefile
33 make all libf2c.so
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $install/usr/man $fs/usr/bin $fs/usr/lib $fs/usr/include
40 cp -a $src/f2c $fs/usr/bin
41 cp -a $src/libf2c/f2c.h $fs/usr/include
42 cp -a $src/libf2c/libf2c.a $fs/usr/lib
43 cp -a $src/libf2c/libf2c.so $fs/usr/lib/libf2c.so.1.0.0
44 ln -s libf2c.so.1.0.0 $fs/usr/lib/libf2c.so.1
45 ln -s libf2c.so.1.0.0 $fs/usr/lib/libf2c.so
46 cp -a $src/f2c.1t $install/usr/man/f2c.1
47 }