Patchwork [3/4] linknx: new package

login
register
mail settings
Submitter Thomas Petazzoni
Date March 24, 2013, 9:34 p.m.
Message ID <1364160848-15168-4-git-send-email-thomas.petazzoni@free-electrons.com>
Download mbox | patch
Permalink /patch/230492/
State Superseded
Headers show

Comments

Thomas Petazzoni - March 24, 2013, 9:34 p.m.
From: Gregory Hermant <gregory.hermant@calao-systems.com>

[Thomas: various fixes/improvements]
Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in        |    1 +
 package/linknx/Config.in |    8 ++++++++
 package/linknx/linknx.mk |   31 +++++++++++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 package/linknx/Config.in
 create mode 100644 package/linknx/linknx.mk
Peter Korsgaard - March 24, 2013, 10 p.m.
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> From: Gregory Hermant <gregory.hermant@calao-systems.com>
 Thomas> [Thomas: various fixes/improvements]
 Thomas> Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
 Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 Thomas> ---
 Thomas>  package/Config.in        |    1 +
 Thomas>  package/linknx/Config.in |    8 ++++++++
 Thomas>  package/linknx/linknx.mk |   31 +++++++++++++++++++++++++++++++
 Thomas>  3 files changed, 40 insertions(+)
 Thomas>  create mode 100644 package/linknx/Config.in
 Thomas>  create mode 100644 package/linknx/linknx.mk

 Thomas> diff --git a/package/Config.in b/package/Config.in
 Thomas> index be1aa99..97aab31 100644
 Thomas> --- a/package/Config.in
 Thomas> +++ b/package/Config.in
 Thomas> @@ -672,6 +672,7 @@ source "package/iptables/Config.in"
 Thomas>  source "package/iw/Config.in"
 Thomas>  source "package/kismet/Config.in"
 Thomas>  source "package/lighttpd/Config.in"
 Thomas> +source "package/linknx/Config.in"
 Thomas>  source "package/links/Config.in"
 Thomas>  source "package/linphone/Config.in"
 Thomas>  source "package/lrzsz/Config.in"
 Thomas> diff --git a/package/linknx/Config.in b/package/linknx/Config.in
 Thomas> new file mode 100644
 Thomas> index 0000000..70942fc
 Thomas> --- /dev/null
 Thomas> +++ b/package/linknx/Config.in
 Thomas> @@ -0,0 +1,8 @@
 Thomas> +config BR2_PACKAGE_LINKNX
 Thomas> +	bool "linknx"
 Thomas> +	select BR2_PACKAGE_LIBPTHSEM
 Thomas> +	help
 Thomas> +	  Linknx is an automation platform providing high level functionalities
 Thomas> +	  to EIB/KNX installation.
 Thomas> +
 Thomas> +	  http://linknx.sourceforge.net/

If I'm not mistaken, linknx is implemented in C++, so you need the
INSTALL_LIBSTDCPP dependency.

 Thomas> +LINKNX_CONF_OPT = --without-lua --without-log4cpp --without-pth-test \
 Thomas> +		  --with-pth=$(STAGING_DIR)/usr

The log4cpp reference seems to confirm that. We do have a log4cxx
package now though.

Patch

diff --git a/package/Config.in b/package/Config.in
index be1aa99..97aab31 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -672,6 +672,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..70942fc
--- /dev/null
+++ b/package/linknx/Config.in
@@ -0,0 +1,8 @@ 
+config BR2_PACKAGE_LINKNX
+	bool "linknx"
+	select BR2_PACKAGE_LIBPTHSEM
+	help
+	  Linknx is an automation platform providing high level functionalities
+	  to EIB/KNX installation.
+
+	  http://linknx.sourceforge.net/
diff --git a/package/linknx/linknx.mk b/package/linknx/linknx.mk
new file mode 100644
index 0000000..2520382
--- /dev/null
+++ b/package/linknx/linknx.mk
@@ -0,0 +1,31 @@ 
+#############################################################
+#
+# linknx
+#
+#############################################################
+
+LINKNX_VERSION = 0.0.1.30
+LINKNX_SOURCE = linknx-${LINKNX_VERSION}.tar.gz
+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))