wok-next view gdb/receipt @ rev 20313
libav: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 10 21:37:38 2017 +0100 (2017-11-10) |
parents | 873dacb47139 |
children | c3a368c0cddb |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gdb"
4 VERSION="8.0.1"
5 CATEGORY="development"
6 SHORT_DESC="The GNU Project Debugger."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/gdb/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 BUILD_DEPENDS="ncurses-dev readline-dev perl-dev texinfo"
15 SPLIT="gdb-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --with-python=no \
22 --disable-werror \
23 $CONFIGURE_ARGS && \
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 case $PACKAGE in
31 gdb)
32 DEPENDS="ncurses expat glibc-dev"
33 mkdir -p $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 ;;
36 gdb-dev)
37 CAT="development|The GNU Project Debugger dev files."
38 DEPENDS="gdb"
39 mkdir -p $fs/usr
41 # Copying include dir if exists
42 if [ -d "$install/usr/include" ]; then
43 cp -a $install/usr/include $fs/usr
44 fi
46 # Copying pkgconfig dir if exists
47 if [ -d "$install/usr/lib/pkgconfig" ]; then
48 test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/
49 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
50 fi
52 # Do not copy static libs, as they are all part of binutils
53 # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
54 # Copying static libs if exists
55 ;;
56 esac
57 }