wok annotate h8300-gcc/receipt @ rev 25172
updated python-erppeek (1.6.3 -> 1.7.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 01 16:57:44 2022 +0100 (2022-07-01) |
parents | 380ffe05937a |
children |
rev | line source |
---|---|
rcx@3291 | 1 # SliTaz package receipt. |
rcx@3291 | 2 |
rcx@3291 | 3 PACKAGE="h8300-gcc" |
rcx@3291 | 4 SOURCE="gcc" |
rcx@5979 | 5 VERSION="4.4.4" |
rcx@3291 | 6 CATEGORY="development" |
rcx@3291 | 7 SHORT_DESC="gcc targeting the H8/300" |
rcx@3291 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@15000 | 9 LICENSE="GPL2" |
rcx@3291 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
rcx@3291 | 11 WEB_SITE="http://www.gnu.org/software/gcc/" |
rcx@3291 | 12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
pascal@13033 | 13 TAGS="compiler C C++" |
rcx@3291 | 14 |
pascal@15000 | 15 DEPENDS="h8300-binutils glibc-base gmp mpfr" |
pascal@15000 | 16 BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev h8300-binutils" |
pascal@15000 | 17 |
pascal@24694 | 18 # What is the latest version available today? |
pascal@24694 | 19 current_version() |
pascal@24694 | 20 { |
pascal@24694 | 21 wget -O - 'https://gcc.gnu.org/git/?p=gcc.git;a=summary' 2>/dev/null | \ |
pascal@24694 | 22 sed '/ release/!d;s|.*GCC ||;s| release.*||' | sort -Vr | sed q |
pascal@24694 | 23 } |
pascal@24694 | 24 |
rcx@4034 | 25 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 26 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 27 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 28 fi |
rcx@4034 | 29 |
rcx@3291 | 30 # Rules to configure and make the package. |
rcx@3291 | 31 compile_rules() |
rcx@3291 | 32 { |
rcx@3291 | 33 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils |
rcx@3291 | 34 mkdir -p $SOURCE-$VERSION-build |
rcx@3291 | 35 cd $SOURCE-$VERSION-build |
rcx@3291 | 36 $src/configure \ |
rcx@4034 | 37 --target=$H8300_TARGET \ |
rcx@3294 | 38 --enable-languages=c,c++ \ |
rcx@3291 | 39 --disable-nls \ |
rcx@3291 | 40 --enable-target-optspace \ |
rcx@3291 | 41 --enable-obsolete \ |
rcx@3291 | 42 --prefix=/usr \ |
pascal@3996 | 43 --libexecdir=/usr/lib \ |
rcx@3291 | 44 --infodir=/usr/share/info \ |
rcx@3291 | 45 --mandir=/usr/share/man \ |
rcx@3291 | 46 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 47 make $MAKEFLAGS && |
pascal@15000 | 48 make DESTDIR=$DESTDIR install |
rcx@3291 | 49 } |
rcx@3291 | 50 |
rcx@3291 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3291 | 52 genpkg_rules() |
rcx@3291 | 53 { |
rcx@3291 | 54 mkdir -p $fs/usr |
pascal@15000 | 55 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 56 cp -a $install/usr/include $fs/usr |
rcx@3291 | 57 # do not need to copy lib/libiberty.a |
rcx@3291 | 58 mkdir -p $fs/usr/lib |
pascal@15000 | 59 cp -a $install/usr/lib/gcc $fs/usr/lib |
rcx@4034 | 60 # Do not include the h8* variant folders; create separate packages if they are needed |
rcx@4034 | 61 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h |
rcx@4034 | 62 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s |
rcx@4034 | 63 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx |
rcx@3291 | 64 } |
rcx@3291 | 65 |
rcx@3291 | 66 # Rules to clean the package |
rcx@3291 | 67 clean_wok() |
rcx@3291 | 68 { |
rcx@3291 | 69 rm -r $SOURCE-$VERSION-build |
rcx@3291 | 70 } |