wok-next view gdb/receipt @ rev 20533

cairo-clock, grub4dos: fix CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 27 12:50:45 2018 +0200 (2018-03-27)
parents 1781255a5644
children 30af4e7aa239
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gdb"
4 VERSION="8.0.1"
5 CATEGORY="development"
6 SHORT_DESC="The GNU Project Debugger"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.gnu.org/software/gdb/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="ncurses-dev python-dev readline-dev perl-dev texinfo"
15 SPLIT="gdb-python:python gdb-dev"
17 compile_rules() {
18 case $SET in
19 '') SET_ARGS='--with-python=no';;
20 python) SET_ARGS='';;
21 esac
23 ./configure \
24 --disable-werror \
25 $SET_ARGS \
26 $CONFIGURE_ARGS &&
27 make && make install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 gdb)
33 mkdir -p $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 DEPENDS="ncurses expat glibc-dev"
36 ;;
37 gdb-python)
38 mkdir -p $fs/usr/share
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib $fs/usr
41 cp -a $install/usr/share/gdb $fs/usr/share
42 CAT="development|with Python support"
43 DEPENDS="ncurses expat glibc-dev python"
44 PROVIDE="gdb"
45 ;;
46 *-dev)
47 mkdir -p $fs/usr
49 # Copying include dir if exists
50 if [ -d "$install/usr/include" ]; then
51 cp -a $install/usr/include $fs/usr
52 fi
54 # Copying pkgconfig dir if exists
55 if [ -d "$install/usr/lib/pkgconfig" ]; then
56 test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/
57 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
58 fi
60 # Do not copy static libs, as they are all part of binutils
61 # binutils includes libbdf.*a, libiberty.a, and libopcodes.*a
62 # Copying static libs if exists
63 #if ( find $install/usr/lib -name "*.*a" > /dev/null ); then
64 # test -d $fs/usr/lib || mkdir -p $fs/usr/lib
65 # cp -a $install/usr/lib/*.*a $fs/usr/lib
66 #fi
67 DEPENDS="gdb"
68 ;;
69 esac
70 }