From 98c9fde73603fcad26b026db3a54a76e89958f8e Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 21 Jul 2013 19:04:08 +0200 Subject: [PATCH] gd: convert to new package format Signed-off-by: Stephan Raue --- packages/debug/gdb/build | 43 ------------------------- packages/debug/gdb/install | 28 ---------------- packages/debug/gdb/{meta => package.mk} | 22 +++++++++++-- 3 files changed, 19 insertions(+), 74 deletions(-) delete mode 100755 packages/debug/gdb/build delete mode 100755 packages/debug/gdb/install rename packages/debug/gdb/{meta => package.mk} (72%) diff --git a/packages/debug/gdb/build b/packages/debug/gdb/build deleted file mode 100755 index 5be7db90cf..0000000000 --- a/packages/debug/gdb/build +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -export bash_cv_have_mbstate_t=set - -export CC_FOR_BUILD="$HOST_CC" -export CFLAGS_FOR_BUILD="$HOST_CFLAGS" - -cd $PKG_BUILD -mkdir -p objdir && cd objdir - -../configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --disable-nls \ - --disable-sim \ - --without-x \ - --disable-tui \ - --disable-libada \ - --disable-werror \ - -make diff --git a/packages/debug/gdb/install b/packages/debug/gdb/install deleted file mode 100755 index 2e39e1e5f7..0000000000 --- a/packages/debug/gdb/install +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/usr/bin - cp $PKG_BUILD/objdir/$1/$1 $INSTALL/usr/bin - cp $PKG_BUILD/objdir/$1/gdbserver/gdbserver $INSTALL/usr/bin - cp $PKG_BUILD/objdir/$1/gdbserver/gdbreplay $INSTALL/usr/bin diff --git a/packages/debug/gdb/meta b/packages/debug/gdb/package.mk similarity index 72% rename from packages/debug/gdb/meta rename to packages/debug/gdb/package.mk index 599e26f696..8fe274d375 100644 --- a/packages/debug/gdb/meta +++ b/packages/debug/gdb/package.mk @@ -25,13 +25,29 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.gnu.org/software/gdb/" PKG_URL="http://ftp.gnu.org/gnu/gdb/$PKG_NAME-$PKG_VERSION.tar.bz2" -#PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_DEPENDS="zlib ncurses expat" -PKG_BUILD_DEPENDS="toolchain zlib ncurses expat" +PKG_BUILD_DEPENDS_TARGET="toolchain zlib ncurses expat" PKG_PRIORITY="optional" PKG_SECTION="debug" PKG_SHORTDESC="gdb: The GNU Debugger" PKG_LONGDESC="The purpose of a debugger such as GDB is to allow you to see what is going on ``inside'' another program while it executes--or what another program was doing at the moment it crashed." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="no" + +CC_FOR_BUILD="$HOST_CC" +CFLAGS_FOR_BUILD="$HOST_CFLAGS" + +PKG_CONFIGURE_OPTS_TARGET="bash_cv_have_mbstate_t=set \ + --disable-shared \ + --enable-static \ + --disable-nls \ + --disable-sim \ + --without-x \ + --disable-tui \ + --disable-libada \ + --disable-werror" + +post_makeinstall_target() { + rm -rf $INSTALL/usr/share/gdb/python +}