# SliTaz package receipt.

PACKAGE="cgdb"
VERSION="0.6.5"
CATEGORY="development"
SHORT_DESC="Curses interface for GDB"
MAINTAINER="erjo@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://cgdb.sourceforge.net/"
WGET_URL="http://prdownloads.sourceforge.net/cgdb/$TARBALL"
TAGS="debugger"
CROSS="error: cannot check for file existence when cross compiling"

DEPENDS="gdb ncurses readline"
BUILD_DEPENDS="ncurses-dev readline-dev"

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--build=$HOST_SYSTEM \
		--host=$HOST_SYSTEM && 
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $_pkg/usr/bin $fs/usr
}