wok-next 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 | f7f621732ebe |
children | 1781255a5644 |
files | gdb-python/receipt gdb/receipt |
line diff
1.1 --- a/gdb-python/receipt Sun Oct 22 20:53:07 2017 +0200 1.2 +++ b/gdb-python/receipt Sun Oct 22 21:23:15 2017 +0200 1.3 @@ -13,7 +13,7 @@ 1.4 PROVIDE="gdb" 1.5 1.6 DEPENDS="ncurses expat glibc-dev python" 1.7 -BUILD_DEPENDS="ncurses-dev python-dev perl-dev" 1.8 +BUILD_DEPENDS="ncurses-dev python-dev perl-dev makeinfo" 1.9 1.10 # Rules to configure and make the package. 1.11 compile_rules()
2.1 --- a/gdb/receipt Sun Oct 22 20:53:07 2017 +0200 2.2 +++ b/gdb/receipt Sun Oct 22 21:23:15 2017 +0200 2.3 @@ -1,4 +1,4 @@ 2.4 -# SliTaz package receipt. 2.5 +# SliTaz package receipt v2. 2.6 2.7 PACKAGE="gdb" 2.8 VERSION="8.0.1" 2.9 @@ -11,8 +11,8 @@ 2.10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 2.11 HOST_ARCH="i486 arm" 2.12 2.13 -DEPENDS="ncurses expat glibc-dev" 2.14 -BUILD_DEPENDS="ncurses-dev readline-dev perl-dev" 2.15 +BUILD_DEPENDS="ncurses-dev readline-dev perl-dev makeinfo" 2.16 +SPLIT="gdb-dev" 2.17 2.18 # Rules to configure and make the package. 2.19 compile_rules() 2.20 @@ -27,6 +27,31 @@ 2.21 # Rules to gen a SliTaz package suitable for Tazpkg. 2.22 genpkg_rules() 2.23 { 2.24 - mkdir -p $fs/usr 2.25 - cp -a $install/usr/bin $fs/usr 2.26 + case $PACKAGE in 2.27 + gdb) 2.28 + DEPENDS="ncurses expat glibc-dev" 2.29 + mkdir -p $fs/usr 2.30 + cp -a $install/usr/bin $fs/usr 2.31 + ;; 2.32 + gdb-dev) 2.33 + CAT="development|The GNU Project Debugger dev files." 2.34 + DEPENDS="gdb" 2.35 + mkdir -p $fs/usr 2.36 + 2.37 + # Copying include dir if exists 2.38 + if [ -d "$install/usr/include" ]; then 2.39 + cp -a $install/usr/include $fs/usr 2.40 + fi 2.41 + 2.42 + # Copying pkgconfig dir if exists 2.43 + if [ -d "$install/usr/lib/pkgconfig" ]; then 2.44 + test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/ 2.45 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 2.46 + fi 2.47 + 2.48 + # Do not copy static libs, as they are all part of binutils 2.49 + # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a 2.50 + # Copying static libs if exists 2.51 + ;; 2.52 + esac 2.53 }