mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
xbmc-pvr: prepare for update, include changes from latest merge
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
655cefdc8a
commit
679baa45f6
@ -29,9 +29,15 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$XBMC_VIS_PROJECTM" = yes ]; then
|
if [ "$XBMC_VIS_PROJECTM" = yes ]; then
|
||||||
XBMC_PROJECTM="--enable-xbmcprojectm"
|
XBMC_PROJECTM="--enable-projectm"
|
||||||
else
|
else
|
||||||
XBMC_PROJECTM="--disable-xbmcprojectm"
|
XBMC_PROJECTM="--disable-projectm"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$XBMC_VIS_GOOM" = yes ]; then
|
||||||
|
XBMC_GOOM="--enable-goom"
|
||||||
|
else
|
||||||
|
XBMC_GOOM="--disable-goom"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$PULSEAUDIO_SUPPORT" = yes ]; then
|
if [ "$PULSEAUDIO_SUPPORT" = yes ]; then
|
||||||
@ -40,18 +46,42 @@ else
|
|||||||
XBMC_PULSEAUDIO="--disable-pulse"
|
XBMC_PULSEAUDIO="--disable-pulse"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$CEC_SUPPORT" = yes ]; then
|
||||||
|
XBMC_CEC="--enable-libcec --enable-external-libcec --enable-udev --disable-libusb"
|
||||||
|
else
|
||||||
|
XBMC_CEC="--disable-libcec --disable-udev --disable-libusb"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$NONFREE_SUPPORT" = yes ]; then
|
if [ "$NONFREE_SUPPORT" = yes ]; then
|
||||||
XBMC_NONFREE="--enable-non-free"
|
XBMC_NONFREE="--enable-non-free"
|
||||||
else
|
else
|
||||||
XBMC_NONFREE="--disable-non-free"
|
XBMC_NONFREE="--disable-non-free"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$AIRPLAY_SUPPORT" = yes ]; then
|
||||||
|
XBMC_AIRPLAY="--enable-airplay"
|
||||||
|
else
|
||||||
|
XBMC_AIRPLAY="--disable-airplay"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$AIRTUNES_SUPPORT" = yes ]; then
|
||||||
|
XBMC_AIRTUNES="--enable-airtunes"
|
||||||
|
else
|
||||||
|
XBMC_AIRTUNES="--disable-airtunes"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$DVDCSS_SUPPORT" = yes ]; then
|
if [ "$DVDCSS_SUPPORT" = yes ]; then
|
||||||
XBMC_DVDCSS="--enable-dvdcss"
|
XBMC_DVDCSS="--enable-dvdcss"
|
||||||
else
|
else
|
||||||
XBMC_DVDCSS="--disable-dvdcss"
|
XBMC_DVDCSS="--disable-dvdcss"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$BLURAY_SUPPORT" = yes ]; then
|
||||||
|
XBMC_BLURAY="--enable-libbluray"
|
||||||
|
else
|
||||||
|
XBMC_BLURAY="--disable-libbluray"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$AVAHI_DAEMON" = yes ]; then
|
if [ "$AVAHI_DAEMON" = yes ]; then
|
||||||
XBMC_AVAHI="--enable-avahi"
|
XBMC_AVAHI="--enable-avahi"
|
||||||
else
|
else
|
||||||
@ -64,6 +94,18 @@ else
|
|||||||
XBMC_NFS="--disable-nfs"
|
XBMC_NFS="--disable-nfs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$AFP_SUPPORT" = yes ]; then
|
||||||
|
XBMC_AFP="--enable-afpclient"
|
||||||
|
else
|
||||||
|
XBMC_AFP="--disable-afpclient"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$SAMBA_CLIENT" = yes ]; then
|
||||||
|
XBMC_SAMBA="--enable-samba"
|
||||||
|
else
|
||||||
|
XBMC_SAMBA="--disable-samba"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$WEBSERVER" = yes ]; then
|
if [ "$WEBSERVER" = yes ]; then
|
||||||
XBMC_WEBSERVER="--enable-webserver"
|
XBMC_WEBSERVER="--enable-webserver"
|
||||||
else
|
else
|
||||||
@ -124,11 +166,14 @@ cd $PKG_BUILD
|
|||||||
# adding fake Makefile for stripped skin
|
# adding fake Makefile for stripped skin
|
||||||
mkdir -p addons/skin.confluence/media
|
mkdir -p addons/skin.confluence/media
|
||||||
touch addons/skin.confluence/media/Makefile.in
|
touch addons/skin.confluence/media/Makefile.in
|
||||||
|
mkdir -p addons/skin.touched/media
|
||||||
|
touch addons/skin.touched/media/Makefile.in
|
||||||
|
|
||||||
# autoreconf
|
# autoreconf
|
||||||
do_autoreconf
|
do_autoreconf
|
||||||
do_autoreconf lib/libid3tag/libid3tag
|
do_autoreconf lib/libid3tag/libid3tag
|
||||||
do_autoreconf xbmc/screensavers/rsxs-0.9
|
do_autoreconf xbmc/screensavers/rsxs-0.9
|
||||||
|
do_autoreconf xbmc/visualizations/Goom/goom2k4-0
|
||||||
do_autoreconf lib/libapetag
|
do_autoreconf lib/libapetag
|
||||||
do_autoreconf lib/cpluff
|
do_autoreconf lib/cpluff
|
||||||
# order matters with libdvd and friends
|
# order matters with libdvd and friends
|
||||||
@ -161,26 +206,31 @@ cd $PKG_BUILD
|
|||||||
--disable-tegra \
|
--disable-tegra \
|
||||||
--disable-profiling \
|
--disable-profiling \
|
||||||
--enable-joystick \
|
--enable-joystick \
|
||||||
--enable-xrandr \
|
$XBMC_CEC \
|
||||||
--disable-goom \
|
$XBMC_GOOM \
|
||||||
$XBMC_RSXS \
|
$XBMC_RSXS \
|
||||||
$XBMC_PROJECTM \
|
$XBMC_PROJECTM \
|
||||||
--enable-x11 \
|
--enable-x11 \
|
||||||
|
--enable-xrandr \
|
||||||
--disable-ccache \
|
--disable-ccache \
|
||||||
$XBMC_PULSEAUDIO \
|
$XBMC_PULSEAUDIO \
|
||||||
--enable-rtmp \
|
--enable-rtmp \
|
||||||
|
$XBMC_SAMBA \
|
||||||
$XBMC_NFS \
|
$XBMC_NFS \
|
||||||
|
$XBMC_AFP \
|
||||||
--enable-ffmpeg-libvorbis \
|
--enable-ffmpeg-libvorbis \
|
||||||
--enable-lame \
|
--enable-lame \
|
||||||
$XBMC_DVDCSS \
|
$XBMC_DVDCSS \
|
||||||
--disable-mid \
|
--disable-mid \
|
||||||
--disable-hal \
|
--disable-hal \
|
||||||
$XBMC_AVAHI \
|
$XBMC_AVAHI \
|
||||||
|
$XBMC_AIRPLAY \
|
||||||
|
$XBMC_AIRTUNES \
|
||||||
$XBMC_NONFREE \
|
$XBMC_NONFREE \
|
||||||
--disable-asap-codec \
|
--disable-asap-codec \
|
||||||
$XBMC_WEBSERVER \
|
$XBMC_WEBSERVER \
|
||||||
--enable-optical-drive \
|
--enable-optical-drive \
|
||||||
--enable-libbluray \
|
$XBMC_BLURAY \
|
||||||
--enable-texturepacker \
|
--enable-texturepacker \
|
||||||
--disable-external-libraries \
|
--disable-external-libraries \
|
||||||
--disable-external-ffmpeg \
|
--disable-external-ffmpeg \
|
||||||
|
10
packages/mediacenter/xbmc-pvr/config/advancedsettings.xml
Normal file
10
packages/mediacenter/xbmc-pvr/config/advancedsettings.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<advancedsettings>
|
||||||
|
<splash>false</splash>
|
||||||
|
<showexitbutton>false</showexitbutton>
|
||||||
|
<cputempcommand>cputemp</cputempcommand>
|
||||||
|
<gputempcommand>gputemp</gputempcommand>
|
||||||
|
<samba>
|
||||||
|
<clienttimeout>30</clienttimeout>
|
||||||
|
</samba>
|
||||||
|
</advancedsettings>
|
@ -22,48 +22,31 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec
|
# runlevels: openelec
|
||||||
|
|
||||||
case $RUNLEVEL in
|
progress "setup XBMC"
|
||||||
boot)
|
|
||||||
progress "setup XBMC"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# clean temp dir
|
# clean temp dir
|
||||||
#
|
#
|
||||||
rm -rf $HOME/.xbmc/temp/*
|
rm -rf $HOME/.xbmc/temp/*
|
||||||
|
|
||||||
#
|
#
|
||||||
# add some default settings
|
# add some default settings
|
||||||
#
|
#
|
||||||
mkdir -p $HOME/.xbmc/userdata
|
mkdir -p $HOME/.xbmc/userdata
|
||||||
|
|
||||||
# use dds fanarts by default
|
#
|
||||||
if [ ! -f $HOME/.xbmc/userdata/advancedsettings.xml ] ; then
|
# setup directories for XBMC sources
|
||||||
cat > $HOME/.xbmc/userdata/advancedsettings.xml << EOF
|
#
|
||||||
<advancedsettings>
|
|
||||||
<useddsfanart>true</useddsfanart>
|
|
||||||
<splash>false</splash>
|
|
||||||
<cputempcommand>cputemp</cputempcommand>
|
|
||||||
<gputempcommand>gputemp</gputempcommand>
|
|
||||||
<samba>
|
|
||||||
<clienttimeout>30</clienttimeout>
|
|
||||||
</samba>
|
|
||||||
</advancedsettings>
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
[ ! -d "$HOME/music" ] && mkdir -p $HOME/music
|
||||||
# setup directories for XBMC sources
|
[ ! -d "$HOME/pictures" ] && mkdir -p $HOME/pictures
|
||||||
#
|
[ ! -d "$HOME/tvshows" ] && mkdir -p $HOME/tvshows
|
||||||
|
[ ! -d "$HOME/videos" ] && mkdir -p $HOME/videos
|
||||||
|
|
||||||
[ ! -d "$HOME/music" ] && mkdir -p $HOME/music
|
mkdir -p $HOME/.xbmc/userdata
|
||||||
[ ! -d "$HOME/pictures" ] && mkdir -p $HOME/pictures
|
|
||||||
[ ! -d "$HOME/tvshows" ] && mkdir -p $HOME/tvshows
|
|
||||||
[ ! -d "$HOME/videos" ] && mkdir -p $HOME/videos
|
|
||||||
|
|
||||||
mkdir -p $HOME/.xbmc/userdata
|
if [ ! -f $HOME/.xbmc/userdata/sources.xml ] ; then
|
||||||
|
cat > $HOME/.xbmc/userdata/sources.xml << EOF
|
||||||
if [ ! -f $HOME/.xbmc/userdata/sources.xml ] ; then
|
|
||||||
cat > $HOME/.xbmc/userdata/sources.xml << EOF
|
|
||||||
<sources>
|
<sources>
|
||||||
<video>
|
<video>
|
||||||
<default pathversion="1"></default>
|
<default pathversion="1"></default>
|
||||||
@ -92,49 +75,44 @@ EOF
|
|||||||
</pictures>
|
</pictures>
|
||||||
</sources>
|
</sources>
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# common setup guisettings
|
# common setup guisettings
|
||||||
#
|
#
|
||||||
|
|
||||||
mkdir -p $HOME/.xbmc/userdata
|
mkdir -p $HOME/.xbmc/userdata
|
||||||
|
|
||||||
[ ! -d "$HOME/screenshots" ] && mkdir -p $HOME/screenshots
|
[ ! -d "$HOME/screenshots" ] && mkdir -p $HOME/screenshots
|
||||||
|
|
||||||
if [ ! -f $HOME/.xbmc/userdata/guisettings.xml ] ; then
|
if [ ! -f $HOME/.xbmc/userdata/guisettings.xml ] ; then
|
||||||
echo "<settings>" > $HOME/.xbmc/userdata/guisettings.xml
|
echo "<settings>" > $HOME/.xbmc/userdata/guisettings.xml
|
||||||
|
|
||||||
cat >> $HOME/.xbmc/userdata/guisettings.xml << EOF
|
cat >> $HOME/.xbmc/userdata/guisettings.xml << EOF
|
||||||
<debug>
|
<debug>
|
||||||
<screenshotpath pathversion="1">$HOME/screenshots/</screenshotpath>
|
<screenshotpath pathversion="1">$HOME/screenshots/</screenshotpath>
|
||||||
</debug>
|
</debug>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#
|
#
|
||||||
# include project specific options
|
# include project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ -f /usr/share/xbmc/config/guisettings.xml ]; then
|
if [ -f /usr/share/xbmc/config/guisettings.xml ]; then
|
||||||
cat /usr/share/xbmc/config/guisettings.xml >> $HOME/.xbmc/userdata/guisettings.xml
|
cat /usr/share/xbmc/config/guisettings.xml >> $HOME/.xbmc/userdata/guisettings.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# common setup for amd and nvidia graphic
|
# common setup for amd and nvidia graphic
|
||||||
#
|
#
|
||||||
|
|
||||||
# Always sync to vblank
|
# Always sync to vblank
|
||||||
if [ "$GPUTYPE" = "NVIDIA" -o "$GPUTYPE" = "AMD" ] ; then
|
if [ "$GPUTYPE" = "NVIDIA" -o "$GPUTYPE" = "AMD" ] ; then
|
||||||
cat >> $HOME/.xbmc/userdata/guisettings.xml << EOF
|
cat >> $HOME/.xbmc/userdata/guisettings.xml << EOF
|
||||||
<videoscreen>
|
<videoscreen>
|
||||||
<vsync>2</vsync>
|
<vsync>2</vsync>
|
||||||
</videoscreen>
|
</videoscreen>
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
echo "</settings>" >> $HOME/.xbmc/userdata/guisettings.xml
|
echo "</settings>" >> $HOME/.xbmc/userdata/guisettings.xml
|
||||||
fi
|
fi
|
||||||
;;
|
|
||||||
|
|
||||||
poweroff|reboot)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
@ -22,70 +22,66 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec
|
# runlevels: openelec
|
||||||
|
|
||||||
case $RUNLEVEL in
|
LIRCDEV="/var/run/lirc/lircd"
|
||||||
boot)
|
[ -e /var/run/lirc/lircd.irtrans ] && LIRCDEV="/var/run/lirc/lircd.irtrans"
|
||||||
LIRCDEV="/var/run/lirc/lircd"
|
XBMC_ARGS="--standalone -fs --lircdev $LIRCDEV"
|
||||||
[ -e /var/run/lirc/lircd.irtrans ] && LIRCDEV="/var/run/lirc/lircd.irtrans"
|
|
||||||
XBMC_ARGS="--standalone -fs --lircdev $LIRCDEV"
|
|
||||||
|
|
||||||
progress "starting XBMC"
|
progress "starting XBMC"
|
||||||
|
|
||||||
# hack for Boxee Remote
|
# hack for Boxee Remote
|
||||||
if $(cat /proc/bus/input/devices | grep Vendor=0471 | grep -q Product=20d9);then
|
if $(cat /proc/bus/input/devices | grep Vendor=0471 | grep -q Product=20d9);then
|
||||||
export SDL_MOUSE_RELATIVE=0
|
export SDL_MOUSE_RELATIVE=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# starting autostart script (will be removed later again, dont use it!!!)
|
# hack: make addon-bins executable
|
||||||
AUTOSTART="/storage/.config/autostart.sh"
|
chmod +x /storage/.xbmc/addons/*/bin/* > /dev/null 2>&1
|
||||||
if [ -f $AUTOSTART ]; then
|
|
||||||
echo "!!! AUTOSTART script detected !!!" >> /var/log/messages
|
|
||||||
cat "$AUTOSTART" >> /var/log/messages
|
|
||||||
echo "!!! -End of autostart script- !!!" >> /var/log/messages
|
|
||||||
|
|
||||||
sh $AUTOSTART
|
# starting autostart script (will be removed later again, dont use it!!!)
|
||||||
fi
|
AUTOSTART="/storage/.config/autostart.sh"
|
||||||
|
if [ -f $AUTOSTART ]; then
|
||||||
|
echo "!!! AUTOSTART script detected !!!" >> /var/log/messages
|
||||||
|
cat "$AUTOSTART" >> /var/log/messages
|
||||||
|
echo "!!! -End of autostart script- !!!" >> /var/log/messages
|
||||||
|
|
||||||
# starting autoupdate
|
sh $AUTOSTART
|
||||||
[ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &
|
fi
|
||||||
|
|
||||||
# waiting for Xorg to start
|
# starting autoupdate
|
||||||
wait_for_xorg
|
[ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &
|
||||||
|
|
||||||
# set cpu's to 'on demand'
|
# waiting for Xorg to start
|
||||||
( usleep 15000000
|
wait_for_xorg
|
||||||
progress "set cpu's to 'on demand'"
|
|
||||||
cpupower frequency-set -g ondemand > /dev/null 2>&1
|
|
||||||
)&
|
|
||||||
|
|
||||||
# starting XBMC
|
# set cpu's to 'on demand'
|
||||||
while true; do
|
( usleep 15000000
|
||||||
|
progress "set cpu's to 'on demand'"
|
||||||
|
cpupower frequency-set -g ondemand > /dev/null 2>&1
|
||||||
|
)&
|
||||||
|
|
||||||
DISPLAY=:0.0 /usr/lib/xbmc/xbmc.bin $XBMC_ARGS > /dev/null 2>&1
|
# starting XBMC
|
||||||
RET=$?
|
while true; do
|
||||||
|
|
||||||
case "$RET" in
|
DISPLAY=:0.0 /usr/lib/xbmc/xbmc.bin $XBMC_ARGS > /dev/null 2>&1
|
||||||
0)
|
RET=$?
|
||||||
RUNLEVEL="poweroff"
|
|
||||||
;;
|
|
||||||
64)
|
|
||||||
RUNLEVEL="poweroff"
|
|
||||||
;;
|
|
||||||
66)
|
|
||||||
RUNLEVEL="reboot"
|
|
||||||
;;
|
|
||||||
255)
|
|
||||||
echo "Abnormal Exit. Exited with code $RET"
|
|
||||||
echo "is Xorg running? check /var/log/Xorg.log"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Abnormal Exit. Exited with code $RET"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
usleep 250000
|
case "$RET" in
|
||||||
done
|
0)
|
||||||
;;
|
poweroff -f
|
||||||
|
;;
|
||||||
|
64)
|
||||||
|
poweroff -f
|
||||||
|
;;
|
||||||
|
66)
|
||||||
|
reboot
|
||||||
|
;;
|
||||||
|
255)
|
||||||
|
echo "Abnormal Exit. Exited with code $RET"
|
||||||
|
echo "is Xorg running? check /var/log/Xorg.log"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Abnormal Exit. Exited with code $RET"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
poweroff|reboot)
|
usleep 250000
|
||||||
;;
|
done
|
||||||
esac
|
|
||||||
|
@ -46,6 +46,18 @@ cd $PKG_BUILD
|
|||||||
-exec install -D -m 0644 "{}" $ROOT/$INSTALL/usr/share/xbmc/"{}" ";"
|
-exec install -D -m 0644 "{}" $ROOT/$INSTALL/usr/share/xbmc/"{}" ";"
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
if [ ! "$XBMC_SCR_RSXS" = yes ]; then
|
||||||
|
rm -rf $ROOT/$INSTALL/usr/share/xbmc/addons/screensaver.rsxs.*
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! "$XBMC_VIS_PROJECTM" = yes ]; then
|
||||||
|
rm -rf $ROOT/$INSTALL/usr/share/xbmc/addons/visualization.projectm
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf $ROOT/$INSTALL/usr/share/xbmc/addons/visualization.dxspectrum
|
||||||
|
rm -rf $ROOT/$INSTALL/usr/share/xbmc/addons/visualization.itunes
|
||||||
|
rm -rf $ROOT/$INSTALL/usr/share/xbmc/addons/visualization.milkdrop
|
||||||
|
|
||||||
# overriding Splash image
|
# overriding Splash image
|
||||||
mkdir -p $INSTALL/usr/share/xbmc/media
|
mkdir -p $INSTALL/usr/share/xbmc/media
|
||||||
rm -rf $INSTALL/usr/share/xbmc/media/Splash.png
|
rm -rf $INSTALL/usr/share/xbmc/media/Splash.png
|
||||||
@ -61,6 +73,9 @@ mkdir -p $INSTALL/usr/share/xbmc/media
|
|||||||
$INSTALL/usr/share/xbmc/addons/script.module.pil/lib/PIL
|
$INSTALL/usr/share/xbmc/addons/script.module.pil/lib/PIL
|
||||||
rm -rf $INSTALL/usr/share/xbmc/addons/script.module.pysqlite
|
rm -rf $INSTALL/usr/share/xbmc/addons/script.module.pysqlite
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/share/xbmc/system/
|
||||||
|
cp $PKG_DIR/config/advancedsettings.xml $INSTALL/usr/share/xbmc/system/
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/share/xbmc/addons
|
mkdir -p $INSTALL/usr/share/xbmc/addons
|
||||||
cp -R $PKG_DIR/config/os.openelec.tv $INSTALL/usr/share/xbmc/addons
|
cp -R $PKG_DIR/config/os.openelec.tv $INSTALL/usr/share/xbmc/addons
|
||||||
$SED "s|@ADDON_OS_VERSION@|$OS_VERSION|g" -i $INSTALL/usr/share/xbmc/addons/os.openelec.tv/addon.xml
|
$SED "s|@ADDON_OS_VERSION@|$OS_VERSION|g" -i $INSTALL/usr/share/xbmc/addons/os.openelec.tv/addon.xml
|
||||||
|
@ -24,10 +24,10 @@ PKG_REV="1"
|
|||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="http://www.xbmc.org"
|
PKG_SITE="http://www.xbmc.org"
|
||||||
#PKG_URL="$OPENELEC_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
|
||||||
PKG_URL="http://gujs.openelec.tv/sources/$PKG_NAME-$PKG_VERSION.tar.xz"
|
PKG_URL="http://gujs.openelec.tv/sources/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
PKG_DEPENDS="boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump libplist Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmodplug faad2 flac lame libmpeg2 libbluray SDL SDL_mixer SDL_image yajl sqlite mysql samba alsa bc xbmc-addon-settings"
|
#PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
PKG_BUILD_DEPENDS="toolchain boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump libplist Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmodplug faad2 flac lame libmpeg2 libbluray SDL SDL_mixer SDL_image yajl sqlite mysql samba"
|
PKG_DEPENDS="boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmodplug faad2 flac lame libmpeg2 SDL SDL_mixer SDL_image yajl sqlite mysql alsa bc xbmc-addon-settings"
|
||||||
|
PKG_BUILD_DEPENDS="toolchain boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmodplug faad2 flac lame libmpeg2 SDL SDL_mixer SDL_image yajl sqlite mysql"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="mediacenter"
|
PKG_SECTION="mediacenter"
|
||||||
PKG_SHORTDESC="xbmc: XBMC Mediacenter"
|
PKG_SHORTDESC="xbmc: XBMC Mediacenter"
|
||||||
@ -48,6 +48,11 @@ PKG_AUTORECONF="no"
|
|||||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS dbus"
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS dbus"
|
||||||
PKG_DEPENDS="$PKG_DEPENDS dbus"
|
PKG_DEPENDS="$PKG_DEPENDS dbus"
|
||||||
|
|
||||||
|
if [ "$CEC_SUPPORT" = yes ]; then
|
||||||
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libcec"
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS libcec"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$XBMC_SCR_RSXS" = yes ]; then
|
if [ "$XBMC_SCR_RSXS" = yes ]; then
|
||||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libXt libXmu"
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libXt libXmu"
|
||||||
PKG_DEPENDS="$PKG_DEPENDS libXt libXmu"
|
PKG_DEPENDS="$PKG_DEPENDS libXt libXmu"
|
||||||
@ -58,16 +63,41 @@ if [ "$FAAC_SUPPORT" = yes ]; then
|
|||||||
PKG_DEPENDS="$PKG_DEPENDS faac"
|
PKG_DEPENDS="$PKG_DEPENDS faac"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$BLURAY_SUPPORT" = yes ]; then
|
||||||
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libbluray"
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS libbluray"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$AVAHI_DAEMON" = yes ]; then
|
if [ "$AVAHI_DAEMON" = yes ]; then
|
||||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS avahi"
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS avahi"
|
||||||
PKG_DEPENDS="$PKG_DEPENDS avahi"
|
PKG_DEPENDS="$PKG_DEPENDS avahi"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$AIRPLAY_SUPPORT" = yes ]; then
|
||||||
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libplist"
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS libplist"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$AIRTUNES_SUPPORT" = yes ]; then
|
||||||
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libshairport"
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS libshairport"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$NFS_SUPPORT" = yes ]; then
|
if [ "$NFS_SUPPORT" = yes ]; then
|
||||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libnfs"
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libnfs"
|
||||||
PKG_DEPENDS="$PKG_DEPENDS libnfs"
|
PKG_DEPENDS="$PKG_DEPENDS libnfs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$AFP_SUPPORT" = yes ]; then
|
||||||
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS afpfs-ng"
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS afpfs-ng"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$SAMBA_CLIENT" = yes ]; then
|
||||||
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS samba"
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS samba"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$WEBSERVER" = yes ]; then
|
if [ "$WEBSERVER" = yes ]; then
|
||||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libmicrohttpd"
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libmicrohttpd"
|
||||||
PKG_DEPENDS="$PKG_DEPENDS libmicrohttpd"
|
PKG_DEPENDS="$PKG_DEPENDS libmicrohttpd"
|
||||||
@ -100,3 +130,4 @@ fi
|
|||||||
# some python stuff needed for various addons
|
# some python stuff needed for various addons
|
||||||
PKG_DEPENDS="$PKG_DEPENDS Imaging"
|
PKG_DEPENDS="$PKG_DEPENDS Imaging"
|
||||||
PKG_DEPENDS="$PKG_DEPENDS simplejson"
|
PKG_DEPENDS="$PKG_DEPENDS simplejson"
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
# http://www.openelec.tv
|
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||||
#
|
#
|
||||||
# This Program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -20,10 +20,32 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
TEMP="0"
|
# inspired by
|
||||||
|
# https://github.com/xtranophilist/gnome-shell-extension-cpu-temperature/blob/master/extension.js
|
||||||
|
|
||||||
if [ -f /usr/bin/sensors ]; then
|
TEMP=0
|
||||||
TEMP=`/usr/bin/sensors -u | tail -n6 | grep temp._input | awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'`
|
|
||||||
|
if [ -f /sys/devices/platform/coretemp.0/temp1_input ]; then
|
||||||
|
# used with coretemp
|
||||||
|
TEMP=`cat /sys/devices/platform/coretemp.0/temp1_input`
|
||||||
|
elif [ -f /sys/devices/platform/coretemp.0/temp2_input ]; then
|
||||||
|
# used with coretemp
|
||||||
|
TEMP=`cat /sys/devices/platform/coretemp.0/temp2_input`
|
||||||
|
elif [ -f /sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp ]; then
|
||||||
|
# used on some intel systems
|
||||||
|
TEMP=`cat /sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp`
|
||||||
|
elif [ -f /sys/devices/virtual/thermal/thermal_zone0/temp ]; then
|
||||||
|
# used on some intel systems
|
||||||
|
TEMP=`cat /sys/devices/virtual/thermal/thermal_zone0/temp`
|
||||||
|
elif [ -f /sys/class/hwmon/hwmon0/temp1_input ]; then
|
||||||
|
# hwmon for new 2.6.39, 3.0 linux kernels
|
||||||
|
TEMP=`cat /sys/class/hwmon/hwmon0/temp1_input`
|
||||||
|
elif [ -f /sys/class/hwmon/hwmon0/device/temp1_input ]; then
|
||||||
|
# used on AMD systems
|
||||||
|
TEMP=`cat /sys/class/hwmon/hwmon0/device/temp1_input`
|
||||||
|
elif [ -f /sys/class/hwmon/hwmon0/device/temp2_input ]; then
|
||||||
|
# used on ION systems
|
||||||
|
TEMP=`cat /sys/class/hwmon/hwmon0/device/temp2_input`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${TEMP} C"
|
echo "$(( $TEMP / 1000 )) C"
|
||||||
|
@ -27,7 +27,12 @@ if lspci -n | grep 0300 | grep -q 10de; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if lspci -n | grep 0300 | grep -q 1002; then
|
if lspci -n | grep 0300 | grep -q 1002; then
|
||||||
[ -f /usr/bin/aticonfig ] && TEMP=`/usr/bin/aticonfig --od-gettemperature | grep Temperature | cut -f 2 -d "-" | cut -f 1 -d "." | sed -e "s, ,,"`
|
if [ -f /storage/.config/xorg.conf ]; then
|
||||||
|
XORG="/storage/.config/xorg.conf"
|
||||||
|
else
|
||||||
|
XORG="/etc/X11/xorg-fglrx.conf"
|
||||||
|
fi
|
||||||
|
[ -f /usr/bin/aticonfig ] && TEMP=`/usr/bin/aticonfig -i $XORG --od-gettemperature | grep Temperature | cut -f 2 -d "-" | cut -f 1 -d "." | sed -e "s, ,,"`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${TEMP} C"
|
echo "${TEMP} C"
|
||||||
|
28
packages/mediacenter/xbmc-pvr/sleep.d/00_addon-sleep
Executable file
28
packages/mediacenter/xbmc-pvr/sleep.d/00_addon-sleep
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
|
||||||
|
for script in $HOME/.xbmc/addons/*/sleep.d/*.power; do
|
||||||
|
progress "running addon sleep script $script ($1)..."
|
||||||
|
sh $script $1
|
||||||
|
done
|
27
packages/mediacenter/xbmc-pvr/init.d/91_setup-addons → packages/mediacenter/xbmc-pvr/sleep.d/63_reload_skin
Normal file → Executable file
27
packages/mediacenter/xbmc-pvr/init.d/91_setup-addons → packages/mediacenter/xbmc-pvr/sleep.d/63_reload_skin
Normal file → Executable file
@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||||
@ -18,27 +20,12 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
#
|
. /etc/profile
|
||||||
# setup XBMC addons
|
|
||||||
#
|
|
||||||
# runlevels: openelec, textmode
|
|
||||||
|
|
||||||
case $RUNLEVEL in
|
case "$1" in
|
||||||
boot)
|
thaw|resume)
|
||||||
progress "setup XBMC addons"
|
xbmc-send --host=127.0.0.1 -a "ReloadSkin()"
|
||||||
|
|
||||||
# hack: add addons to $PATH
|
|
||||||
for i in `find /storage/.xbmc/addons/* -name bin -type d`; do
|
|
||||||
PATH="$PATH:$i"
|
|
||||||
done
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
# hack: make addon-bins executable
|
|
||||||
chmod +x /storage/.xbmc/addons/*/bin/* > /dev/null 2>&1
|
|
||||||
;;
|
;;
|
||||||
|
*) exit $NA
|
||||||
poweroff|reboot)
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user