wok-next view h8300-gdb/receipt @ rev 20567

xfe: update receipt; qt5: undo `fix math`
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 11 01:07:35 2018 +0300 (2018-04-11)
parents dead8955c3ca
children d2950281f122
line source
1 # SliTaz package receipt v2.
3 PACKAGE="h8300-gdb"
4 SOURCE="gdb"
5 VERSION="7.1"
6 CATEGORY="development"
7 SHORT_DESC="The GNU Project Debugger targeting the H8/300."
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/gdb/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
14 BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev texinfo gcc49"
15 SPLIT="h8300-gdb h8300-gdb-dev"
17 # Configuration only needs included if we're in the build/wok environment
18 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
19 . $WOK/h8300-toolchain/stuff/h8300.conf
20 fi
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mkdir -p $SOURCE-$VERSION-build
26 cd $SOURCE-$VERSION-build
27 $src/configure \
28 CC=gcc-49 CXX=g++-49 \
29 --disable-werror \
30 --target=$H8300_TARGET \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make $MAKEFLAGS &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 h8300-gdb)
44 DEPENDS="ncurses expat"
45 mkdir -p $fs/usr
46 cp -a $install/usr/bin $fs/usr
47 ;;
48 h8300-gdb-dev)
49 DEPENDS="h8300-gdb"
50 mkdir -p $fs/usr
52 # Copying include dir if exists
53 if [ -d "$install/usr/include" ]; then
54 cp -a $install/usr/include $fs/usr
55 fi
57 # Copying pkgconfig dir if exists
58 if [ -d "$install/usr/lib/pkgconfig" ]; then
59 test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/
60 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
61 fi
63 # Copying static h8300 libs only if exists
64 if ( find $install/usr/lib -name "*h8300-*.*a" > /dev/null ); then
65 test -d $fs/usr/lib || mkdir -p $fs/usr/lib
66 cp -a $install/usr/lib/*h8300-*.*a $fs/usr/lib
67 fi
68 ;;
69 esac
70 }
72 # Rules to clean the package
73 clean_wok()
74 {
75 rm -r -f $SOURCE-$VERSION-build
76 }