gnu: qtwebengine: Rename to qtwebengine-5.
[jackhill/guix/guix.git] / gnu / packages / lighting.scm
CommitLineData
818db708
JF
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
784e7d7a 3;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
818db708
JF
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages lighting)
21 #:use-module (guix build-system gnu)
784e7d7a 22 #:use-module (guix git-download)
818db708
JF
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix packages)
8d806cb0 25 #:use-module (gnu packages)
784e7d7a 26 #:use-module (gnu packages autotools)
818db708
JF
27 #:use-module (gnu packages bison)
28 #:use-module (gnu packages check)
29 #:use-module (gnu packages compression)
30 #:use-module (gnu packages gnunet)
31 #:use-module (gnu packages flex)
32 #:use-module (gnu packages libftdi)
33 #:use-module (gnu packages libusb)
34 #:use-module (gnu packages linux)
35 #:use-module (gnu packages pkg-config)
36 #:use-module (gnu packages protobuf))
37
38(define-public ola
784e7d7a
TGR
39 ;; Use a commit that allows building with libmicrohttpd 0.9.71.
40 ;; https://github.com/OpenLightingProject/ola/pull/1651
41 (let ((commit "5d882936436240b312b3836afd199587beaca840")
42 (revision "0"))
43 (package
44 (name "ola")
45 (version (git-version "0.10.7" revision commit))
46 (source
47 (origin
48 (method git-fetch)
49 (uri (git-reference
50 (url "https://github.com/OpenLightingProject/ola")
51 (commit commit)))
52 (sha256
53 (base32 "1bhl3gvmvmnyrygfj13cibf2xirm285m8abjkaxq22hrqbsvab2m"))
54 (file-name (git-file-name name version))))
55 (build-system gnu-build-system)
56 (native-inputs
8394619b
LC
57 (list bison
58 cppunit
59 flex
60 pkg-config
61 ;; For git repository bootstrapping.
62 autoconf
63 automake
64 libtool))
784e7d7a
TGR
65 (inputs
66 `(("libftdi" ,libftdi)
67 ("libmicrohttpd" ,libmicrohttpd)
68 ("libusb" ,libusb)
69 ("libuuid" ,util-linux "lib")
70 ("zlib" ,zlib)))
71 (propagated-inputs
8394619b 72 (list protobuf)) ; for pkg-config --libs libola
784e7d7a
TGR
73 (arguments
74 `( ;; G++ >= 4.8 macro expansion tracking requires lots of memory, causing
75 ;; build to fail on low memory systems. We disable that with the
76 ;; following configure flags.
77 #:configure-flags (list "CXXFLAGS=-ftrack-macro-expansion=0")))
78 (synopsis "Framework for controlling entertainment lighting equipment")
79 (description "The Open Lighting Architecture is a framework for lighting
818db708
JF
80control information. It supports a range of protocols and over a dozen USB
81devices. It can run as a standalone service, which is useful for converting
82signals between protocols, or alternatively using the OLA API, it can be used
83as the backend for lighting control software. OLA runs on many different
84platforms including ARM, which makes it a perfect fit for low cost Ethernet to
85DMX gateways.")
784e7d7a
TGR
86 (home-page "https://www.openlighting.org/ola")
87 (license license:lgpl2.1+))))