wok annotate gc/receipt @ rev 25108

Fix open-iscsi
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 23 20:48:12 2022 +0000 (2022-06-23)
parents b569b85b0fb9
children 48dff2952881
rev   line source
pankso@146 1 # SliTaz package receipt.
pankso@146 2
pankso@146 3 PACKAGE="gc"
slaxemulator@13078 4 VERSION="7.2"
pankso@200 5 CATEGORY="development"
pankso@146 6 SHORT_DESC="A garbage collector for C and C++."
pankso@146 7 MAINTAINER="pankso@slitaz.org"
pascal@15600 8 LICENSE="MIT GPL"
pankso@146 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24308 10 WEB_SITE="https://github.com/ivmai/bdwgc"
pascal@24978 11 WGET_URL="https://www.hboehm.info/gc/gc_source/gc-$VERSION.tar.gz"
pascal@16049 12 HOST_ARCH="i486 arm"
pankso@146 13
pascal@24308 14 # What is the latest version available today?
pascal@24308 15 current_version()
pascal@24308 16 {
pascal@24308 17 wget -O - $WEB_SITE/releases 2>/dev/null | \
pascal@24308 18 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 19 }
pascal@24308 20
pankso@146 21 # Rules to configure and make the package.
pankso@146 22 compile_rules()
pankso@146 23 {
pankso@5288 24 ./configure \
slaxemulator@11005 25 --enable-cplusplus \
pankso@5288 26 $CONFIGURE_ARGS &&
pankso@5288 27 make &&
slaxemulator@11005 28 make DESTDIR=$DESTDIR install &&
pankso@5288 29 # libatomic_ops
pascal@21875 30 cd $src/libatomic_ops &&
pankso@5288 31 ./configure \
pankso@5288 32 --prefix=/usr \
pankso@5288 33 --disable-static \
pankso@5288 34 $CONFIGURE_ARGS &&
pankso@5288 35 make &&
slaxemulator@11005 36 make DESTDIR=$DESTDIR install
pankso@146 37 }
pankso@146 38
pankso@146 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@146 40 genpkg_rules()
pankso@146 41 {
pankso@5288 42 mkdir -p $fs/usr/lib $fs/usr/share
slaxemulator@13078 43 cp -a $install/usr/share/gc $fs/usr/share
slaxemulator@13078 44 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@146 45 }