diff --git a/packages/devel/marvell-libbmm/build b/packages/devel/marvell-libbmm/build new file mode 100755 index 0000000000..20a99a0a0c --- /dev/null +++ b/packages/devel/marvell-libbmm/build @@ -0,0 +1,33 @@ +#!/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 -f Makefile_general libbmm.so.0u + +mkdir -p $SYSROOT_PREFIX/usr/lib + cp -PR libbmm.so* $SYSROOT_PREFIX/usr/lib + +mkdir -p $SYSROOT_PREFIX/usr/include + cp -PR bmm_lib.h $SYSROOT_PREFIX/usr/include diff --git a/packages/devel/marvell-libbmm/install b/packages/devel/marvell-libbmm/install new file mode 100755 index 0000000000..25c228e1a0 --- /dev/null +++ b/packages/devel/marvell-libbmm/install @@ -0,0 +1,29 @@ +#!/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/libbmm.so* $INSTALL/usr/lib + +mkdir -p $INSTALL/lib/udev/rules.d + cp -PR $PKG_BUILD/etc/udev/rules.d/*.rules $INSTALL/lib/udev/rules.d \ No newline at end of file diff --git a/packages/devel/marvell-libbmm/meta b/packages/devel/marvell-libbmm/meta new file mode 100644 index 0000000000..c017bf97f9 --- /dev/null +++ b/packages/devel/marvell-libbmm/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-libbmm" +PKG_VERSION="0.2.0" +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="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="marvell-libbmm: Allocate, manage and share large block of physical continuous memory." +PKG_LONGDESC="marvell-libbmm: Allocate, manage and share large block of physical continuous memory." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/devel/marvell-libbmm/patches/marvell-libbmm-0.2.0-cldflags.patch b/packages/devel/marvell-libbmm/patches/marvell-libbmm-0.2.0-cldflags.patch new file mode 100644 index 0000000000..a6ae30f902 --- /dev/null +++ b/packages/devel/marvell-libbmm/patches/marvell-libbmm-0.2.0-cldflags.patch @@ -0,0 +1,27 @@ +diff -Naur libbmm-0.2.0/Makefile_general libbmm-0.2.0.patch/Makefile_general +--- libbmm-0.2.0/Makefile_general 2011-03-07 18:48:46.000000000 +0100 ++++ libbmm-0.2.0.patch/Makefile_general 2012-12-24 20:19:47.791960702 +0100 +@@ -30,20 +30,20 @@ + uninstall-host uninstall-target + + .c.o: +- ${CC} -fPIC -o $@ -c $< ++ ${CC} -fPIC ${CFLAGS} -o $@ -c $< + + all: compile install-host install-target + + compile: bmm_test libbmm.so libbmm.a + + bmm_test: libbmm.so.$(ABI_VERSION) ${bmm_test_obj} +- ${CC} -o $@ ${bmm_test_obj} -L. -lbmm ++ ${CC} ${LDLAGS} -o $@ ${bmm_test_obj} -L. -lbmm + + libbmm.a: ${bmm_lib_obj} + ${AR} -rcs $@ ${bmm_lib_obj} + + libbmm.so.$(ABI_VERSION): ${bmm_lib_obj} +- ${CC} -g -s -shared -Wl,-soname,$@ -o $@.$(ABI_REVISION) ${bmm_lib_obj} ++ ${CC} -g -s ${LDFLAGS} -shared -Wl,-soname,$@ -o $@.$(ABI_REVISION) ${bmm_lib_obj} + ln -s $@.$(ABI_REVISION) $@ + ln -s $@.$(ABI_REVISION) libbmm.so +