mpc: 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 17:48:20 +01:00
parent c2c7f4cc89
commit 02ad103070
3 changed files with 13 additions and 45 deletions

View File

@ -23,12 +23,18 @@ PKG_ARCH="any"
PKG_LICENSE="LGPL"
PKG_SITE="http://www.multiprecision.org"
PKG_URL="http://www.multiprecision.org/mpc/download/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="ccache:host gmp:host mpfr"
PKG_DEPENDS_HOST=""
PKG_BUILD_DEPENDS_HOST="ccache:host gmp:host mpfr"
PKG_PRIORITY="optional"
PKG_SECTION="toolchain/math"
PKG_SECTION="devel"
PKG_SHORTDESC="mpc: A C library for the arithmetic of high precision complex numbers"
PKG_LONGDESC="pc is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. It is built upon and follows the same principles as Mpfr."
PKG_IS_ADDON="no"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
PKG_CONFIGURE_OPTS_HOST="--target=$TARGET_NAME \
--enable-shared \
--disable-static \
--with-gmp=$ROOT/$TOOLCHAIN \
--with-mpfr=$ROOT/$TOOLCHAIN"

View File

@ -24,10 +24,10 @@ PKG_LICENSE="GPL"
PKG_SITE="http://gcc.gnu.org/"
PKG_URL="ftp://ftp.gnu.org/gnu/gcc/$PKG_NAME-$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="ccache:host autoconf-2.64 binutils:host gmp:host mpfr mpc cloog:host ppl:host"
PKG_BUILD_DEPENDS_BOOTSTRAP="ccache:host autoconf-2.64 binutils:host gmp:host mpfr mpc cloog:host ppl:host"
PKG_BUILD_DEPENDS="ccache:host autoconf-2.64 binutils:host gmp:host mpfr mpc:host cloog:host ppl:host"
PKG_BUILD_DEPENDS_BOOTSTRAP="ccache:host autoconf-2.64 binutils:host gmp:host mpfr mpc:host cloog:host ppl:host"
PKG_BUILD_DEPENDS_TARGET="gcc:host"
PKG_BUILD_DEPENDS_HOST="ccache:host autoconf-2.64 binutils:host gmp:host mpfr mpc cloog:host ppl:host eglibc"
PKG_BUILD_DEPENDS_HOST="ccache:host autoconf-2.64 binutils:host gmp:host mpfr mpc:host cloog:host ppl:host eglibc"
PKG_PRIORITY="optional"
PKG_SECTION="lang"
PKG_SHORTDESC="gcc: The GNU Compiler Collection Version 4 (aka GNU C Compiler)"

View File

@ -1,38 +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
mkdir -p objdir
cd objdir
../configure --host=$HOST_NAME \
--build=$HOST_NAME \
--target=$TARGET_NAME \
--prefix=$ROOT/$TOOLCHAIN \
--enable-shared \
--disable-static \
--with-gmp="$ROOT/$TOOLCHAIN" \
--with-mpfr="$ROOT/$TOOLCHAIN" \
make
make install