wok-next annotate h8300-gcc3/receipt @ rev 21427
updated qt4 (4.8.6 -> 4.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue May 05 08:11:24 2020 +0100 (2020-05-05) |
parents | 600949c94110 |
children |
rev | line source |
---|---|
pascal@2176 | 1 # SliTaz package receipt. |
pascal@2176 | 2 |
pascal@2176 | 3 PACKAGE="h8300-gcc3" |
pascal@2176 | 4 VERSION="3.4.6" |
pascal@2176 | 5 CATEGORY="development" |
pascal@2176 | 6 SHORT_DESC="gcc targeting the H8/300" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://www.gnu.org/software/gcc/" |
al@21020 | 10 |
al@21020 | 11 SOURCE="gcc" |
pascal@2176 | 12 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@2176 | 13 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
pascal@2176 | 14 |
pascal@15000 | 15 BUILD_DEPENDS="bison flex h8300-binutils" |
pascal@15000 | 16 |
rcx@4034 | 17 # Configuration only needs included if we're in the build/wok environment |
al@21020 | 18 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ]; then |
rcx@4034 | 19 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 20 fi |
rcx@4034 | 21 |
al@21020 | 22 compile_rules() { |
rcx@3292 | 23 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils |
pascal@15338 | 24 mkdir -p $SOURCE-$VERSION-build \ |
al@21020 | 25 $install/usr/share/man/man1 $install/usr/share/man/man7 |
rcx@3292 | 26 cd $SOURCE-$VERSION-build |
pascal@2176 | 27 $src/configure \ |
rcx@4034 | 28 --target=$H8300_TARGET \ |
rcx@3294 | 29 --enable-languages=c,c++,ada \ |
pascal@2176 | 30 --disable-nls \ |
pascal@2176 | 31 --enable-target-optspace \ |
pascal@2176 | 32 --prefix=/usr \ |
pascal@4014 | 33 --libexecdir=/usr/lib \ |
pascal@2176 | 34 --infodir=/usr/share/info \ |
pascal@2176 | 35 --mandir=/usr/share/man \ |
pascal@2176 | 36 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 37 make $MAKEFLAGS && |
al@21020 | 38 make DESTDIR=$install install |
pascal@2176 | 39 } |
pascal@2176 | 40 |
al@21020 | 41 genpkg_rules() { |
pascal@2176 | 42 mkdir -p $fs/usr |
pascal@15000 | 43 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 44 cp -a $install/usr/include $fs/usr |
rcx@4034 | 45 # Do not need to copy lib/libiberty.a |
pascal@2176 | 46 mkdir -p $fs/usr/lib |
pascal@15000 | 47 cp -a $install/usr/lib/gcc $fs/usr/lib |
rcx@4034 | 48 # Do not include the h8300* variant folders; create separate packages if they are needed |
rcx@4034 | 49 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h |
rcx@4034 | 50 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s |
al@21020 | 51 DEPENDS="h8300-binutils" |
al@21020 | 52 PROVIDE="h8300-gcc" |
al@21020 | 53 TAGS="compiler C C++ ada" |
pascal@2176 | 54 } |