summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Hermant <gregory.hermant@calao-systems.com>2013-03-28 03:36:34 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-03-31 19:52:44 (GMT)
commit4deba5c3d91d97de80b45241bcdc67e25f6e92e8 (patch)
tree7de8a5bbe4e9b617457e63b7e4f6064720850485
parent1b22957a2c8cb79024f811618f4d09f191d88a6f (diff)
downloadbuildroot-4deba5c3d91d97de80b45241bcdc67e25f6e92e8.tar.gz
buildroot-4deba5c3d91d97de80b45241bcdc67e25f6e92e8.tar.bz2
linknx: new package
[Peter: add patch to fix build issue with gcc 4.7+] [Thomas: various fixes/improvements] Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/linknx/Config.in12
-rw-r--r--package/linknx/linknx-missing-unistd.patch22
-rw-r--r--package/linknx/linknx.mk30
4 files changed, 65 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 463d1b9..69d87f0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -680,6 +680,7 @@ source "package/iptables/Config.in"
source "package/iw/Config.in"
source "package/kismet/Config.in"
source "package/lighttpd/Config.in"
+source "package/linknx/Config.in"
source "package/links/Config.in"
source "package/linphone/Config.in"
source "package/lrzsz/Config.in"
diff --git a/package/linknx/Config.in b/package/linknx/Config.in
new file mode 100644
index 0000000..18e9867
--- /dev/null
+++ b/package/linknx/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LINKNX
+ bool "linknx"
+ select BR2_PACKAGE_LIBPTHSEM
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ Linknx is an automation platform providing high level functionalities
+ to EIB/KNX installation.
+
+ http://linknx.sourceforge.net/
+
+comment "linknx requires a toolchain with C++ support"
+ depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/linknx/linknx-missing-unistd.patch b/package/linknx/linknx-missing-unistd.patch
new file mode 100644
index 0000000..04b088f
--- /dev/null
+++ b/package/linknx/linknx-missing-unistd.patch
@@ -0,0 +1,22 @@
+[PATCH]: ioport.cpp: close(2) needs unistd.h
+
+Fixed in upstream CVS:
+http://linknx.cvs.sourceforge.net/viewvc/linknx/linknx/linknx/src/ioport.cpp?revision=1.20&view=markup
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ src/ioport.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: linknx-0.0.1.30/src/ioport.cpp
+===================================================================
+--- linknx-0.0.1.30.orig/src/ioport.cpp
++++ linknx-0.0.1.30/src/ioport.cpp
+@@ -21,6 +21,7 @@
+ #include <iomanip>
+ #include "ioport.h"
+ #include <fcntl.h>
++#include <unistd.h>
+
+ Logger& IOPort::logger_m(Logger::getInstance("IOPort"));
+ Logger& RxThread::logger_m(Logger::getInstance("RxThread"));
diff --git a/package/linknx/linknx.mk b/package/linknx/linknx.mk
new file mode 100644
index 0000000..42700a7
--- /dev/null
+++ b/package/linknx/linknx.mk
@@ -0,0 +1,30 @@
+#############################################################
+#
+# linknx
+#
+#############################################################
+
+LINKNX_VERSION = 0.0.1.30
+LINKNX_SITE = http://downloads.sourceforge.net/project/linknx/linknx/linknx-$(LINKNX_VERSION)
+LINKNX_LICENSE = GPLv2+
+LINKNX_INSTALL_STAGING = YES
+LINKNX_CONF_OPT = --without-lua --without-log4cpp --without-pth-test \
+ --with-pth=$(STAGING_DIR)/usr
+
+LINKNX_DEPENDENCIES = libpthsem
+
+ifeq ($(BR2_PACKAGE_MYSQL_CLIENT),y)
+LINKNX_CONF_OPT += --with-mysql=$(STAGING_DIR)/usr/bin/mysql_config
+LINKNX_DEPENDENCIES = mysql_client
+else
+LINKNX_CONF_OPT += --without-mysql
+endif
+
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+LINKNX_CONF_OPT += --with-libcurl=$(STAGING_DIR)/usr/bin/curl-config
+LINKNX_DEPENDENCIES += libcurl
+else
+LINKNX_CONF_OPT += --without-libcurl
+endif
+
+$(eval $(autotools-package))