wok view h8300-gcc/receipt @ rev 21585
updated npth and npth-dev (1.5 -> 1.6)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 20 13:44:05 2019 +0100 (2019-05-20) |
parents | 4c16797dce28 |
children | 52649f27a0da |
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-gcc"
4 SOURCE="gcc"
5 VERSION="4.4.4"
6 CATEGORY="development"
7 SHORT_DESC="gcc targeting the H8/300"
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.gnu.org/software/gcc/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
13 TAGS="compiler C C++"
15 DEPENDS="h8300-binutils glibc-base gmp mpfr"
16 BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev h8300-binutils"
18 # Configuration only needs included if we're in the build/wok environment
19 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
20 . $WOK/h8300-toolchain/stuff/h8300.conf
21 fi
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
27 mkdir -p $SOURCE-$VERSION-build
28 cd $SOURCE-$VERSION-build
29 $src/configure \
30 --target=$H8300_TARGET \
31 --enable-languages=c,c++ \
32 --disable-nls \
33 --enable-target-optspace \
34 --enable-obsolete \
35 --prefix=/usr \
36 --libexecdir=/usr/lib \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/include $fs/usr
50 # do not need to copy lib/libiberty.a
51 mkdir -p $fs/usr/lib
52 cp -a $install/usr/lib/gcc $fs/usr/lib
53 # Do not include the h8* variant folders; create separate packages if they are needed
54 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
55 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
56 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx
57 }
59 # Rules to clean the package
60 clean_wok()
61 {
62 rm -r $SOURCE-$VERSION-build
63 }