m4: convert to new package format, move package

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-01-09 23:54:56 +01:00
parent b3fd5fec54
commit 751fa473a9
6 changed files with 13 additions and 41 deletions

View File

@ -26,7 +26,7 @@ PKG_SITE="http://sources.redhat.com/autoconf/"
PKG_URL="http://ftp.gnu.org/gnu/autoconf/$PKG_NAME.tar.bz2" PKG_URL="http://ftp.gnu.org/gnu/autoconf/$PKG_NAME.tar.bz2"
PKG_SOURCE_DIR="$PKG_NAME" PKG_SOURCE_DIR="$PKG_NAME"
PKG_DEPENDS_HOST="" PKG_DEPENDS_HOST=""
PKG_BUILD_DEPENDS_HOST="ccache:host m4" PKG_BUILD_DEPENDS_HOST="ccache:host m4:host"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="devel" PKG_SECTION="devel"
PKG_SHORTDESC="autoconf: A GNU tool for automatically configuring source code" PKG_SHORTDESC="autoconf: A GNU tool for automatically configuring source code"

View File

@ -26,7 +26,7 @@ PKG_SITE="http://sources.redhat.com/autoconf/"
PKG_URL="http://ftp.gnu.org/gnu/autoconf/$PKG_NAME.tar.bz2" PKG_URL="http://ftp.gnu.org/gnu/autoconf/$PKG_NAME.tar.bz2"
PKG_SOURCE_DIR="$PKG_NAME" PKG_SOURCE_DIR="$PKG_NAME"
PKG_DEPENDS_HOST="" PKG_DEPENDS_HOST=""
PKG_BUILD_DEPENDS_HOST="ccache:host m4" PKG_BUILD_DEPENDS_HOST="ccache:host m4:host"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="devel" PKG_SECTION="devel"
PKG_SHORTDESC="autoconf: A GNU tool for automatically configuring source code" PKG_SHORTDESC="autoconf: A GNU tool for automatically configuring source code"

View File

@ -24,7 +24,7 @@ PKG_LICENSE="GPL"
PKG_SITE="http://sources.redhat.com/autoconf/" PKG_SITE="http://sources.redhat.com/autoconf/"
PKG_URL="http://ftp.gnu.org/gnu/autoconf/$PKG_NAME-$PKG_VERSION.tar.xz" PKG_URL="http://ftp.gnu.org/gnu/autoconf/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_HOST="" PKG_DEPENDS_HOST=""
PKG_BUILD_DEPENDS_HOST="ccache:host m4 gettext:host" PKG_BUILD_DEPENDS_HOST="ccache:host m4:host gettext:host"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="toolchain/devel" PKG_SECTION="toolchain/devel"
PKG_SHORTDESC="autoconf: A GNU tool for automatically configuring source code" PKG_SHORTDESC="autoconf: A GNU tool for automatically configuring source code"

View File

@ -23,12 +23,18 @@ PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="ftp://ftp.gnu.org/pub/gnu/m4/" PKG_SITE="ftp://ftp.gnu.org/pub/gnu/m4/"
PKG_URL="http://ftp.gnu.org/gnu/m4/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_URL="http://ftp.gnu.org/gnu/m4/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="" PKG_DEPENDS_HOST=""
PKG_BUILD_DEPENDS="ccache:host" PKG_BUILD_DEPENDS_HOST="ccache:host"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="toolchain/devel" PKG_SECTION="devel"
PKG_SHORTDESC="m4: The m4 macro processor" PKG_SHORTDESC="m4: The m4 macro processor"
PKG_LONGDESC="GNU 'M4' is an implementation of the traditional Unix macro processor. It is mostly SVR4 compatible, although it has some extensions (for example, handling more than 9 positional parameters to macros). 'M4' also has built-in functions for including files, running shell commands, doing arithmetic, etc. Autoconf needs GNU 'M4' for generating 'configure' scripts, but not for running them." PKG_LONGDESC="GNU 'M4' is an implementation of the traditional Unix macro processor. It is mostly SVR4 compatible, although it has some extensions (for example, handling more than 9 positional parameters to macros). 'M4' also has built-in functions for including files, running shell commands, doing arithmetic, etc. Autoconf needs GNU 'M4' for generating 'configure' scripts, but not for running them."
PKG_IS_ADDON="no"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no" PKG_AUTORECONF="no"
PKG_CONFIGURE_OPTS_HOST="gl_cv_func_gettimeofday_clobber=no --target=$TARGET_NAME"
post_makeinstall_host() {
make prefix=$SYSROOT_PREFIX/usr install
}

View File

@ -1,34 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC 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 of the License, or
# (at your option) any later version.
#
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. config/options $1
setup_toolchain host
cd $PKG_BUILD
gl_cv_func_gettimeofday_clobber=no \
./configure --host=$HOST_NAME \
--build=$HOST_NAME \
--target=$TARGET_NAME \
--prefix=$ROOT/$TOOLCHAIN \
make
make install
make prefix=$SYSROOT_PREFIX/usr install