mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Add helper scripts for lircd and lircd-uinput so that we can override lirc_options.conf and lircd.conf via files in /storage/.config Use separate systemd units for lircd and lircd-uinput, like in upstream, and just add a ConditionPathExists to enable/disable the services. The lirc socket is managed by systemd via lircd.socket, like in upstream. Remove udev file for enabling lirc, this is now handled via systemd only.
76 lines
2.8 KiB
Makefile
76 lines
2.8 KiB
Makefile
################################################################################
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
|
# Copyright (C) 2009-2016 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="lirc"
|
|
PKG_VERSION="0.9.4d"
|
|
PKG_ARCH="any"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="http://www.lirc.org"
|
|
PKG_URL="https://sourceforge.net/projects/lirc/files/LIRC/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
|
PKG_DEPENDS_TARGET="toolchain libftdi1 libusb-compat libxslt"
|
|
PKG_SECTION="sysutils/remote"
|
|
PKG_SHORTDESC="lirc: Linux Infrared Remote Control"
|
|
PKG_LONGDESC="LIRC is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls."
|
|
|
|
PKG_IS_ADDON="no"
|
|
PKG_AUTORECONF="yes"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_forkpty=no \
|
|
ac_cv_lib_util_forkpty=no \
|
|
ac_cv_prog_HAVE_PYTHON3=no \
|
|
--enable-devinput \
|
|
--localstatedir=/ \
|
|
--with-gnu-ld \
|
|
--without-x"
|
|
|
|
pre_configure_target() {
|
|
export HAVE_WORKING_POLL=yes
|
|
export HAVE_UINPUT=yes
|
|
if [ -e ${SYSROOT_PREFIX}/usr/include/linux/input-event-codes.h ] ; then
|
|
export DEVINPUT_HEADER=${SYSROOT_PREFIX}/usr/include/linux/input-event-codes.h
|
|
else
|
|
export DEVINPUT_HEADER=${SYSROOT_PREFIX}/usr/include/linux/input.h
|
|
fi
|
|
}
|
|
|
|
post_makeinstall_target() {
|
|
rm -rf $INSTALL/usr/lib/systemd
|
|
rm -rf $INSTALL/lib
|
|
rm -rf $INSTALL/usr/share
|
|
rm -rf $INSTALL/etc
|
|
|
|
mkdir -p $INSTALL/etc/lirc
|
|
cp -r $PKG_DIR/config/* $INSTALL/etc/lirc
|
|
|
|
mkdir -p $INSTALL/usr/lib/libreelec
|
|
cp $PKG_DIR/scripts/lircd_helper $INSTALL/usr/lib/libreelec
|
|
cp $PKG_DIR/scripts/lircd_uinput_helper $INSTALL/usr/lib/libreelec
|
|
|
|
mkdir -p $INSTALL/usr/lib/udev
|
|
cp $PKG_DIR/scripts/lircd_wakeup_enable $INSTALL/usr/lib/udev
|
|
|
|
mkdir -p $INSTALL/usr/share/services
|
|
cp -P $PKG_DIR/default.d/*.conf $INSTALL/usr/share/services
|
|
}
|
|
|
|
post_install() {
|
|
enable_service lircd.socket
|
|
enable_service lircd.service
|
|
enable_service lircd-uinput.service
|
|
}
|