diff --git a/packages/devel/marvell-libvmeta/build b/packages/devel/marvell-libvmeta/build new file mode 100755 index 0000000000..b8d34531c7 --- /dev/null +++ b/packages/devel/marvell-libvmeta/build @@ -0,0 +1,27 @@ +#!/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 + +cd $PKG_BUILD + +make libvmeta.so diff --git a/packages/devel/marvell-libvmeta/install b/packages/devel/marvell-libvmeta/install new file mode 100755 index 0000000000..0a978d3d03 --- /dev/null +++ b/packages/devel/marvell-libvmeta/install @@ -0,0 +1,26 @@ +#!/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 + +mkdir -p $INSTALL/usr/lib + cp -P $PKG_BUILD/libvmeta.so* $INSTALL/usr/lib diff --git a/packages/devel/marvell-libvmeta/meta b/packages/devel/marvell-libvmeta/meta new file mode 100644 index 0000000000..530d49f25f --- /dev/null +++ b/packages/devel/marvell-libvmeta/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-libvmeta" +PKG_VERSION="3.8.3" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="free to use" +PKG_SITE="http://www.marvell.com" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS="marvell-libbmm" +PKG_BUILD_DEPENDS="toolchain marvell-libbmm" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="marvell-libvmeta: vmeta library on marvell dove platform." +PKG_LONGDESC="marvell-libvmeta: vmeta library on marvell dove platform." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/devel/marvell-libvmeta/patches/marvell-libvmeta-3.8.3-cldflags.patch b/packages/devel/marvell-libvmeta/patches/marvell-libvmeta-3.8.3-cldflags.patch new file mode 100644 index 0000000000..579ea6e062 --- /dev/null +++ b/packages/devel/marvell-libvmeta/patches/marvell-libvmeta-3.8.3-cldflags.patch @@ -0,0 +1,21 @@ +diff -Naur marvell-libvmeta-3.8.3/Makefile marvell-libvmeta-3.8.3.patch/Makefile +--- marvell-libvmeta-3.8.3/Makefile 2011-03-07 18:51:17.000000000 +0100 ++++ marvell-libvmeta-3.8.3.patch/Makefile 2012-12-27 01:14:34.043086675 +0100 +@@ -22,7 +22,7 @@ + uninstall-host uninstall-target + + .c.o: +- ${CC} -fPIC -o $@ -c $< ++ ${CC} ${CFLAGS} -fPIC -o $@ -c $< + + all: compile install-host install-target + +@@ -32,7 +32,7 @@ + ${AR} -rcs $@ ${vmeta_lib_obj} + + libvmeta.so: ${vmeta_lib_obj} +- ${CC} -g -s -shared -Wl,-soname,$@ -o $@ ${vmeta_lib_obj} -lbmm ++ ${CC} -g -s ${LDFLAGS} -shared -Wl,-soname,$@ -o $@ ${vmeta_lib_obj} -lbmm + + clean: clean-local +