summaryrefslogtreecommitdiff
path: root/package/lirc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-01 16:58:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-01 16:58:26 +0200
commit40c3106097de2cd717a87e2518e38b7f8ec958f4 (patch)
tree2ec11577da0c2a5883bfcb160fadb7ce2de65a6f /package/lirc
parent7622722daf826d0cd747d85b8baa9ce1b1387899 (diff)
add new package lirc, not tested, yet
Diffstat (limited to 'package/lirc')
-rw-r--r--package/lirc/Makefile38
-rw-r--r--package/lirc/patches/patch-Makefile_am16
-rw-r--r--package/lirc/patches/patch-configure_ac34
3 files changed, 88 insertions, 0 deletions
diff --git a/package/lirc/Makefile b/package/lirc/Makefile
new file mode 100644
index 000000000..b998ba1e0
--- /dev/null
+++ b/package/lirc/Makefile
@@ -0,0 +1,38 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= lirc
+PKG_VERSION:= 0.9.1-pre2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 234ea7d786a83e6f4f7a507a5719d62b
+PKG_DESCR:= decode and send infra-red signals
+PKG_SECTION:= sys/misc
+PKG_BUILDDEP:= autotool
+PKG_URL:= http://www.lirc.org/
+PKG_SITES:= http://www.lirc.org/software/snapshots/
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIRC,lirc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+AUTOTOOL_STYLE:= autoreconf
+CONFIGURE_ARGS+= --with-driver=none
+
+post-extract:
+ find $(WRKSRC)/ -name *.rej -delete
+
+lirc-install:
+ $(INSTALL_DIR) $(IDIR_LIRC)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/liblirc_client.so* \
+ $(IDIR_LIRC)/usr/lib
+ $(INSTALL_DIR) $(IDIR_LIRC)/usr/sbin
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/lircd \
+ $(IDIR_LIRC)/usr/sbin
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/lircmd \
+ $(IDIR_LIRC)/usr/sbin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/lirc/patches/patch-Makefile_am b/package/lirc/patches/patch-Makefile_am
new file mode 100644
index 000000000..0ccf11a47
--- /dev/null
+++ b/package/lirc/patches/patch-Makefile_am
@@ -0,0 +1,16 @@
+--- lirc-0.9.1-pre2.orig/Makefile.am 2014-05-05 22:29:53.000000000 +0200
++++ lirc-0.9.1-pre2/Makefile.am 2014-06-01 09:22:05.384955110 +0200
+@@ -9,12 +9,7 @@ AUTOMAKE_OPTIONS = 1.5 check-news dist-b
+ EXTRA_DIST = setup.sh setup-driver.sh setup-functions.sh setup.data data2setup.sh ANNOUNCE TODO
+ EXTRA_DIST += autogen.sh
+
+-## daemons/ and tools/ should appear before doc/ for help2man to work.
+-if SYSTEMD_INSTALL
+- SYSTEMD_DIR = systemd
+-endif
+-
+-SUBDIRS = drivers daemons tools doc $(SYSTEMD_DIR)
++SUBDIRS = drivers daemons tools
+
+ if SANDBOXED
+ else
diff --git a/package/lirc/patches/patch-configure_ac b/package/lirc/patches/patch-configure_ac
new file mode 100644
index 000000000..b7132a1dd
--- /dev/null
+++ b/package/lirc/patches/patch-configure_ac
@@ -0,0 +1,34 @@
+--- lirc-0.9.1-pre2.orig/configure.ac 2014-05-05 22:27:40.000000000 +0200
++++ lirc-0.9.1-pre2/configure.ac 2014-06-01 09:16:22.335385328 +0200
+@@ -235,9 +235,6 @@ AH_TEMPLATE([HAVE_SCSI],
+ AH_TEMPLATE([HAVE_SOUNDCARD],
+ [defined if soundcard API is available])
+
+-AH_TEMPLATE([HAVE_SYSTEMD],
+- [defined if systemd API is available])
+-
+ AH_TEMPLATE([HAVE_VSYSLOG],
+ [define if you have vsyslog( prio, fmt, va_arg )])
+
+@@ -420,13 +417,6 @@ AC_CHECK_HEADERS(linux/i2c-dev.h,[
+ ]
+ )
+
+-PKG_CHECK_MODULES([SYSTEMD],[libsystemd-daemon],[AC_DEFINE(HAVE_SYSTEMD)],[true])
+-CFLAGS="$CFLAGS $SYSTEMD_CFLAGS"
+-LIBS="$LIBS $SYSTEMD_LIBS"
+-
+-AC_CHECK_FILE([/usr/lib/systemd/system], [has_systemd_system=true],[true])
+-AM_CONDITIONAL([SYSTEMD_INSTALL],[test x"$has_systemd_system" = xtrue])
+-
+ dnl here we see what driver the user wants.
+
+ AC_ARG_WITH(driver,
+@@ -1811,7 +1801,6 @@ AC_CONFIG_FILES([
+ daemons/Makefile
+ tools/Makefile
+ doc/Makefile
+- systemd/Makefile
+ ])
+ AC_OUTPUT
+