wok annotate f2c/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (21 months ago) |
parents | 0a3aadaa7736 |
children |
rev | line source |
---|---|
pascal@24796 | 1 # SliTaz package receipt. |
pascal@24796 | 2 |
pascal@24796 | 3 PACKAGE="f2c" |
pascal@24796 | 4 VERSION="20200916" |
pascal@24796 | 5 CATEGORY="development" |
pascal@24796 | 6 SHORT_DESC="A Fortran 77 to C translator." |
pascal@24796 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@24807 | 8 LICENSE="MIT" |
pascal@25037 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24939 | 10 WEB_SITE="https://github.com/barak/f2c" |
pascal@25037 | 11 WGET_URL="https://github.com/barak/f2c/archive/refs/tags/upstream/$VERSION.tar.gz" |
pascal@24939 | 12 LIBF2C="http://www.netlib.org/f2c/libf2c.zip" |
pascal@24939 | 13 EXTRA_SOURCE_FILES="${LIBF2C##*/}" |
pascal@24796 | 14 TAGS="fortran" |
pascal@24796 | 15 |
pascal@24796 | 16 # What is the latest version available today? |
pascal@24796 | 17 current_version() |
pascal@24796 | 18 { |
pascal@25037 | 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@25037 | 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24796 | 21 } |
pascal@24796 | 22 |
pascal@24796 | 23 # Rules to configure and make the package. |
pascal@24796 | 24 compile_rules() |
pascal@24796 | 25 { |
pascal@24939 | 26 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || |
pascal@24939 | 27 wget -P $SOURCES_REPOSITORY $LIBF2C |
pascal@25037 | 28 cd src |
pascal@24796 | 29 cp makefile.u makefile |
pascal@24796 | 30 make |
pascal@24940 | 31 mkdir libf2c && cd libf2c |
pascal@24940 | 32 unzip -q $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES |
pascal@24939 | 33 sed 's|^CFLAGS.*|& -fPIC -DNON_UNIX_STDIO|' < makefile.u > makefile |
pascal@24939 | 34 make all libf2c.so |
pascal@24796 | 35 } |
pascal@24796 | 36 |
pascal@24796 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24796 | 38 genpkg_rules() |
pascal@24796 | 39 { |
pascal@24939 | 40 mkdir -p $install/usr/man $fs/usr/bin $fs/usr/lib $fs/usr/include |
pascal@25037 | 41 cp -a $src/src/f2c $fs/usr/bin |
pascal@25037 | 42 cp -a $src/src/libf2c/f2c.h $fs/usr/include |
pascal@25037 | 43 cp -a $src/src/libf2c/libf2c.a $fs/usr/lib |
pascal@25037 | 44 cp -a $src/src/libf2c/libf2c.so $fs/usr/lib/libf2c.so.1.0.0 |
pascal@24939 | 45 ln -s libf2c.so.1.0.0 $fs/usr/lib/libf2c.so.1 |
pascal@24939 | 46 ln -s libf2c.so.1.0.0 $fs/usr/lib/libf2c.so |
pascal@24805 | 47 cp -a $src/f2c.1t $install/usr/man/f2c.1 |
pascal@24796 | 48 } |