2011-01-09 18:42:04 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:29:56 +01:00
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:42:04 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2011-01-09 18:42:04 +01:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2011-01-09 18:42:04 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2011-01-09 18:42:04 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2011-01-09 18:42:04 +01:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2011-01-09 18:42:04 +01:00
################################################################################
2010-11-14 14:41:32 +01:00
PKG_NAME = "irserver"
2011-01-20 21:01:20 +01:00
PKG_VERSION = "6.03.08"
2010-11-14 14:41:32 +01:00
PKG_REV = "1"
PKG_ARCH = "any"
PKG_LICENSE = "Freeware"
PKG_SITE = "http://http://www.irtrans.de"
2011-08-16 07:14:42 +02:00
PKG_URL = " $DISTRO_SRC / $PKG_NAME - $PKG_VERSION .tar.bz2 "
2014-01-30 14:30:42 +01:00
PKG_DEPENDS_TARGET = "toolchain"
2010-11-14 14:41:32 +01:00
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."
2010-11-25 18:15:07 +01:00
2014-01-26 22:56:18 +01:00
PKG_IS_ADDON = "no"
2010-11-25 18:15:07 +01:00
PKG_AUTORECONF = "no"
2014-01-26 22:56:18 +01:00
2015-04-03 12:08:24 +03:00
i f [ "$TARGET_ARCH" = "x86_64" ] ; t h e n
2014-01-26 22:56:18 +01:00
IRSERVER_BIN = "irserver64"
e l i f [ "$TARGET_ARCH" = "arm" ] ; t h e n
IRSERVER_BIN = "irserver_arm"
f i
m a k e _ t a r g e t ( ) {
make CC = $TARGET_CC CFLAGS = " $CFLAGS " LDFLAGS = " $LDFLAGS " $IRSERVER_BIN
$STRIP $IRSERVER_BIN
}
m a k e i n s t a l l _ t a r g e t ( ) {
2014-01-27 02:39:30 +01:00
mkdir -p $INSTALL /usr/config
cp $PKG_DIR /config/*.conf $INSTALL /usr/config
2014-01-26 22:56:18 +01:00
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
2014-01-27 02:39:30 +01:00
}