wok-next view gdb/receipt @ rev 20942
Updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 28 08:45:59 2018 +0300 (2018-08-28) |
parents | c3a368c0cddb |
children | d5aab818505e |
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 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="gdb-python:py gdb-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 }