wok-next diff 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 |
line diff
1.1 --- a/gdb/receipt Sun Oct 22 20:34:53 2017 +0200 1.2 +++ b/gdb/receipt Sun Oct 22 21:23:15 2017 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="gdb" 1.8 VERSION="8.0.1" 1.9 @@ -11,8 +11,8 @@ 1.10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.11 HOST_ARCH="i486 arm" 1.12 1.13 -DEPENDS="ncurses expat glibc-dev" 1.14 -BUILD_DEPENDS="ncurses-dev readline-dev perl-dev" 1.15 +BUILD_DEPENDS="ncurses-dev readline-dev perl-dev makeinfo" 1.16 +SPLIT="gdb-dev" 1.17 1.18 # Rules to configure and make the package. 1.19 compile_rules() 1.20 @@ -27,6 +27,31 @@ 1.21 # Rules to gen a SliTaz package suitable for Tazpkg. 1.22 genpkg_rules() 1.23 { 1.24 - mkdir -p $fs/usr 1.25 - cp -a $install/usr/bin $fs/usr 1.26 + case $PACKAGE in 1.27 + gdb) 1.28 + DEPENDS="ncurses expat glibc-dev" 1.29 + mkdir -p $fs/usr 1.30 + cp -a $install/usr/bin $fs/usr 1.31 + ;; 1.32 + gdb-dev) 1.33 + CAT="development|The GNU Project Debugger dev files." 1.34 + DEPENDS="gdb" 1.35 + mkdir -p $fs/usr 1.36 + 1.37 + # Copying include dir if exists 1.38 + if [ -d "$install/usr/include" ]; then 1.39 + cp -a $install/usr/include $fs/usr 1.40 + fi 1.41 + 1.42 + # Copying pkgconfig dir if exists 1.43 + if [ -d "$install/usr/lib/pkgconfig" ]; then 1.44 + test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/ 1.45 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.46 + fi 1.47 + 1.48 + # Do not copy static libs, as they are all part of binutils 1.49 + # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a 1.50 + # Copying static libs if exists 1.51 + ;; 1.52 + esac 1.53 }