mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-05 22:07:59 +00:00
3d1c13b978
Left over lib/lirc/config.h lead to "LIRC_LOCKDIR" redefined to not existing "/var/lock/lockdir" (beside others): /home/docker/LibreELEC.tv/build.LibreELEC-gbm.x86_64-12.0-devel-mg/build/lirc-0.10.2/lib/lirc/config.h:198: warning: "LIRC_LOCKDIR" redefined 198 | #define LIRC_LOCKDIR "/var/lock/lockdev" | In file included from /home/docker/LibreELEC.tv/build.LibreELEC-gbm.x86_64-12.0-devel-mg/build/lirc-0.10.2/lib/driver.c:12: ./config.h:198: note: this is the location of the previous definition 198 | #define LIRC_LOCKDIR "/var/lock" | Furthermore define lock dir because lirc's configure does check the host system and use /var/lock/lockdev if existing.
67 lines
2.2 KiB
Makefile
67 lines
2.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="lirc"
|
|
PKG_VERSION="0.10.2"
|
|
PKG_SHA256="3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a"
|
|
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 alsa-lib"
|
|
PKG_LONGDESC="LIRC is a package that allows you to decode and send infra-red signals."
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--enable-devinput \
|
|
--enable-uinput \
|
|
--with-gnu-ld \
|
|
--without-x \
|
|
--runstatedir=/run \
|
|
--with-lockdir=/var/lock"
|
|
|
|
post_unpack() {
|
|
# remove confusing static config.h in lirc 0.10.2 release package (temp fix)
|
|
# lead to "LIRC_LOCKDIR" redefined to "/var/lock/lockdir"
|
|
rm ${PKG_BUILD}/lib/lirc/config.h
|
|
}
|
|
|
|
pre_configure_target() {
|
|
export HAVE_WORKING_POLL=yes
|
|
export HAVE_UINPUT=yes
|
|
export PYTHON=:
|
|
export PYTHON_VERSION=${PKG_PYTHON_VERSION#python}
|
|
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_configure_target() {
|
|
libtool_remove_rpath libtool
|
|
}
|
|
|
|
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/lirc_options.conf ${INSTALL}/etc/lirc
|
|
ln -s /storage/.config/lircd.conf ${INSTALL}/etc/lirc/lircd.conf
|
|
|
|
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/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
|
|
}
|