From 95fc06c22cc2e36b31234e3fcb8d1ad6c9843fab Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 5 Mar 2013 16:38:58 +0100 Subject: [PATCH] Revert "remove package 'libelf'" This reverts commit ca5e59d6f6ae1be8490688a47646028549736517. --- packages/toolchain/devel/libelf/build | 37 +++++++++++++++++++++++++++ packages/toolchain/devel/libelf/meta | 36 ++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100755 packages/toolchain/devel/libelf/build create mode 100644 packages/toolchain/devel/libelf/meta diff --git a/packages/toolchain/devel/libelf/build b/packages/toolchain/devel/libelf/build new file mode 100755 index 0000000000..5cd945bc16 --- /dev/null +++ b/packages/toolchain/devel/libelf/build @@ -0,0 +1,37 @@ +#!/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 + +setup_toolchain host + +cd $PKG_BUILD +mkdir -p objdir && cd objdir +../configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --target=$TARGET_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --enable-shared \ + --disable-static \ + +make +make install diff --git a/packages/toolchain/devel/libelf/meta b/packages/toolchain/devel/libelf/meta new file mode 100644 index 0000000000..073a6ba772 --- /dev/null +++ b/packages/toolchain/devel/libelf/meta @@ -0,0 +1,36 @@ +################################################################################ +# 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 +################################################################################ + +PKG_NAME="libelf" +PKG_VERSION="0.8.13" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.mr511.de/software/" +PKG_URL="http://www.mr511.de/software/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="ccache" +PKG_PRIORITY="optional" +PKG_SECTION="toolchain/devel" +PKG_SHORTDESC="libelf: ELF object file access library" +PKG_LONGDESC="Libelf is a library to access ELF object files." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"