This commit is contained in:
Poyraz76
2015-08-20 17:05:30 +03:00
parent 9725b33f4f
commit 494c35ea46
13 changed files with 365 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
diff -Nur lirc-0.8.3pre1-old/configure.ac lirc-0.8.3pre1/configure.ac
--- lirc-0.8.3pre1-old/configure.ac 2007-12-05 19:16:55.855088318 +0200
+++ lirc-0.8.3pre1/configure.ac 2007-12-05 19:19:22.301825030 +0200
@@ -9,7 +9,7 @@
AM_INIT_AUTOMAKE(lirc, 0.8.3pre1)
AM_CONFIG_HEADER(config.h)
-CFLAGS="${CFLAGS--O2 -g -Wall}"
+CFLAGS=""
dnl Checks for programs.
AC_PROG_CC
+12
View File
@@ -0,0 +1,12 @@
diff -Nur lirc-0.9.0-pre1-old//config.h.in lirc-0.9.0-pre1/config.h.in
--- lirc-0.9.0-pre1-old//config.h.in 2010-12-27 23:17:34.689000035 +0200
+++ lirc-0.9.0-pre1/config.h.in 2010-12-27 23:18:10.491999952 +0200
@@ -2,7 +2,7 @@
/* device file names - beneath DEVDIR (default /dev) */
-#define DEV_LIRC "lirc"
+#define DEV_LIRC "lirc0"
#define DEV_LIRCD "lircd"
#define DEV_LIRCM "lircm"
@@ -0,0 +1,95 @@
diff --git a/configure.ac b/configure.ac
index 6c07e0d..1a3347e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,11 +20,11 @@ AC_PROG_MAKE_SET
AC_PATH_PROG(mknod, mknod, /bin/mknod)
AC_PATH_PROG(mkfifo, mkfifo, /usr/bin/mkfifo)
AC_PATH_PROG(depmod, depmod, /sbin/depmod, $PATH:/sbin)
-AC_PATH_PROG(LIBUSB_CONFIG, libusb-config)
AC_PROG_LN_S
AC_PROG_LIBTOOL
AM_PATH_PYTHON(,, [:])
AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != ""])
+LIBUSB_CONFIG="pkg-config libusb"
dnl Checks for header files.
AC_HEADER_STDC
@@ -310,15 +310,14 @@ AH_TEMPLATE([SYSCONFDIR],
AH_TEMPLATE([USE_SYSLOG],
[define if you want to log to syslog instead of logfile])
-if test -n "${LIBUSB_CONFIG}"; then
- AC_DEFINE(HAVE_LIBUSB)
- possible_drivers="${possible_drivers} (atilibusb) (awlibusb) (dfclibusb) (commandir) (srm7500libusb)"
-fi
-
AC_CHECK_LIB(caraca_client, caraca_init,
AC_DEFINE(HAVE_LIBCARACA)
possible_drivers="${possible_drivers} (caraca)"
)
+AC_CHECK_HEADER(usb.h,
+ AC_DEFINE(HAVE_LIBUSB)
+ possible_drivers="${possible_drivers} (atilibusb) (awlibusb) (dfclibusb) (commandir) (srm7500libusb)"
+)
AC_CHECK_HEADER(ftdi.h,
AC_DEFINE(HAVE_FTDI)
possible_drivers="${possible_drivers} (ftdi)"
@@ -1449,7 +1448,7 @@ Get it at:
Or install these packages from your distro:
libusb
- libusb-dev
+ libusb-devel
])
;;
--- lirc-0.9.0/configure.orig 2011-06-07 00:08:14.850212313 -0400
+++ lirc-0.9.0/configure 2011-06-07 00:11:07.140109458 -0400
@@ -865,7 +865,6 @@ build_cpu
build
LIBTOOL
LN_S
-LIBUSB_CONFIG
depmod
mkfifo
mknod
@@ -4160,37 +4159,7 @@ $as_echo "no" >&6; }
fi
-# Extract the first word of "libusb-config", so it can be a program name with args.
-set dummy libusb-config; ac_word=$2
-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_path_LIBUSB_CONFIG+set}" = set; then
- $as_echo_n "(cached) " >&6
-else
- case $LIBUSB_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_LIBUSB_CONFIG="$LIBUSB_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_LIBUSB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-LIBUSB_CONFIG=$ac_cv_path_LIBUSB_CONFIG
+LIBUSB_CONFIG="pkg-config libusb"
if test -n "$LIBUSB_CONFIG"; then
{ $as_echo "$as_me:$LINENO: result: $LIBUSB_CONFIG" >&5
$as_echo "$LIBUSB_CONFIG" >&6; }
+7
View File
@@ -0,0 +1,7 @@
# Options to pass to the lircd process
LIRCD_OPTS="-d /dev/lirc0"
# wheter use lirc mouse daemon
USE_LIRCMD="no"
# kernel module to load, may be needed for lirc_serial etc.
LIRC_MODULE=""
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=LIRC Infrared Signal Decoder
After=network.target
[Service]
Type=forking
PIDFile=/run/lirc/lircd.pid
ExecStart=/usr/sbin/lircd --driver=default --device=/dev/lirc0
[Install]
WantedBy=multi-user.target
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=LIRC Infrared Mouse Event Signal Decoder
Requires=lirc.service
After=network.target lirc.service
[Service]
Type=forking
ExecStart=/usr/sbin/lircmd
[Install]
WantedBy=multi-user.target
+11
View File
@@ -0,0 +1,11 @@
diff -Nur lirc-0.8.4a-old/drivers/lirc_gpio/Makefile.am lirc-0.8.4a/drivers/lirc_gpio/Makefile.am
--- lirc-0.8.4a-old/drivers/lirc_gpio/Makefile.am 2009-04-21 19:07:37.000000000 +0300
+++ lirc-0.8.4a/drivers/lirc_gpio/Makefile.am 2009-04-21 19:07:38.000000000 +0300
@@ -8,6 +8,6 @@
automake_dummy_SOURCES = lirc_gpio.c
## there is no *just* object file support in automake. This is close enough
-module_DATA = lirc_gpio.o
+module_DATA =
include ../Makefile.common
@@ -0,0 +1,12 @@
diff -Nur lirc-0.9.0-pre1-old//tools/xmode2.c lirc-0.9.0-pre1/tools/xmode2.c
--- lirc-0.9.0-pre1-old//tools/xmode2.c 2010-12-27 23:17:34.673000031 +0200
+++ lirc-0.9.0-pre1/tools/xmode2.c 2010-12-27 23:29:47.825000031 +0200
@@ -69,7 +69,7 @@
Window w0, w1; /*w0 = root */
char w1_wname[] = "xmode2";
char w1_iname[] = "xmode2";
-char font1_name[] = "-*-Courier-medium-r-*-*-8-*-*-m-*-iso8859-1";
+char font1_name[] = "-misc-fixed-*-r-*-*-12-*-*-*-*-*-iso8859-1";
int w1_x = 0, w1_y = 0;
unsigned int w1_w = 640, w1_h = 480, w1_border = 0;