wok-next annotate binutils/receipt @ rev 21276

try to build gens-gs again
author Hans-G?nter Theisgen
date Sat Dec 07 15:51:18 2019 +0100 (2019-12-07)
parents d03cdb2a688a
children c48f9b3034e6
rev   line source
al@19743 1 # SliTaz package receipt v2.
pankso@9 2
pankso@9 3 PACKAGE="binutils"
al@21060 4 VERSION="2.31.1"
pankso@204 5 CATEGORY="development"
al@19743 6 SHORT_DESC="GNU assembler, linker and binary utilities"
al@21020 7 MAINTAINER="devel@slitaz.org"
al@19561 8 LICENSE="GPL2 LGPL2 GPL3 LGPL3"
al@21060 9 WEB_SITE="https://www.gnu.org/software/binutils/"
al@21060 10 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/binutils.html"
pankso@9 11
al@19561 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19561 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
al@21105 14 TARBALL_SHA1="1c5b0801b4857031d5626d917808cbd5c6401a4b"
al@19561 15
al@21020 16 BUILD_DEPENDS="glibc-dev zlib-dev texinfo bison flex gettext"
al@21020 17 SPLIT="libbfd $PACKAGE"
gokhlayeh@8172 18
al@21060 19 COPY_libbfd="libbfd*.so"
al@21060 20 COPY_std="@std @dev @rm"
al@21060 21
al@21060 22 CAT_libbfd="system-tools|Binary File Descriptor library"
al@21060 23 TAGS_std="LFS assembler linker"
al@21060 24
al@21060 25 DEPENDS_libbfd="zlib"
al@21060 26 DEPENDS_std="libbfd zlib flex glibc"
al@21060 27
al@20436 28 compile_rules() {
al@21020 29 ./configure \
al@19745 30 --enable-gold \
al@19745 31 --enable-ld=default \
al@19745 32 --enable-plugins \
pankso@10013 33 --enable-shared \
al@20436 34 --disable-werror \
al@19745 35 --with-system-zlib \
al@20436 36 $CONFIGURE_ARGS &&
gokhlayeh@8172 37 make tooldir=/usr &&
al@20436 38 make tooldir=/usr install || return 1
al@19561 39
al@19561 40 # Create prefixed version of the tools.
al@19561 41 cd $install/usr/bin
al@19561 42 for i in $(ls); do
al@19561 43 mv $i $TOOLPREFIX$i
al@19561 44 [ $i == 'strings' ] && continue # skip: Busybox intercept
al@19561 45 ln -s $TOOLPREFIX$i $i
rcx@3930 46 done
al@19561 47
al@21060 48 # Install libiberty (-liberty flag): dependency described in *.la files
al@21060 49 install -m644 $src/include/libiberty.h $install/usr/include
pankso@9 50 }