wok-next view gdb/receipt @ rev 21094

Apply "force-arch" for selected dev packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 31 17:23:40 2018 +0200 (2018-12-31)
parents d5aab818505e
children 943036379bb3
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 COOKOPTS="force-arch" # different .h
16 BUILD_DEPENDS="ncurses-dev python-dev readline-dev perl-dev texinfo"
17 SPLIT="$PACKAGE-python:py $PACKAGE-dev"
19 compile_rules() {
20 case $SET in
21 '') SET_ARGS='--with-python=no';;
22 py) SET_ARGS='';;
23 esac
25 ./configure \
26 --disable-werror \
27 $SET_ARGS \
28 $CONFIGURE_ARGS &&
29 make &&
30 make install || return 1
32 # Do not copy static libs, as they are all part of binutils;
33 # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
34 find $install -name '*.a' -delete
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 gdb)
40 copy @std
41 DEPENDS="ncurses expat glibc-dev"
42 ;;
43 gdb-python)
44 copy @std
45 CAT="development|with Python support"
46 DEPENDS="ncurses expat glibc-dev python"
47 PROVIDE="gdb"
48 ;;
49 *-dev)
50 copy @dev
51 DEPENDS="gdb"
52 ;;
53 esac
54 }