wok-next rev 20377
h8300-gdb, h8300-gcc: use gcc49
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 26 11:54:13 2017 +0100 (2017-11-26) |
parents | 228d76a44628 |
children | 5dc1dd7c4618 |
files | h8300-gcc/receipt h8300-gdb-dev/receipt h8300-gdb/receipt |
line diff
1.1 --- a/h8300-gcc/receipt Sun Nov 26 09:27:42 2017 +0100 1.2 +++ b/h8300-gcc/receipt Sun Nov 26 11:54:13 2017 +0100 1.3 @@ -13,7 +13,8 @@ 1.4 TAGS="compiler C C++" 1.5 1.6 DEPENDS="h8300-binutils glibc-base gmp mpfr" 1.7 -BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev h8300-binutils" 1.8 +BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev \ 1.9 +h8300-binutils gcc49" 1.10 1.11 # Configuration only needs included if we're in the build/wok environment 1.12 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then 1.13 @@ -27,6 +28,7 @@ 1.14 mkdir -p $SOURCE-$VERSION-build 1.15 cd $SOURCE-$VERSION-build 1.16 $src/configure \ 1.17 + CC=gcc-49 CXX=g++-49 \ 1.18 --target=$H8300_TARGET \ 1.19 --enable-languages=c,c++ \ 1.20 --disable-nls \
2.1 --- a/h8300-gdb-dev/receipt Sun Nov 26 09:27:42 2017 +0100 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,35 +0,0 @@ 2.4 -# SliTaz package receipt." 2.5 - 2.6 -PACKAGE="h8300-gdb-dev" 2.7 -VERSION="7.1" 2.8 -CATEGORY="development" 2.9 -SHORT_DESC="The GNU Project Debugger dev files targeting the H8/300." 2.10 -MAINTAINER="rcx@zoominternet.net" 2.11 -LICENSE="GPL2" 2.12 -WANTED="h8300-gdb" 2.13 -SOURCE="gdb" 2.14 -WEB_SITE="http://www.gnu.org/software/gdb/" 2.15 - 2.16 -DEPENDS="h8300-gdb" 2.17 - 2.18 -genpkg_rules() 2.19 -{ 2.20 - mkdir -p $fs/usr 2.21 - 2.22 - # Copying include dir if exists 2.23 - if [ -d "$install/usr/include" ]; then 2.24 - cp -a $install/usr/include $fs/usr 2.25 - fi 2.26 - 2.27 - # Copying pkgconfig dir if exists 2.28 - if [ -d "$install/usr/lib/pkgconfig" ]; then 2.29 - test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/ 2.30 - cp -a $install/usr/lib/pkgconfig $fs/usr/lib 2.31 - fi 2.32 - 2.33 - # Copying static h8300 libs only if exists 2.34 - if ( find $install/usr/lib -name "*h8300-*.*a" > /dev/null ); then 2.35 - test -d $fs/usr/lib || mkdir -p $fs/usr/lib 2.36 - cp -a $install/usr/lib/*h8300-*.*a $fs/usr/lib 2.37 - fi 2.38 -}
3.1 --- a/h8300-gdb/receipt Sun Nov 26 09:27:42 2017 +0100 3.2 +++ b/h8300-gdb/receipt Sun Nov 26 11:54:13 2017 +0100 3.3 @@ -1,4 +1,4 @@ 3.4 -# SliTaz package receipt. 3.5 +# SliTaz package receipt v2. 3.6 3.7 PACKAGE="h8300-gdb" 3.8 SOURCE="gdb" 3.9 @@ -11,8 +11,8 @@ 3.10 WEB_SITE="http://www.gnu.org/software/gdb/" 3.11 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" 3.12 3.13 -DEPENDS="ncurses expat" 3.14 -BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev" 3.15 +BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev texinfo gcc49" 3.16 +SPLIT="h8300-gdb h8300-gdb-dev" 3.17 3.18 # Configuration only needs included if we're in the build/wok environment 3.19 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then 3.20 @@ -25,6 +25,7 @@ 3.21 mkdir -p $SOURCE-$VERSION-build 3.22 cd $SOURCE-$VERSION-build 3.23 $src/configure \ 3.24 + CC=gcc-49 CXX=g++-49 \ 3.25 --disable-werror \ 3.26 --target=$H8300_TARGET \ 3.27 --prefix=/usr \ 3.28 @@ -38,8 +39,34 @@ 3.29 # Rules to gen a SliTaz package suitable for Tazpkg. 3.30 genpkg_rules() 3.31 { 3.32 - mkdir -p $fs/usr 3.33 - cp -a $install/usr/bin $fs/usr 3.34 + case $PACKAGE in 3.35 + h8300-gdb) 3.36 + DEPENDS="ncurses expat" 3.37 + mkdir -p $fs/usr 3.38 + cp -a $install/usr/bin $fs/usr 3.39 + ;; 3.40 + h8300-gdb-dev) 3.41 + DEPENDS="h8300-gdb" 3.42 + mkdir -p $fs/usr 3.43 + 3.44 + # Copying include dir if exists 3.45 + if [ -d "$install/usr/include" ]; then 3.46 + cp -a $install/usr/include $fs/usr 3.47 + fi 3.48 + 3.49 + # Copying pkgconfig dir if exists 3.50 + if [ -d "$install/usr/lib/pkgconfig" ]; then 3.51 + test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/ 3.52 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 3.53 + fi 3.54 + 3.55 + # Copying static h8300 libs only if exists 3.56 + if ( find $install/usr/lib -name "*h8300-*.*a" > /dev/null ); then 3.57 + test -d $fs/usr/lib || mkdir -p $fs/usr/lib 3.58 + cp -a $install/usr/lib/*h8300-*.*a $fs/usr/lib 3.59 + fi 3.60 + ;; 3.61 + esac 3.62 } 3.63 3.64 # Rules to clean the package