wok-current annotate h8300-binutils/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (6 months ago)
parents 051931e905b0
children
rev   line source
pascal@2176 1 # SliTaz package receipt.
pascal@2176 2
pascal@2176 3 PACKAGE="h8300-binutils"
pascal@2176 4 SOURCE="binutils"
pascal@2176 5 VERSION="2.16.1"
pascal@2176 6 CATEGORY="development"
rcx@4034 7 SHORT_DESC="binutils targeting the H8/300."
pascal@2176 8 MAINTAINER="rcx@zoominternet.net"
pascal@15000 9 LICENSE="GPL2"
pascal@2176 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@2176 11 WEB_SITE="http://www.gnu.org/software/binutils/"
pascal@2176 12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
pascal@13033 13 TAGS="assembler linker"
pascal@2176 14
pascal@15000 15 BUILD_DEPENDS="slitaz-toolchain bison flex"
pascal@15000 16
pascal@24336 17 # What is the latest version available today?
pascal@24336 18 current_version()
pascal@24336 19 {
pascal@24336 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 21 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 22 }
pascal@24336 23
pascal@24336 24 h8300_conf()
pascal@24336 25 {
pascal@24336 26 # Configuration only needs included if we're in the build/wok environment
pascal@24336 27 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
pascal@24336 28 . $WOK/h8300-toolchain/stuff/h8300.conf
pascal@24336 29 fi
pascal@24336 30 }
rcx@4034 31
pascal@2176 32 # Rules to configure and make the package.
pascal@2176 33 compile_rules()
pascal@2176 34 {
pascal@24336 35 h8300_conf
pascal@2176 36 ./configure \
rcx@4034 37 --target=$H8300_TARGET \
pascal@2176 38 --prefix=/usr \
pascal@2176 39 --disable-nls \
pascal@2176 40 --infodir=/usr/share/info \
pascal@2176 41 --mandir=/usr/share/man \
pascal@2176 42 $CONFIGURE_ARGS &&
gokhlayeh@11574 43 make $MAKEFLAGS &&
pascal@15602 44 make DESTDIR=$DESTDIR install
pascal@2176 45 }
pascal@2176 46
pascal@2176 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2176 48 genpkg_rules()
pascal@2176 49 {
pascal@24336 50 h8300_conf
rcx@4034 51 mkdir -p $fs/usr $fs$H8300_ROOT
pascal@15603 52 cp -a $install/usr/bin $fs/usr
pascal@15603 53 cp -a $install/usr/$H8300_TARGET/* $fs$H8300_ROOT
pascal@2176 54 # do not need to copy lib/libiberty.a
rcx@4034 55
rcx@4034 56 strip -s $fs$H8300_ROOT/bin/*
pascal@2176 57 }