wok-next annotate gdb/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 943036379bb3 |
children |
rev | line source |
---|---|
pascal@20043 | 1 # SliTaz package receipt v2. |
erjo@1727 | 2 |
erjo@1727 | 3 PACKAGE="gdb" |
Hans-G?nter@21672 | 4 VERSION="9.2" |
erjo@1727 | 5 CATEGORY="development" |
al@20456 | 6 SHORT_DESC="The GNU Project Debugger" |
Hans-G?nter@21672 | 7 MAINTAINER="maintainer@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@21672 | 9 WEB_SITE="https://www.gnu.org/software/gdb/" |
al@20456 | 10 |
pascal@20041 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
rcx@5984 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
erjo@1727 | 13 |
al@21094 | 14 COOKOPTS="force-arch" # different .h |
al@21094 | 15 |
Hans-G?nter@21672 | 16 BUILD_DEPENDS="ncurses-dev perl-dev python-dev readline-dev texinfo" |
Hans-G?nter@21672 | 17 SPLIT="$PACKAGE-python:py $PACKAGE-dev $PACKAGE-lang" |
pascal@15000 | 18 |
Hans-G?nter@21672 | 19 compile_rules() |
Hans-G?nter@21672 | 20 { |
al@20456 | 21 case $SET in |
al@20548 | 22 '') SET_ARGS='--with-python=no';; |
al@20548 | 23 py) SET_ARGS='';; |
al@20456 | 24 esac |
al@20456 | 25 |
Hans-G?nter@21672 | 26 mkdir _build |
Hans-G?nter@21672 | 27 cd _build |
Hans-G?nter@21672 | 28 ../configure \ |
Hans-G?nter@21672 | 29 --disable-werror \ |
Hans-G?nter@21672 | 30 $SET_ARGS \ |
al@20456 | 31 $CONFIGURE_ARGS && |
al@20548 | 32 make && |
al@20548 | 33 make install || return 1 |
al@20548 | 34 |
al@20548 | 35 # Do not copy static libs, as they are all part of binutils; |
al@20548 | 36 # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a |
al@20548 | 37 find $install -name '*.a' -delete |
erjo@1727 | 38 } |
erjo@1727 | 39 |
Hans-G?nter@21672 | 40 genpkg_rules() |
Hans-G?nter@21672 | 41 { |
pascal@20043 | 42 case $PACKAGE in |
al@20456 | 43 gdb) |
al@20548 | 44 copy @std |
al@20456 | 45 DEPENDS="ncurses expat glibc-dev" |
al@20456 | 46 ;; |
al@20456 | 47 gdb-python) |
al@20548 | 48 copy @std |
al@20456 | 49 CAT="development|with Python support" |
al@20456 | 50 DEPENDS="ncurses expat glibc-dev python" |
al@20456 | 51 PROVIDE="gdb" |
al@20456 | 52 ;; |
al@20456 | 53 *-dev) |
al@20548 | 54 copy @dev |
al@20456 | 55 DEPENDS="gdb" |
al@20456 | 56 ;; |
Hans-G?nter@21672 | 57 gdb-lang) |
Hans-G?nter@21673 | 58 mkdir -p $fs/usr/share |
Hans-G?nter@21672 | 59 cp -a $install/usr/share/locale $fs/usr/share |
Hans-G?nter@21672 | 60 ;; |
pascal@20043 | 61 esac |
erjo@1727 | 62 } |