wok-next annotate h8300-gcc/receipt @ rev 20900

gdk-pixbuf: build man pages; glib-networking: up (2.56.1); glibmm: up (2.56.0); gnupg: up (2.2.9); gsettings-desktop-schemas: up (3.28.0); tint2: up (16.4).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 21 17:03:50 2018 +0300 (2018-07-21)
parents 380ffe05937a
children d5aab818505e
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@20377 16 BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev \
pascal@20377 17 h8300-binutils gcc49"
pascal@15000 18
rcx@4034 19 # Configuration only needs included if we're in the build/wok environment
rcx@4034 20 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
rcx@4034 21 . $WOK/h8300-toolchain/stuff/h8300.conf
rcx@4034 22 fi
rcx@4034 23
rcx@3291 24 # Rules to configure and make the package.
rcx@3291 25 compile_rules()
rcx@3291 26 {
rcx@3291 27 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
rcx@3291 28 mkdir -p $SOURCE-$VERSION-build
rcx@3291 29 cd $SOURCE-$VERSION-build
rcx@3291 30 $src/configure \
pascal@20377 31 CC=gcc-49 CXX=g++-49 \
rcx@4034 32 --target=$H8300_TARGET \
rcx@3294 33 --enable-languages=c,c++ \
rcx@3291 34 --disable-nls \
rcx@3291 35 --enable-target-optspace \
rcx@3291 36 --enable-obsolete \
rcx@3291 37 --prefix=/usr \
pascal@3996 38 --libexecdir=/usr/lib \
rcx@3291 39 --infodir=/usr/share/info \
rcx@3291 40 --mandir=/usr/share/man \
rcx@3291 41 $CONFIGURE_ARGS &&
gokhlayeh@11574 42 make $MAKEFLAGS &&
pascal@15000 43 make DESTDIR=$DESTDIR install
rcx@3291 44 }
rcx@3291 45
rcx@3291 46 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3291 47 genpkg_rules()
rcx@3291 48 {
rcx@3291 49 mkdir -p $fs/usr
pascal@15000 50 cp -a $install/usr/bin $fs/usr
pascal@15000 51 cp -a $install/usr/include $fs/usr
rcx@3291 52 # do not need to copy lib/libiberty.a
rcx@3291 53 mkdir -p $fs/usr/lib
pascal@15000 54 cp -a $install/usr/lib/gcc $fs/usr/lib
rcx@4034 55 # Do not include the h8* variant folders; create separate packages if they are needed
rcx@4034 56 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
rcx@4034 57 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
rcx@4034 58 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx
rcx@3291 59 }
rcx@3291 60
rcx@3291 61 # Rules to clean the package
rcx@3291 62 clean_wok()
rcx@3291 63 {
rcx@3291 64 rm -r $SOURCE-$VERSION-build
rcx@3291 65 }