mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
irserver: convert to new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
2ba60b20d1
commit
39cdb2c2f2
@ -1,29 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# 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/>.
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD
|
||||
|
||||
[ "$TARGET_ARCH" = "i386" ] && make CC=$TARGET_CC irserver
|
||||
[ "$TARGET_ARCH" = "x86_64" ] && make CC=$TARGET_CC irserver64
|
||||
[ "$TARGET_ARCH" = "arm" ] && make CC=$TARGET_CC irserver_arm
|
||||
|
||||
$STRIP $1*
|
@ -1,31 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# 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/>.
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/sbin
|
||||
[ "$TARGET_ARCH" = "i386" ] && cp -P $PKG_BUILD/irserver $INSTALL/usr/sbin/irserver
|
||||
[ "$TARGET_ARCH" = "x86_64" ] && cp -P $PKG_BUILD/irserver64 $INSTALL/usr/sbin/irserver
|
||||
[ "$TARGET_ARCH" = "arm" ] && cp -P $PKG_BUILD/irserver_arm $INSTALL/usr/sbin/irserver
|
||||
|
||||
mkdir -p $INSTALL/usr/share/irtrans/remotes
|
||||
cp $PKG_BUILD/remotes/irtrans.rem $INSTALL/usr/share/irtrans/remotes
|
||||
cp $PKG_BUILD/remotes/mediacenter.rem $INSTALL/usr/share/irtrans/remotes
|
||||
|
@ -23,12 +23,34 @@ PKG_ARCH="any"
|
||||
PKG_LICENSE="Freeware"
|
||||
PKG_SITE="http://http://www.irtrans.de"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="toolchain"
|
||||
PKG_DEPENDS_TARGET=""
|
||||
PKG_BUILD_DEPENDS_TARGET="toolchain"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="sysutils/remote"
|
||||
PKG_SHORTDESC="irserver: IR Trans transforms your PC into a programmable remote control."
|
||||
PKG_LONGDESC="IR Trans transforms your PC into a programmable remote control: It learns the codes of your remote control, stores them in a database and sends them controlled by your applications."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
if [ "$TARGET_ARCH" = "i386" ]; then
|
||||
IRSERVER_BIN="irserver"
|
||||
elif [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||
IRSERVER_BIN="irserver64"
|
||||
elif [ "$TARGET_ARCH" = "arm" ]; then
|
||||
IRSERVER_BIN="irserver_arm"
|
||||
fi
|
||||
|
||||
make_target() {
|
||||
make CC=$TARGET_CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" $IRSERVER_BIN
|
||||
$STRIP $IRSERVER_BIN
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/sbin
|
||||
cp -P $IRSERVER_BIN $INSTALL/usr/sbin/irserver
|
||||
|
||||
mkdir -p $INSTALL/usr/share/irtrans/remotes
|
||||
cp remotes/irtrans.rem $INSTALL/usr/share/irtrans/remotes
|
||||
cp remotes/mediacenter.rem $INSTALL/usr/share/irtrans/remotes
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user