Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephan Hoffmann <sho@relinux.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] mtdev2tuio: new package
Date: Tue, 28 Aug 2012 16:13:33 +0200	[thread overview]
Message-ID: <503CD20D.7060703@relinux.de> (raw)

mtdev2tuio is a simple application for converting touch events
to the standard TUIO 1.1 protocol.

https://github.com/olivopaolo/mtdev2tuio

Signed-off-by: Stephan Hoffmann <sho@relinux.de>
---
 package/Config.in                                  |    2 +
 package/mtdev2tuio/Config.in                       |    8 ++++++
 ...ev2tuio-Use-gcc-instead-of-ld-for-linking.patch |   26
++++++++++++++++++++
 package/mtdev2tuio/mtdev2tuio.mk                   |   22 ++++++++++++++++
 4 files changed, 58 insertions(+), 0 deletions(-)
 create mode 100644 package/mtdev2tuio/Config.in
 create mode 100644
package/mtdev2tuio/mtdev2tuio-Use-gcc-instead-of-ld-for-linking.patch
 create mode 100644 package/mtdev2tuio/mtdev2tuio.mk

diff --git a/package/Config.in b/package/Config.in
index f308de7..67498f8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -291,6 +291,7 @@ source "package/libcdaudio/Config.in"
 source "package/libcue/Config.in"
 source "package/libcuefile/Config.in"
 source "package/libid3tag/Config.in"
+source "package/liblo/Config.in"
 source "package/libmad/Config.in"
 source "package/libmpd/Config.in"
 source "package/libreplaygain/Config.in"
@@ -461,6 +462,7 @@ source "package/libsigc/Config.in"
 source "package/libtpl/Config.in"
 source "package/liburcu/Config.in"
 source "package/lttng-libust/Config.in"
+source "package/mtdev2tuio/Config.in"
 source "package/orc/Config.in"
 source "package/poco/Config.in"
 source "package/protobuf/Config.in"
diff --git a/package/mtdev2tuio/Config.in b/package/mtdev2tuio/Config.in
new file mode 100644
index 0000000..ab50c7b
--- /dev/null
+++ b/package/mtdev2tuio/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_MTDEV2TUIO
+	bool "mtdev2tuio"
+	help
+	  mtdev2tuio is a simple application for converting touch
+	  events captured from libmtdev to TUIO 1.1
+
+	  https://github.com/olivopaolo/mtdev2tuio
+
diff --git
a/package/mtdev2tuio/mtdev2tuio-Use-gcc-instead-of-ld-for-linking.patch
b/package/mtdev2tuio/mtdev2tuio-Use-gcc-instead-of-ld-for-linking.patch
new file mode 100644
index 0000000..cb7e16d
--- /dev/null
+++ b/package/mtdev2tuio/mtdev2tuio-Use-gcc-instead-of-ld-for-linking.patch
@@ -0,0 +1,26 @@
+From 3594a424f9610f982cd98b56fffb3ba3f597bd6a Mon Sep 17 00:00:00 2001
+From: Stephan Hoffmann <sho@relinux.de>
+Date: Tue, 28 Aug 2012 11:53:14 +0200
+Subject: [PATCH] Use gcc instead of ld for linking
+
+Signed-off-by: Stephan Hoffmann <sho@relinux.de>
+---
+ Makefile |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 8ed320a..788d6ed 100644
+--- a/Makefile
++++ b/Makefile
+@@ -26,7 +26,7 @@ OBJS=${SRCS:.c=.o}
+ + # Link rule
+ $(TARGET): $(OBJS)
+-	$(LD) $(LDFLAGS) $(OBJS) -o $@ $(LIBDIRS) $(LIBS)
++	$(CC) $(LDFLAGS) $(OBJS) -o $@ $(LIBDIRS) $(LIBS)
+ + # Compilation rule
+ %.o:%.c
+-- +1.7.0.4
+
diff --git a/package/mtdev2tuio/mtdev2tuio.mk
b/package/mtdev2tuio/mtdev2tuio.mk
new file mode 100644
index 0000000..2636525
--- /dev/null
+++ b/package/mtdev2tuio/mtdev2tuio.mk
@@ -0,0 +1,22 @@
+#############################################################
+#
+# mtdev2tuio
+#
+#############################################################
+MTDEV2TUIO_VERSION = e1e7378d86
+MTDEV2TUIO_SITE = git://github.com/olivopaolo/mtdev2tuio.git
+# MTDEV2TUIO_AUTORECONF = YES
+# MTDEV2TUIO_INSTALL_STAGING = YES
+# MTDEV2TUIO_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR)
LDFLAGS=-L$(STAGING_DIR)/usr/lib install
+MTDEV2TUIO_DEPENDENCIES = mtdev
+
+define MTDEV2TUIO_BUILD_CMDS
+$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) clean
+$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) +endef
+
+define MTDEV2TUIO_INSTALL_TARGET_CMDS
+$(INSTALL) -D -m 0755 $(@D)/mtdev2tuio $(TARGET_DIR)/usr/bin
+endef
+
+$(eval $(generic-package))
-- 
1.7.0.4

             reply	other threads:[~2012-08-28 14:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-28 14:13 Stephan Hoffmann [this message]
2012-08-28 14:25 ` [Buildroot] [PATCH] mtdev2tuio: new package Stephan Hoffmann
  -- strict thread matches above, loose matches on Subject: below --
2012-08-28 14:22 Stephan Hoffmann
2012-08-28 22:57 ` Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=503CD20D.7060703@relinux.de \
    --to=sho@relinux.de \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox