wok-next view gdb/receipt @ rev 21038
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Nov 08 15:34:32 2018 +0200 (2018-11-08) |
parents | 30af4e7aa239 |
children | e19ff076dc63 |
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.gnu.org/software/gdb/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="ncurses-dev python-dev readline-dev perl-dev texinfo"
15 SPLIT="$PACKAGE-python:py $PACKAGE-dev"
17 compile_rules() {
18 case $SET in
19 '') SET_ARGS='--with-python=no';;
20 py) SET_ARGS='';;
21 esac
23 ./configure \
24 --disable-werror \
25 $SET_ARGS \
26 $CONFIGURE_ARGS &&
27 make &&
28 make install || return 1
30 # Do not copy static libs, as they are all part of binutils;
31 # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
32 find $install -name '*.a' -delete
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 gdb)
38 copy @std
39 DEPENDS="ncurses expat glibc-dev"
40 ;;
41 gdb-python)
42 copy @std
43 CAT="development|with Python support"
44 DEPENDS="ncurses expat glibc-dev python"
45 PROVIDE="gdb"
46 ;;
47 *-dev)
48 copy @dev
49 DEPENDS="gdb"
50 ;;
51 esac
52 }