diff --git a/packages/multimedia/marvell-ipp/build b/packages/multimedia/marvell-ipp/build new file mode 100755 index 0000000000..25b18e2279 --- /dev/null +++ b/packages/multimedia/marvell-ipp/build @@ -0,0 +1,44 @@ +#!/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 + +if [ "$TARGET_FLOAT" = "softfp" -o "$TARGET_FLOAT" = "soft" ]; then + VMETA_LIBDIR="vmeta/soft/lib" +elif [ "$TARGET_FLOAT" = "hard" ]; then + VMETA_LIBDIR="vmeta/hard/lib" +fi + +# dont build parallel + MAKEFLAGS=-j1 + +cd $PKG_BUILD +cd example/misc/build/wmmx2_linux + make -f makefile_miscGen +cd - + +mkdir -p $SYSROOT_PREFIX/usr/include/marvell-ipp + cp -PR include/* $SYSROOT_PREFIX/usr/include/marvell-ipp + +mkdir -p $SYSROOT_PREFIX/usr/lib + cp -P lib/libmiscgen.so $SYSROOT_PREFIX/usr/lib + cp -PR $VMETA_LIBDIR/*.so* $SYSROOT_PREFIX/usr/lib diff --git a/packages/multimedia/marvell-ipp/install b/packages/multimedia/marvell-ipp/install new file mode 100755 index 0000000000..33bdf3e416 --- /dev/null +++ b/packages/multimedia/marvell-ipp/install @@ -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 + + +if [ "$TARGET_FLOAT" = "softfp" -o "$TARGET_FLOAT" = "soft" ]; then + VMETA_LIBDIR="vmeta/soft/lib" +elif [ "$TARGET_FLOAT" = "hard" ]; then + VMETA_LIBDIR="vmeta/hard/lib" +fi + +mkdir -p $INSTALL/usr/lib + cp -PR $PKG_BUILD/$VMETA_LIBDIR/*.so* $INSTALL/usr/lib + cp -P $PKG_BUILD/lib/libmiscgen.so $SYSROOT_PREFIX/usr/lib + +mkdir -p $INSTALL/lib/udev/rules.d + cp -PR $PKG_BUILD/etc/*.rules $INSTALL/lib/udev/rules.d diff --git a/packages/multimedia/marvell-ipp/meta b/packages/multimedia/marvell-ipp/meta new file mode 100644 index 0000000000..8e1ff2e23b --- /dev/null +++ b/packages/multimedia/marvell-ipp/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="marvell-ipp" +PKG_VERSION="0.2.1" +PKG_REV="1" +PKG_ARCH="arm" +PKG_LICENSE="nonfree" +PKG_SITE="http://www.marvell.com" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS="marvell-libvmeta" +PKG_BUILD_DEPENDS="toolchain marvell-libvmeta" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="marvell-ipp: Marvell IPP Codecs" +PKG_LONGDESC="marvell-ipp: Marvell IPP Codecs" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/multimedia/marvell-ipp/patches/marvell-ipp-0.2.1-cross.patch b/packages/multimedia/marvell-ipp/patches/marvell-ipp-0.2.1-cross.patch new file mode 100644 index 0000000000..f1757a5775 --- /dev/null +++ b/packages/multimedia/marvell-ipp/patches/marvell-ipp-0.2.1-cross.patch @@ -0,0 +1,41 @@ +diff -Naur marvell-ipp-0.2.1/example/Rules.make marvell-ipp-0.2.1.patch/example/Rules.make +--- marvell-ipp-0.2.1/example/Rules.make 2011-03-07 18:51:40.000000000 +0100 ++++ marvell-ipp-0.2.1.patch/example/Rules.make 2012-12-26 23:48:51.811467005 +0100 +@@ -28,26 +28,26 @@ + #PATH_GNU_BIN=/usr/local/arm-marvell-linux-gnueabi/bin + PATH_GNU_BIN=/usr/local/arm-marvell-linux-gnueabi-4.4.4/bin + TOOLCHAIN_PREFIX=arm-marvell-linux-gnueabi +-CFLAGS= -mcpu=marvell-f ++#CFLAGS= -mcpu=marvell-f + endif + + #============================================================================== + # GNU binaries (server admin update) + #============================================================================== +-CC=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc +-CXX=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc +-AR=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-ar +-AS=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-as +-LN=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc ++CC ?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc ++CXX?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc ++AR ?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-ar ++AS ?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-as ++LN ?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc + + #============================================================================== + # GNU build options: (build engineer update) + #============================================================================== +-CFLAGS+= -O3 -Wall -mabi=aapcs-linux -fPIC -D_IPP_LINUX +-CXXFLAGS= $(CFLAGS) +-ASFLAGS= -k -mcpu=iwmmxt2 +-ARFLAGS= +-LNFLAGS= -lpthread -ldl -lm -lrt $(PGO_FLAGS) -Wl,-R ./ ++CFLAGS += -O3 -Wall -mabi=aapcs-linux -fPIC -D_IPP_LINUX ++CXXFLAGS ?= $(CFLAGS) ++ASFLAGS ?= -k -mcpu=iwmmxt2 ++ARFLAGS = ++LNFLAGS ?= -lpthread -ldl -lm -lrt $(PGO_FLAGS) -Wl,-R ./ + + #============================================================================== + # User root path (user update)