libffi: split in libffi-host and libffi-target

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-10-02 20:20:40 +02:00
parent 69f0c79774
commit 50d7940454
4 changed files with 93 additions and 8 deletions

View File

@ -0,0 +1,44 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. config/options $1
$SCRIPTS/unpack libffi
setup_toolchain host
cd $BUILD/libffi-*
mkdir -p .build-host && cd .build-host
../configure --host=$HOST_NAME \
--build=$HOST_NAME \
--prefix=$ROOT/$TOOLCHAIN \
--sysconfdir=/etc \
--disable-static \
--enable-shared \
--disable-debug \
--enable-structs \
--enable-raw-api \
--disable-purify-safety \
--with-gnu-ld
make
make install

View File

@ -0,0 +1,36 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
PKG_NAME="libffi-host"
PKG_VERSION=""
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://sourceware.org/$PKG_NAME/"
PKG_URL=""
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="devel"
PKG_SHORTDESC="Foreign Function Interface Library"
PKG_LONGDESC="The libffi library provides a portable, high level programming interface to various calling conventions. This allows a programmer to call any function specified by a call interface description at run-time."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

View File

@ -23,13 +23,18 @@
. config/options $1 . config/options $1
cd $PKG_BUILD cd $PKG_BUILD
./configure --host=$TARGET_NAME \ mkdir -p .build-target && cd .build-target
--build=$HOST_NAME \ ../configure --host=$TARGET_NAME \
--prefix=/usr \ --build=$HOST_NAME \
--sysconfdir=/etc \ --prefix=/usr \
--disable-static \ --sysconfdir=/etc \
--enable-shared \ --disable-static \
--disable-debug \ --enable-shared \
--disable-debug \
--enable-structs \
--enable-raw-api \
--disable-purify-safety \
--with-gnu-ld
make make

View File

@ -23,4 +23,4 @@
. config/options $1 . config/options $1
mkdir -p $INSTALL/usr/lib mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/.libs/*.so* $INSTALL/usr/lib cp -P $PKG_BUILD/.build-target/.libs/*.so* $INSTALL/usr/lib