2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2019-02-08 17:17:43 +00:00
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
2011-01-09 18:42:04 +01:00
|
|
|
|
2010-08-02 14:47:46 +02:00
|
|
|
PKG_NAME="lirc"
|
2022-10-04 11:41:42 +00:00
|
|
|
PKG_VERSION="0.10.2"
|
|
|
|
|
PKG_SHA256="3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a"
|
2010-08-02 14:47:46 +02:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
|
PKG_SITE="http://www.lirc.org"
|
2021-01-19 19:34:16 +00:00
|
|
|
PKG_URL="https://sourceforge.net/projects/lirc/files/LIRC/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
2019-12-09 12:47:27 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libftdi1 libusb-compat libxslt alsa-lib"
|
2018-10-22 15:06:12 +02:00
|
|
|
PKG_LONGDESC="LIRC is a package that allows you to decode and send infra-red signals."
|
2017-10-24 23:23:02 +02:00
|
|
|
PKG_TOOLCHAIN="autotools"
|
2017-10-16 00:01:01 +02:00
|
|
|
|
2019-12-09 12:47:27 +01:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--enable-devinput \
|
2019-07-03 16:55:10 +02:00
|
|
|
--enable-uinput \
|
2013-12-25 21:02:33 +01:00
|
|
|
--with-gnu-ld \
|
2018-06-24 13:34:57 +02:00
|
|
|
--without-x \
|
|
|
|
|
--runstatedir=/run"
|
2013-12-25 21:02:33 +01:00
|
|
|
|
2017-02-04 23:56:29 +01:00
|
|
|
pre_configure_target() {
|
2017-04-07 15:27:13 +02:00
|
|
|
export HAVE_WORKING_POLL=yes
|
|
|
|
|
export HAVE_UINPUT=yes
|
2017-08-12 11:03:10 +02:00
|
|
|
export PYTHON=:
|
2017-10-08 23:50:38 +01:00
|
|
|
export PYTHON_VERSION=${PKG_PYTHON_VERSION#python}
|
2021-01-19 19:34:16 +00:00
|
|
|
if [ -e ${SYSROOT_PREFIX}/usr/include/linux/input-event-codes.h ]; then
|
2017-04-07 15:27:13 +02:00
|
|
|
export DEVINPUT_HEADER=${SYSROOT_PREFIX}/usr/include/linux/input-event-codes.h
|
|
|
|
|
else
|
|
|
|
|
export DEVINPUT_HEADER=${SYSROOT_PREFIX}/usr/include/linux/input.h
|
|
|
|
|
fi
|
2017-02-04 23:56:29 +01:00
|
|
|
}
|
|
|
|
|
|
2022-01-07 15:26:58 +00:00
|
|
|
post_configure_target() {
|
|
|
|
|
libtool_remove_rpath libtool
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-25 21:02:33 +01:00
|
|
|
post_makeinstall_target() {
|
2021-01-19 19:34:16 +00:00
|
|
|
rm -rf ${INSTALL}/usr/lib/systemd
|
|
|
|
|
rm -rf ${INSTALL}/lib
|
|
|
|
|
rm -rf ${INSTALL}/usr/share
|
|
|
|
|
rm -rf ${INSTALL}/etc
|
2013-12-25 21:02:33 +01:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
mkdir -p ${INSTALL}/etc/lirc
|
|
|
|
|
cp -r ${PKG_DIR}/config/lirc_options.conf ${INSTALL}/etc/lirc
|
|
|
|
|
ln -s /storage/.config/lircd.conf ${INSTALL}/etc/lirc/lircd.conf
|
2014-03-08 02:40:54 +01:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
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
|
2014-03-09 22:27:09 +01:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/share/services
|
|
|
|
|
cp -P ${PKG_DIR}/default.d/*.conf ${INSTALL}/usr/share/services
|
2013-12-25 21:02:33 +01:00
|
|
|
}
|
2017-04-07 15:27:13 +02:00
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
|
enable_service lircd.socket
|
|
|
|
|
enable_service lircd.service
|
|
|
|
|
enable_service lircd-uinput.service
|
|
|
|
|
}
|