wok-next view h8300-binutils/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents 051931e905b0
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="h8300-binutils"
4 VERSION="2.16.1"
5 CATEGORY="development"
6 SHORT_DESC="binutils targeting the H8/300"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.gnu.org/software/binutils/"
11 SOURCE="binutils"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
15 BUILD_DEPENDS="slitaz-toolchain bison flex"
17 # Configuration only needs included if we're in the build/wok environment
18 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ]; then
19 . $WOK/h8300-toolchain/stuff/h8300.conf
20 fi
22 compile_rules() {
23 ./configure \
24 --target=$H8300_TARGET \
25 --prefix=/usr \
26 --disable-nls \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make $MAKEFLAGS &&
31 make DESTDIR=$install install
32 }
34 genpkg_rules() {
35 mkdir -p $fs/usr $fs$H8300_ROOT
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/$H8300_TARGET/* $fs$H8300_ROOT
38 # do not need to copy lib/libiberty.a
40 strip -s $fs$H8300_ROOT/bin/*
41 TAGS="assembler linker"
42 }