mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
new package: add package 'xbmc-audioencoder-vorbis'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
55b3a15998
commit
8189b41e3f
44
packages/mediacenter/xbmc-audioencoder-vorbis/package.mk
Normal file
44
packages/mediacenter/xbmc-audioencoder-vorbis/package.mk
Normal file
@ -0,0 +1,44 @@
|
||||
################################################################################
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="xbmc-audioencoder-vorbis"
|
||||
PKG_VERSION="143d10d"
|
||||
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 libogg libvorbis"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="xbmc-audioencoder-vorbis: A audioencoder addon for XBMC"
|
||||
PKG_LONGDESC="xbmc-audioencoder-vorbis 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 \
|
||||
-DOGG_INCLUDE_DIRS=$SYSROOT_PREFIX/usr/include \
|
||||
-DVORBIS_INCLUDE_DIRS=$SYSROOT_PREFIX/usr/include \
|
||||
-DVORBISENC_INCLUDE_DIRS=$SYSROOT_PREFIX/usr/include \
|
||||
..
|
||||
}
|
43
tools/mkpkg/mkpkg_xbmc-audioencoder-vorbis
Executable file
43
tools/mkpkg/mkpkg_xbmc-audioencoder-vorbis
Executable file
@ -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-vorbis.git ]; then
|
||||
git clone https://github.com/xbmc/audioencoder.vorbis.git -b master xbmc-audioencoder-vorbis.git
|
||||
fi
|
||||
|
||||
cd xbmc-audioencoder-vorbis.git
|
||||
git pull
|
||||
GIT_REV=`git log -n1 --format=%h`
|
||||
cd ..
|
||||
|
||||
echo "copying sources..."
|
||||
rm -rf xbmc-audioencoder-vorbis-$GIT_REV
|
||||
cp -R xbmc-audioencoder-vorbis.git xbmc-audioencoder-vorbis-$GIT_REV
|
||||
|
||||
echo "cleaning sources..."
|
||||
rm -rf xbmc-audioencoder-vorbis-$GIT_REV/.git
|
||||
|
||||
echo "packing sources..."
|
||||
tar cvJf xbmc-audioencoder-vorbis-$GIT_REV.tar.xz xbmc-audioencoder-vorbis-$GIT_REV
|
||||
|
||||
echo "remove temporary sourcedir..."
|
||||
rm -rf xbmc-audioencoder-vorbis-$GIT_REV
|
Loading…
x
Reference in New Issue
Block a user