wok-4.x annotate h8300-gcc/receipt @ rev 12362

Added DBD::SQlite
author Brenton Scott <admin@trixarian.net>
date Thu Dec 20 10:07:42 2012 +0200 (2012-12-20)
parents e3e1af50a0a5
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"
rcx@3291 9 DEPENDS="h8300-binutils glibc-base gmp mpfr"
rcx@3291 10 BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev h8300-binutils"
rcx@3291 11 TARBALL="$SOURCE-$VERSION.tar.bz2"
rcx@3291 12 WEB_SITE="http://www.gnu.org/software/gcc/"
rcx@3291 13 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
rcx@3291 14
rcx@4034 15 # Configuration only needs included if we're in the build/wok environment
rcx@4034 16 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
rcx@4034 17 . $WOK/h8300-toolchain/stuff/h8300.conf
rcx@4034 18 fi
rcx@4034 19
rcx@3291 20 # Rules to configure and make the package.
rcx@3291 21 compile_rules()
rcx@3291 22 {
rcx@3291 23 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
rcx@3291 24 mkdir -p $SOURCE-$VERSION-build
rcx@3291 25 cd $SOURCE-$VERSION-build
rcx@3291 26 $src/configure \
rcx@4034 27 --target=$H8300_TARGET \
rcx@3294 28 --enable-languages=c,c++ \
rcx@3291 29 --disable-nls \
rcx@3291 30 --enable-target-optspace \
rcx@3291 31 --enable-obsolete \
rcx@3291 32 --prefix=/usr \
pascal@3996 33 --libexecdir=/usr/lib \
rcx@3291 34 --infodir=/usr/share/info \
rcx@3291 35 --mandir=/usr/share/man \
rcx@3291 36 $CONFIGURE_ARGS &&
gokhlayeh@11574 37 make $MAKEFLAGS &&
rcx@3291 38 make DESTDIR=$src/_pkg install
rcx@3291 39 }
rcx@3291 40
rcx@3291 41 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3291 42 genpkg_rules()
rcx@3291 43 {
rcx@3291 44 mkdir -p $fs/usr
rcx@3291 45 cp -a $_pkg/usr/bin $fs/usr
rcx@3291 46 cp -a $_pkg/usr/include $fs/usr
rcx@3291 47 # do not need to copy lib/libiberty.a
rcx@3291 48 mkdir -p $fs/usr/lib
rcx@3291 49 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
rcx@4034 50 # Do not include the h8* variant folders; create separate packages if they are needed
rcx@4034 51 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
rcx@4034 52 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
rcx@4034 53 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx
rcx@3291 54 }
rcx@3291 55
rcx@3291 56 # Rules to clean the package
rcx@3291 57 clean_wok()
rcx@3291 58 {
rcx@3291 59 rm -r $SOURCE-$VERSION-build
rcx@3291 60 }