From b2de5492ad90621e0dd7fd892fdb360e0838ab80 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 19 Jul 2014 00:29:23 +0200 Subject: [PATCH] new package: add package 'xbmc-audioencoder-flac' Signed-off-by: Stephan Raue --- .../xbmc-audioencoder-flac/package.mk | 43 +++++++++++++++++++ tools/mkpkg/mkpkg_xbmc-audioencoder-flac | 43 +++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 packages/mediacenter/xbmc-audioencoder-flac/package.mk create mode 100755 tools/mkpkg/mkpkg_xbmc-audioencoder-flac diff --git a/packages/mediacenter/xbmc-audioencoder-flac/package.mk b/packages/mediacenter/xbmc-audioencoder-flac/package.mk new file mode 100644 index 0000000000..ede1fced4f --- /dev/null +++ b/packages/mediacenter/xbmc-audioencoder-flac/package.mk @@ -0,0 +1,43 @@ +################################################################################ +# 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 . +################################################################################ + +PKG_NAME="xbmc-audioencoder-flac" +PKG_VERSION="7aee9d0" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.xbmc.org/" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS_TARGET="toolchain flac" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="xbmc-audioencoder-flac: A audioencoder addon for XBMC" +PKG_LONGDESC="xbmc-audioencoder-flac is a audioencoder addon for XBMC" + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +configure_target() { + cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_MODULE_PATH=$SYSROOT_PREFIX/usr/lib/xbmc \ + -DCMAKE_PREFIX_PATH=$SYSROOT_PREFIX/usr \ + -DFLAC_INCLUDE_DIRS=$SYSROOT_PREFIX/usr/include \ + -DOGG_INCLUDE_DIRS=$SYSROOT_PREFIX/usr/include \ + .. +} diff --git a/tools/mkpkg/mkpkg_xbmc-audioencoder-flac b/tools/mkpkg/mkpkg_xbmc-audioencoder-flac new file mode 100755 index 0000000000..d507468f81 --- /dev/null +++ b/tools/mkpkg/mkpkg_xbmc-audioencoder-flac @@ -0,0 +1,43 @@ +#!/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 +################################################################################ + +echo "getting sources..." + if [ ! -d xbmc-audioencoder-flac.git ]; then + git clone https://github.com/xbmc/audioencoder.flac.git -b master xbmc-audioencoder-flac.git + fi + + cd xbmc-audioencoder-flac.git + git pull + GIT_REV=`git log -n1 --format=%h` + cd .. + +echo "copying sources..." + rm -rf xbmc-audioencoder-flac-$GIT_REV + cp -R xbmc-audioencoder-flac.git xbmc-audioencoder-flac-$GIT_REV + +echo "cleaning sources..." + rm -rf xbmc-audioencoder-flac-$GIT_REV/.git + +echo "packing sources..." + tar cvJf xbmc-audioencoder-flac-$GIT_REV.tar.xz xbmc-audioencoder-flac-$GIT_REV + +echo "remove temporary sourcedir..." + rm -rf xbmc-audioencoder-flac-$GIT_REV