wok-next annotate gdb/receipt @ rev 20043

gdb: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 22 21:23:15 2017 +0200 (2017-10-22)
parents eb78b866a5de
children 1781255a5644
rev   line source
pascal@20043 1 # SliTaz package receipt v2.
erjo@1727 2
erjo@1727 3 PACKAGE="gdb"
pascal@20041 4 VERSION="8.0.1"
erjo@1727 5 CATEGORY="development"
erjo@1727 6 SHORT_DESC="The GNU Project Debugger."
erjo@1727 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@20041 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
erjo@1727 10 WEB_SITE="http://www.gnu.org/software/gdb/"
rcx@5984 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@16316 12 HOST_ARCH="i486 arm"
erjo@1727 13
pascal@20043 14 BUILD_DEPENDS="ncurses-dev readline-dev perl-dev makeinfo"
pascal@20043 15 SPLIT="gdb-dev"
pascal@15000 16
erjo@1727 17 # Rules to configure and make the package.
erjo@1727 18 compile_rules()
erjo@1727 19 {
pankso@16316 20 ./configure \
erjo@4818 21 --with-python=no \
pankso@16316 22 --disable-werror \
pankso@16316 23 $CONFIGURE_ARGS && \
pankso@16316 24 make && make install
erjo@1727 25 }
erjo@1727 26
erjo@1727 27 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1727 28 genpkg_rules()
erjo@1727 29 {
pascal@20043 30 case $PACKAGE in
pascal@20043 31 gdb)
pascal@20043 32 DEPENDS="ncurses expat glibc-dev"
pascal@20043 33 mkdir -p $fs/usr
pascal@20043 34 cp -a $install/usr/bin $fs/usr
pascal@20043 35 ;;
pascal@20043 36 gdb-dev)
pascal@20043 37 CAT="development|The GNU Project Debugger dev files."
pascal@20043 38 DEPENDS="gdb"
pascal@20043 39 mkdir -p $fs/usr
pascal@20043 40
pascal@20043 41 # Copying include dir if exists
pascal@20043 42 if [ -d "$install/usr/include" ]; then
pascal@20043 43 cp -a $install/usr/include $fs/usr
pascal@20043 44 fi
pascal@20043 45
pascal@20043 46 # Copying pkgconfig dir if exists
pascal@20043 47 if [ -d "$install/usr/lib/pkgconfig" ]; then
pascal@20043 48 test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/
pascal@20043 49 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
pascal@20043 50 fi
pascal@20043 51
pascal@20043 52 # Do not copy static libs, as they are all part of binutils
pascal@20043 53 # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
pascal@20043 54 # Copying static libs if exists
pascal@20043 55 ;;
pascal@20043 56 esac
erjo@1727 57 }