wok view f2c/receipt @ rev 25518
updated gvim 8.2 -> 9.0.0133 again
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 23 11:06:30 2023 +0100 (20 months ago) |
parents | 0a3aadaa7736 |
children |
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.tar.gz"
10 WEB_SITE="https://github.com/barak/f2c"
11 WGET_URL="https://github.com/barak/f2c/archive/refs/tags/upstream/$VERSION.tar.gz"
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%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;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 cd src
29 cp makefile.u makefile
30 make
31 mkdir libf2c && cd libf2c
32 unzip -q $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
33 sed 's|^CFLAGS.*|& -fPIC -DNON_UNIX_STDIO|' < makefile.u > makefile
34 make all libf2c.so
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $install/usr/man $fs/usr/bin $fs/usr/lib $fs/usr/include
41 cp -a $src/src/f2c $fs/usr/bin
42 cp -a $src/src/libf2c/f2c.h $fs/usr/include
43 cp -a $src/src/libf2c/libf2c.a $fs/usr/lib
44 cp -a $src/src/libf2c/libf2c.so $fs/usr/lib/libf2c.so.1.0.0
45 ln -s libf2c.so.1.0.0 $fs/usr/lib/libf2c.so.1
46 ln -s libf2c.so.1.0.0 $fs/usr/lib/libf2c.so
47 cp -a $src/f2c.1t $install/usr/man/f2c.1
48 }