From patchwork Fri Mar 4 15:15:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: fabrice.fontaine@orange.com X-Patchwork-Id: 592071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id BE8F31401E7 for ; Sat, 5 Mar 2016 02:16:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C0917A64A7; Fri, 4 Mar 2016 15:16:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ev5LkgH7VCss; Fri, 4 Mar 2016 15:16:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 677B9A6459; Fri, 4 Mar 2016 15:16:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id ADCAD1C1747 for ; Fri, 4 Mar 2016 15:15:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A840891DEC for ; Fri, 4 Mar 2016 15:15:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7TxmV+WJmPHq for ; Fri, 4 Mar 2016 15:15:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relais-inet.francetelecom.com (relais-ias91.francetelecom.com [193.251.215.91]) by whitealder.osuosl.org (Postfix) with ESMTPS id 458DA91B3F for ; Fri, 4 Mar 2016 15:15:57 +0000 (UTC) Received: from omfedm07.si.francetelecom.fr (unknown [xx.xx.xx.3]) by omfedm12.si.francetelecom.fr (ESMTP service) with ESMTP id 1F8A118C6EF for ; Fri, 4 Mar 2016 16:15:55 +0100 (CET) Received: from Exchangemail-eme2.itn.ftgroup (unknown [10.114.31.41]) by omfedm07.si.francetelecom.fr (ESMTP service) with ESMTP id 0488B4C05D for ; Fri, 4 Mar 2016 16:15:55 +0100 (CET) Received: from r-x-uffo8396.rd.francetelecom.fr (10.168.234.1) by OPEXCLILM31.corporate.adroot.infra.ftgroup (10.114.31.41) with Microsoft SMTP Server id 14.3.279.2; Fri, 4 Mar 2016 16:15:49 +0100 From: To: Date: Fri, 4 Mar 2016 16:15:47 +0100 X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.168.234.1] Message-ID: <19328_1457104555_56D9A6AB_19328_989_1_edaf41c4-ad3f-447b-914b-0d7a5d0b74d0@OPEXCLILM31.corporate.adroot.infra.ftgroup> X-PMX-Version: 6.2.1.2478543, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.3.2.114516 Cc: Fabrice FONTAINE Subject: [Buildroot] [PATCH 1/1] openzwave: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Free software library that interfaces with selected Z-Wave PC controllers, allowing anyone to create applications that manipulate and respond to devices on a Z-Wave network, without requiring in-depth knowledge of the Z-Wave protocol Signed-off-by: Fabrice FONTAINE --- package/Config.in | 1 + package/openzwave/Config.in | 17 +++++++++++++++++ package/openzwave/openzwave.mk | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 package/openzwave/Config.in create mode 100644 package/openzwave/openzwave.mk diff --git a/package/Config.in b/package/Config.in index 3c6e448..d729750 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1155,6 +1155,7 @@ menu "Networking" source "package/omniorb/Config.in" source "package/openldap/Config.in" source "package/openpgm/Config.in" + source "package/openzwave/Config.in" source "package/ortp/Config.in" source "package/qdecoder/Config.in" source "package/qpid-proton/Config.in" diff --git a/package/openzwave/Config.in b/package/openzwave/Config.in new file mode 100644 index 0000000..3c6cba5 --- /dev/null +++ b/package/openzwave/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_OPENZWAVE + bool "openzwave" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_HAS_UDEV + help + Free software library that interfaces with selected Z-Wave PC + controllers, allowing anyone to create applications that manipulate + and respond to devices on a Z-Wave network, without requiring + in-depth knowledge of the Z-Wave protocol + + http://www.openzwave.net + +comment "openzwave needs udev and a toolchain w/ C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_PACKAGE_HAS_UDEV + diff --git a/package/openzwave/openzwave.mk b/package/openzwave/openzwave.mk new file mode 100644 index 0000000..fc89bfa --- /dev/null +++ b/package/openzwave/openzwave.mk @@ -0,0 +1,40 @@ +################################################################################ +# +# openzwave +# +################################################################################ + +OPENZWAVE_VERSION = v1.4 +OPENZWAVE_SITE = $(call github,OpenZWave,open-zwave,$(OPENZWAVE_VERSION)) + +# The OpenZWave Library is distributed under the LGPL Version 3 license. +# The Example Programs and some support files are distributed under +# different licenses. +OPENZWAVE_LICENSE = LGPLv3+, GPLv3 (examples), Apache-2.0 (sh2ju.sh) +OPENZWAVE_LICENSE_FILES = license/license.txt license/lgpl.txt \ + license/gpl.txt license/Apache-License-2.0.txt + +OPENZWAVE_DEPENDENCIES = host-pkgconf udev +OPENZWAVE_INSTALL_STAGING = YES + +define OPENZWAVE_BUILD_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_ENV) PREFIX=/usr +endef + +# Set pkgconfigdir to /usr/lib/pkgconfig to install libopenzwave.pc in the +# correct directory otherwise openzwave will call +# "pkg-config --variable pc_path pkg-config" which returns an incorrect value +define OPENZWAVE_INSTALL_STAGING_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_ENV) \ + PREFIX=/usr DESTDIR=$(STAGING_DIR) \ + pkgconfigdir=/usr/lib/pkgconfig \ + install +endef + +define OPENZWAVE_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_ENV) \ + PREFIX=/usr DESTDIR=$(TARGET_DIR) \ + install +endef + +$(eval $(generic-package))