aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/zwave.scm
blob: 2019ec32dfed1066d118e59ab03e91f4942d3928 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages zwave)
  #:use-module (guix packages)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix git-download)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages)
  #:use-module (gnu packages base)
  #:use-module (gnu packages libusb)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages xml))

(define-public open-zwave
  (package
    (name "open-zwave")
    (version "1.6")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/OpenZWave/open-zwave/")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0xgs4mmr0480c269wx9xkk67ikjzxkh8xcssrdx0f5xcl1lyd333"))
              (patches (search-patches "open-zwave-hidapi.patch"))
              (modules '((guix build utils)))
              (snippet
               '(begin
                  ;; Set RUNPATH on the 'MinOZW' executable.
                  (substitute* "cpp/examples/MinOZW/Makefile"
                    (("\\$\\(LDFLAGS\\)")
                     "$(LDFLAGS) -Wl,-rpath=$(PREFIX)/lib"))

                  ;; XXX: There's a bundled TinyXML under cpp/tinyxml.  Keep
                  ;; it because using our own TinyXML leads to double-free
                  ;; down the road.

                  ;; Delete the bundled HIDAPI.
                  (delete-file-recursively "cpp/hidapi")
                  #t))))
    (build-system gnu-build-system)
    (arguments
     '(#:phases (modify-phases %standard-phases
                  (delete 'configure))            ;no 'configure' script

       #:make-flags (list "BUILD=debug"
                          (string-append "PREFIX="
                                         (assoc-ref %outputs "out"))
                          (string-append "pkgconfigdir="
                                         (assoc-ref %outputs "out")
                                         "/lib/pkgconfig"))

       ;; "make check" and "make fulltest" are only concerned with checking
       ;; the device XML database and it's not entirely clear what to get from
       ;; them.
       #:tests? #f))
    (native-inputs `(("which" ,which)
                     ("pkg-config" ,pkg-config)
                     ("perl" ,perl)               ;for tests
                     ("perl-xml-simple" ,perl-xml-simple)))
    (inputs `(("hidapi" ,hidapi)
              ("eudev" ,eudev)))
    (home-page "http://www.openzwave.net/")
    (synopsis "Access Z-Wave devices from C++ programs")
    (description
     "OpenZWave (or OZW) is a C++ library that interfaces with selected Z-Wave
PC controllers.  It allows developers to create applications that manipulate
and respond to devices on a Z-Wave network, without requiring in-depth
knowledge of the Z-Wave protocol.")
    (license license:lgpl3+)))
2878logplainabout -rw-r--r--antivirus.scm7327logplainabout -rw-r--r--apl.scm2193logplainabout -rw-r--r--apr.scm4303logplainabout -rw-r--r--arcan.scm11501logplainabout -rw-r--r--aspell.scm17185logplainabout -rw-r--r--assembly.scm10031logplainabout -rw-r--r--astronomy.scm10959logplainabout -rw-r--r--attr.scm2879logplainabout -rw-r--r--audio.scm147721logplainabout -rw-r--r--augeas.scm2588logplainabout -rw-r--r--authentication.scm5568logplainabout -rw-r--r--autogen.scm3063logplainabout -rw-r--r--autotools.scm18613logplainabout d---------aux-files151logplain -rw-r--r--avahi.scm4655logplainabout -rw-r--r--avr.scm7275logplainabout -rw-r--r--axoloti.scm16296logplainabout -rw-r--r--backup.scm41662logplainabout -rw-r--r--base.scm60021logplainabout -rw-r--r--bash.scm15063logplainabout -rw-r--r--batik.scm8803logplainabout -rw-r--r--bdw-gc.scm5524logplainabout -rw-r--r--benchmark.scm9491logplainabout -rw-r--r--bioconductor.scm231072logplainabout -rw-r--r--bioinformatics.scm621680logplainabout -rw-r--r--bison.scm3053logplainabout -rw-r--r--bittorrent.scm19782logplainabout -rw-r--r--boost.scm12974logplainabout -rw-r--r--bootloaders.scm44077logplainabout -rw-r--r--bootstrap.scm34139logplainabout -rw-r--r--build-tools.scm12019logplainabout -rw-r--r--busybox.scm6344logplainabout -rw-r--r--c.scm13556logplainabout -rw-r--r--calcurse.scm3487logplainabout -rw-r--r--calendar.scm8204logplainabout -rw-r--r--ccache.scm2450logplainabout -rw-r--r--cdrom.scm39900logplainabout -rw-r--r--cedille.scm5208logplainabout -rw-r--r--certs.scm8919logplainabout -rw-r--r--check.scm91176logplainabout -rw-r--r--chemistry.scm14249logplainabout -rw-r--r--chez.scm27797logplainabout -rw-r--r--chromium.scm39344logplainabout -rw-r--r--ci.scm7107logplainabout -rw-r--r--cinnamon.scm3236logplainabout -rw-r--r--clojure.scm12371logplainabout -rw-r--r--cluster.scm4994logplainabout -rw-r--r--cmake.scm11011logplainabout -rw-r--r--cobol.scm2997logplainabout -rw-r--r--code.scm28728logplainabout -rw-r--r--commencement.scm110872logplainabout -rw-r--r--compression.scm90090logplainabout -rw-r--r--compton.scm4113logplainabout -rw-r--r--conky.scm3495logplainabout -rw-r--r--connman.scm7227logplainabout -rw-r--r--cook.scm3594logplainabout -rw-r--r--coq.scm24327logplainabout -rw-r--r--cpio.scm1971logplainabout -rw-r--r--cpp.scm14431logplainabout -rw-r--r--cppi.scm1775logplainabout -rw-r--r--cran.scm560687logplainabout -rw-r--r--crates-io.scm162617logplainabout -rw-r--r--cross-base.scm23645logplainabout -rw-r--r--crypto.scm43417logplainabout -rw-r--r--cryptsetup.scm6211logplainabout -rw-r--r--cups.scm38062logplainabout -rw-r--r--curl.scm11056logplainabout -rw-r--r--cvassistant.scm3640logplainabout -rw-r--r--cyrus-sasl.scm3020logplainabout -rw-r--r--databases.scm125889logplainabout -rw-r--r--datamash.scm1963logplainabout -rw-r--r--datastructures.scm9962logplainabout -rw-r--r--dav.scm4788logplainabout -rw-r--r--dbm.scm6103logplainabout -rw-r--r--dc.scm2239logplainabout -rw-r--r--debian.scm8357logplainabout -rw-r--r--debug.scm18843logplainabout -rw-r--r--dejagnu.scm3510logplainabout -rw-r--r--dico.scm3527logplainabout -rw-r--r--dictionaries.scm16561logplainabout -rw-r--r--diffoscope.scm12591logplainabout -rw-r--r--digest.scm2394logplainabout -rw-r--r--direct-connect.scm2610logplainabout -rw-r--r--disk.scm32480logplainabout -rw-r--r--display-managers.scm11923logplainabout -rw-r--r--distributed.scm3995logplainabout -rw-r--r--django.scm38593logplainabout -rw-r--r--djvu.scm2064logplainabout -rw-r--r--dlang.scm15952logplainabout -rw-r--r--dns.scm39047logplainabout -rw-r--r--docbook.scm11808logplainabout -rw-r--r--docker.scm30600logplainabout -rw-r--r--documentation.scm10056logplainabout -rw-r--r--dunst.scm3164logplainabout -rw-r--r--dvtm.scm2311logplainabout -rw-r--r--easyrpg.scm4438logplainabout -rw-r--r--ebook.scm14783logplainabout -rw-r--r--ed.scm2378logplainabout -rw-r--r--education.scm26230logplainabout -rw-r--r--efi.scm8323logplainabout -rw-r--r--electronics.scm10730logplainabout -rw-r--r--elf.scm10129logplainabout -rw-r--r--elixir.scm5028logplainabout -rw-r--r--elm.scm3960logplainabout -rw-r--r--emacs-xyz.scm776615logplainabout -rw-r--r--emacs.scm15854logplainabout -rw-r--r--embedded.scm50597logplainabout -rw-r--r--emulators.scm58234logplainabout -rw-r--r--enchant.scm3714logplainabout -rw-r--r--engineering.scm99579logplainabout -rw-r--r--enlightenment.scm23842logplainabout -rw-r--r--entr.scm2849logplainabout -rw-r--r--erlang.scm10103logplainabout -rw-r--r--fabric-management.scm9625logplainabout -rw-r--r--fcitx.scm5107logplainabout -rw-r--r--figlet.scm1797logplainabout -rw-r--r--file-systems.scm13092logplainabout -rw-r--r--file.scm2342logplainabout -rw-r--r--finance.scm47107logplainabout -rw-r--r--firmware.scm22160logplainabout -rw-r--r--flashing-tools.scm18445logplainabout -rw-r--r--flex.scm3673logplainabout -rw-r--r--fltk.scm6096logplainabout -rw-r--r--fonts.scm66319logplainabout -rw-r--r--fontutils.scm31925logplainabout -rw-r--r--forth.scm2424logplainabout -rw-r--r--fpga.scm13832logplainabout -rw-r--r--freedesktop.scm61330logplainabout -rw-r--r--freeipmi.scm2072logplainabout -rw-r--r--fribidi.scm2152logplainabout -rw-r--r--ftp.scm10962logplainabout -rw-r--r--fvwm.scm3341logplainabout -rw-r--r--game-development.scm75325logplainabout -rw-r--r--games.scm325287logplainabout -rw-r--r--gawk.scm3785logplainabout -rw-r--r--gcal.scm2889logplainabout -rw-r--r--gcc.scm44509logplainabout -rw-r--r--gd.scm6535logplainabout -rw-r--r--gdb.scm5128logplainabout -rw-r--r--genealogy.scm4560logplainabout -rw-r--r--genimage.scm8258logplainabout -rw-r--r--geo.scm47998logplainabout -rw-r--r--gettext.scm10707logplainabout -rw-r--r--ghostscript.scm16832logplainabout -rw-r--r--gimp.scm16018logplainabout -rw-r--r--gkrellm.scm2451logplainabout -rw-r--r--gl.scm36432logplainabout -rw-r--r--glib.scm41559logplainabout -rw-r--r--gnome-xyz.scm8375logplainabout -rw-r--r--gnome.scm338264logplainabout -rw-r--r--gnu-doc.scm4109logplainabout -rw-r--r--gnu-pw-mgr.scm2378logplainabout -rw-r--r--gnucash.scm13243logplainabout -rw-r--r--gnunet.scm14337logplainabout -rw-r--r--gnupg.scm44486logplainabout -rw-r--r--gnustep.scm11910logplainabout -rw-r--r--gnuzilla.scm53869logplainabout -rw-r--r--gobby.scm7738logplainabout -rw-r--r--golang.scm125489logplainabout -rw-r--r--gperf.scm2354logplainabout -rw-r--r--gpodder.scm7094logplainabout -rw-r--r--gprolog.scm2742logplainabout -rw-r--r--gps.scm8260logplainabout -rw-r--r--graph.scm19139logplainabout -rw-r--r--graphics.scm46885logplainabout -rw-r--r--graphviz.scm13810logplainabout -rw-r--r--groff.scm8199logplainabout -rw-r--r--groovy.scm47230logplainabout -rw-r--r--gsasl.scm4724logplainabout -rw-r--r--gstreamer.scm18349logplainabout -rw-r--r--gtk.scm73284logplainabout -rw-r--r--guile-wm.scm9225logplainabout -rw-r--r--guile-xyz.scm110095logplainabout -rw-r--r--guile.scm25010logplainabout -rw-r--r--gv.scm3247logplainabout -rw-r--r--gxmessage.scm2352logplainabout -rw-r--r--ham-radio.scm4773logplainabout -rw-r--r--hardware.scm11664logplainabout -rw-r--r--haskell-apps.scm29477logplainabout -rw-r--r--haskell-check.scm35862logplainabout -rw-r--r--haskell-crypto.scm32971logplainabout -rw-r--r--haskell-web.scm58489logplainabout -rw-r--r--haskell-xyz.scm489334logplainabout -rw-r--r--haskell.scm26856logplainabout -rw-r--r--hexedit.scm3222logplainabout -rw-r--r--hugs.scm3688logplainabout -rw-r--r--hurd.scm13091logplainabout -rw-r--r--hyperledger.scm4059logplainabout -rw-r--r--i2p.scm5024logplainabout -rw-r--r--ibus.scm27797logplainabout -rw-r--r--icu4c.scm5482logplainabout -rw-r--r--idris.scm12316logplainabout -rw-r--r--idutils.scm2816logplainabout -rw-r--r--image-processing.scm33082logplainabout -rw-r--r--image-viewers.scm20507logplainabout -rw-r--r--image.scm73459logplainabout -rw-r--r--imagemagick.scm9344logplainabout -rw-r--r--inklingreader.scm2239logplainabout -rw-r--r--inkscape.scm3876logplainabout -rw-r--r--installers.scm6869logplainabout -rw-r--r--ipfs.scm12647logplainabout -rw-r--r--irc.scm17949logplainabout -rw-r--r--iso-codes.scm4113logplainabout -rw-r--r--java-compression.scm13337logplainabout -rw-r--r--java-maths.scm3607logplainabout -rw-r--r--java.scm500823logplainabout -rw-r--r--javascript.scm19305logplainabout -rw-r--r--jemalloc.scm3218logplainabout -rw-r--r--jose.scm1999logplainabout -rw-r--r--jrnl.scm2440logplainabout -rw-r--r--julia.scm21593logplainabout -rw-r--r--jupyter.scm7753logplainabout -rw-r--r--kawa.scm2127logplainabout -rw-r--r--kde-frameworks.scm143114logplainabout -rw-r--r--kde-plasma.scm8831logplainabout -rw-r--r--kde.scm25874logplainabout -rw-r--r--kerberos.scm9170logplainabout -rw-r--r--key-mon.scm2120logplainabout -rw-r--r--kodi.scm21465logplainabout -rw-r--r--language.scm33498logplainabout -rw-r--r--ld-wrapper.in11660logplainabout -rw-r--r--lego.scm5400logplainabout -rw-r--r--less.scm1883logplainabout -rw-r--r--lesstif.scm1817logplainabout -rw-r--r--libbsd.scm2092logplainabout -rw-r--r--libcanberra.scm6105logplainabout -rw-r--r--libdaemon.scm2903logplainabout -rw-r--r--libedit.scm2002logplainabout -rw-r--r--libevent.scm9533logplainabout -rw-r--r--libffcall.scm1813logplainabout -rw-r--r--libffi.scm9887logplainabout -rw-r--r--libftdi.scm1943logplainabout -rw-r--r--libidn.scm3562logplainabout -rw-r--r--libphidget.scm1747logplainabout -rw-r--r--libreoffice.scm44103logplainabout -rw-r--r--libsigsegv.scm2731logplainabout -rw-r--r--libunistring.scm3159logplainabout