mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
boblightd: convert to new package format
This commit is contained in:
parent
de41ee4068
commit
81b7b58cb5
@ -1,40 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# Boblightd addon maintained by Adam Boeglin: adamrb@gmail.com
|
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -P $PKG_BUILD/src/.libs/libboblight.so* $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
|
|
||||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
|
|
||||||
cp -P $PKG_BUILD/src/boblightd $ADDON_BUILD/$PKG_ADDON_ID/bin
|
|
||||||
cp -P $PKG_BUILD/src/boblight-constant $ADDON_BUILD/$PKG_ADDON_ID/bin
|
|
||||||
if [ "$DISPLAYSERVER" = "xorg-server" ] ; then
|
|
||||||
cp -P $PKG_BUILD/src/boblight-X11 $ADDON_BUILD/$PKG_ADDON_ID/bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config
|
|
||||||
cp -R $PKG_DIR/config/boblight.conf $ADDON_BUILD/$PKG_ADDON_ID/config
|
|
||||||
if [ "$DISPLAYSERVER" = "xorg-server" ] ; then
|
|
||||||
cp -R $PKG_DIR/config/boblight.X11.sample $ADDON_BUILD/$PKG_ADDON_ID/config
|
|
||||||
fi
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# Boblightd addon maintained by Adam Boeglin: adamrb@gmail.com
|
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
if [ ! "$OPENGL" = "Mesa" ]; then
|
|
||||||
EXTRAOPTS="--without-opengl"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! "$DISPLAYSERVER" = "xorg-server" ] ; then
|
|
||||||
EXTRAOPTS="$EXTRAOPTS --without-x11"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd $PKG_BUILD
|
|
||||||
./configure --host=$TARGET_NAME \
|
|
||||||
--build=$HOST_NAME \
|
|
||||||
--prefix=/usr \
|
|
||||||
--enable-shared \
|
|
||||||
--disable-static \
|
|
||||||
$EXTRAOPTS \
|
|
||||||
--without-portaudio \
|
|
||||||
|
|
||||||
make
|
|
||||||
|
|
||||||
$MAKEINSTALL
|
|
@ -23,8 +23,8 @@ PKG_ARCH="any"
|
|||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="http://code.google.com/p/boblight"
|
PKG_SITE="http://code.google.com/p/boblight"
|
||||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
PKG_DEPENDS="libusb"
|
PKG_DEPENDS_TARGET=""
|
||||||
PKG_BUILD_DEPENDS="toolchain libusb"
|
PKG_BUILD_DEPENDS_TARGET="toolchain libusb"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="service/multimedia"
|
PKG_SECTION="service/multimedia"
|
||||||
PKG_SHORTDESC="boblightd: an ambilight controller."
|
PKG_SHORTDESC="boblightd: an ambilight controller."
|
||||||
@ -44,3 +44,35 @@ if [ "$OPENGL_SUPPORT" = "yes" ] ; then
|
|||||||
PKG_DEPENDS="$PKG_DEPENDS Mesa glu"
|
PKG_DEPENDS="$PKG_DEPENDS Mesa glu"
|
||||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS Mesa glu"
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS Mesa glu"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! "$OPENGL" = "Mesa" ]; then
|
||||||
|
EXTRAOPTS="--without-opengl"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! "$DISPLAYSERVER" = "xorg-server" ] ; then
|
||||||
|
EXTRAOPTS="$EXTRAOPTS --without-x11"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="$EXTRAOPTS --without-portaudio"
|
||||||
|
|
||||||
|
makeinstall_target() {
|
||||||
|
: # nothing to do here
|
||||||
|
}
|
||||||
|
|
||||||
|
addon() {
|
||||||
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib
|
||||||
|
cp -P $PKG_BUILD/.$TARGET_NAME/src/.libs/libboblight.so* $ADDON_BUILD/$PKG_ADDON_ID/lib
|
||||||
|
|
||||||
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
cp -P $PKG_BUILD/.$TARGET_NAME/src/boblightd $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
cp -P $PKG_BUILD/.$TARGET_NAME/src/boblight-constant $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
if [ "$DISPLAYSERVER" = "xorg-server" ] ; then
|
||||||
|
cp -P $PKG_BUILD/.$TARGET_NAME/src/boblight-X11 $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config
|
||||||
|
cp -R $PKG_DIR/config/boblight.conf $ADDON_BUILD/$PKG_ADDON_ID/config
|
||||||
|
if [ "$DISPLAYSERVER" = "xorg-server" ] ; then
|
||||||
|
cp -R $PKG_DIR/config/boblight.X11.sample $ADDON_BUILD/$PKG_ADDON_ID/config
|
||||||
|
fi
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user