wok-next annotate gdb/receipt @ rev 20456

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 03:33:54 2018 +0200 (2018-03-02)
parents 1781255a5644
children 30af4e7aa239
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"
al@20456 6 SHORT_DESC="The GNU Project Debugger"
erjo@1727 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20456 9 WEB_SITE="http://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@20456 14 BUILD_DEPENDS="ncurses-dev python-dev readline-dev perl-dev texinfo"
al@20456 15 SPLIT="gdb-python:python gdb-dev"
pascal@15000 16
al@20456 17 compile_rules() {
al@20456 18 case $SET in
al@20456 19 '') SET_ARGS='--with-python=no';;
al@20456 20 python) SET_ARGS='';;
al@20456 21 esac
al@20456 22
pankso@16316 23 ./configure \
pankso@16316 24 --disable-werror \
al@20456 25 $SET_ARGS \
al@20456 26 $CONFIGURE_ARGS &&
pankso@16316 27 make && make install
erjo@1727 28 }
erjo@1727 29
al@20456 30 genpkg_rules() {
pascal@20043 31 case $PACKAGE in
al@20456 32 gdb)
al@20456 33 mkdir -p $fs/usr
al@20456 34 cp -a $install/usr/bin $fs/usr
al@20456 35 DEPENDS="ncurses expat glibc-dev"
al@20456 36 ;;
al@20456 37 gdb-python)
al@20456 38 mkdir -p $fs/usr/share
al@20456 39 cp -a $install/usr/bin $fs/usr
al@20456 40 cp -a $install/usr/lib $fs/usr
al@20456 41 cp -a $install/usr/share/gdb $fs/usr/share
al@20456 42 CAT="development|with Python support"
al@20456 43 DEPENDS="ncurses expat glibc-dev python"
al@20456 44 PROVIDE="gdb"
al@20456 45 ;;
al@20456 46 *-dev)
al@20456 47 mkdir -p $fs/usr
al@20456 48
al@20456 49 # Copying include dir if exists
al@20456 50 if [ -d "$install/usr/include" ]; then
al@20456 51 cp -a $install/usr/include $fs/usr
al@20456 52 fi
al@20456 53
al@20456 54 # Copying pkgconfig dir if exists
al@20456 55 if [ -d "$install/usr/lib/pkgconfig" ]; then
al@20456 56 test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/
al@20456 57 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
al@20456 58 fi
al@20456 59
al@20456 60 # Do not copy static libs, as they are all part of binutils
al@20456 61 # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
al@20456 62 # Copying static libs if exists
al@20456 63 #if ( find $install/usr/lib -name "*.*a" > /dev/null ); then
al@20456 64 # test -d $fs/usr/lib || mkdir -p $fs/usr/lib
al@20456 65 # cp -a $install/usr/lib/*.*a $fs/usr/lib
al@20456 66 #fi
al@20456 67 DEPENDS="gdb"
al@20456 68 ;;
pascal@20043 69 esac
erjo@1727 70 }