wok-next view gdb/receipt @ rev 21723

busybox: update patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:44:52 2020 +0000 (2020-09-01)
parents 943036379bb3
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gdb"
4 VERSION="9.2"
5 CATEGORY="development"
6 SHORT_DESC="The GNU Project Debugger"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gnu.org/software/gdb/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 COOKOPTS="force-arch" # different .h
16 BUILD_DEPENDS="ncurses-dev perl-dev python-dev readline-dev texinfo"
17 SPLIT="$PACKAGE-python:py $PACKAGE-dev $PACKAGE-lang"
19 compile_rules()
20 {
21 case $SET in
22 '') SET_ARGS='--with-python=no';;
23 py) SET_ARGS='';;
24 esac
26 mkdir _build
27 cd _build
28 ../configure \
29 --disable-werror \
30 $SET_ARGS \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install || return 1
35 # Do not copy static libs, as they are all part of binutils;
36 # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
37 find $install -name '*.a' -delete
38 }
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 gdb)
44 copy @std
45 DEPENDS="ncurses expat glibc-dev"
46 ;;
47 gdb-python)
48 copy @std
49 CAT="development|with Python support"
50 DEPENDS="ncurses expat glibc-dev python"
51 PROVIDE="gdb"
52 ;;
53 *-dev)
54 copy @dev
55 DEPENDS="gdb"
56 ;;
57 gdb-lang)
58 mkdir -p $fs/usr/share
59 cp -a $install/usr/share/locale $fs/usr/share
60 ;;
61 esac
62 }