doc: Add index entries for realtime and jackd in the manual.
[jackhill/guix/guix.git] / gnu / packages / boost.scm
CommitLineData
2a72eeee
JD
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 John Darrington <jmd@gnu.org>
7cd802f3 3;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
1842a7cb 4;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
c91d3fb7 5;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
53a53be9 6;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
57144094 7;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
13de2b70 8;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
2a72eeee
JD
9;;;
10;;; This file is part of GNU Guix.
11;;;
12;;; GNU Guix is free software; you can redistribute it and/or modify it
13;;; under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 3 of the License, or (at
15;;; your option) any later version.
16;;;
17;;; GNU Guix is distributed in the hope that it will be useful, but
18;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;;; GNU General Public License for more details.
21;;;
22;;; You should have received a copy of the GNU General Public License
23;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24
25(define-module (gnu packages boost)
b5b73a82 26 #:use-module ((guix licenses) #:prefix license:)
2a72eeee
JD
27 #:use-module (guix packages)
28 #:use-module (guix download)
29 #:use-module (guix build-system gnu)
30 #:use-module (gnu packages)
c28ba7aa 31 #:use-module (gnu packages compression)
bd590b96
LF
32 #:use-module (gnu packages icu4c)
33 #:use-module (gnu packages perl)
2a72eeee 34 #:use-module (gnu packages python)
bd590b96 35 #:use-module (gnu packages shells))
2a72eeee
JD
36
37(define-public boost
38 (package
39 (name "boost")
4a4e60f4 40 (version "1.64.0")
2a72eeee
JD
41 (source (origin
42 (method url-fetch)
43 (uri (string-append
de67e922 44 "mirror://sourceforge/boost/boost/" version "/boost_"
2a72eeee
JD
45 (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version)
46 ".tar.bz2"))
47 (sha256
48 (base32
4a4e60f4 49 "0cikd35xfkpg9nnl76yqqnqxnf3hyfjjww8xjd4akflprsm5rk3v"))))
2a72eeee 50 (build-system gnu-build-system)
bd590b96
LF
51 (inputs `(("icu4c" ,icu4c)
52 ("zlib" ,zlib)))
2a72eeee
JD
53 (native-inputs
54 `(("perl" ,perl)
55 ("python" ,python-2)
56 ("tcsh" ,tcsh)))
57 (arguments
f828ff5b
DT
58 `(#:tests? #f
59 #:make-flags
60 (list "threading=multi" "link=shared"
53a53be9 61
f828ff5b
DT
62 ;; Set the RUNPATH to $libdir so that the libs find each other.
63 (string-append "linkflags=-Wl,-rpath="
64 (assoc-ref %outputs "out") "/lib")
53a53be9 65
f828ff5b
DT
66 ;; Boost's 'context' library is not yet supported on mips64, so
67 ;; we disable it. The 'coroutine' library depends on 'context',
68 ;; so we disable that too.
69 ,@(if (string-prefix? "mips64" (or (%current-target-system)
70 (%current-system)))
71 '("--without-context"
72 "--without-coroutine" "--without-coroutine2")
73 '()))
74 #:phases
75 (modify-phases %standard-phases
76 (replace
77 'configure
78 (lambda* (#:key outputs #:allow-other-keys)
79 (let ((out (assoc-ref outputs "out")))
80 (substitute* '("libs/config/configure"
81 "libs/spirit/classic/phoenix/test/runtest.sh"
82 "tools/build/doc/bjam.qbk"
83 "tools/build/src/engine/execunix.c"
84 "tools/build/src/engine/Jambase"
85 "tools/build/src/engine/jambase.c")
86 (("/bin/sh") (which "sh")))
aaf77acc 87
f828ff5b
DT
88 (setenv "SHELL" (which "sh"))
89 (setenv "CONFIG_SHELL" (which "sh"))
aaf77acc 90
f828ff5b
DT
91 (zero? (system* "./bootstrap.sh"
92 (string-append "--prefix=" out)
93 "--with-toolset=gcc")))))
94 (replace
95 'build
96 (lambda* (#:key outputs make-flags #:allow-other-keys)
1a0ae573
EB
97 (zero? (apply system* "./b2"
98 (format #f "-j~a" (parallel-job-count))
99 make-flags))))
f828ff5b
DT
100 (replace
101 'install
102 (lambda* (#:key outputs make-flags #:allow-other-keys)
103 (zero? (apply system* "./b2" "install" make-flags)))))))
2a72eeee
JD
104
105 (home-page "http://boost.org")
106 (synopsis "Peer-reviewed portable C++ source libraries")
107 (description
108 "A collection of libraries intended to be widely useful, and usable
109across a broad spectrum of applications.")
110 (license (license:x11-style "http://www.boost.org/LICENSE_1_0.txt"
111 "Some components have other similar licences."))))
f763eaaa 112
bbce53c4
MB
113(define-public boost-1.66
114 (package
115 (inherit boost)
116 (version "1.66.0")
117 (source (origin
118 (method url-fetch)
119 (uri (string-append
120 "mirror://sourceforge/boost/boost/" version "/boost_"
121 (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version)
122 ".tar.bz2"))
123 (sha256
124 (base32
125 "1aaw48cmimsskzgiclwn0iifp62a5iw9cbqrhfari876af1828ap"))))))
126
f763eaaa
AE
127(define-public mdds
128 (package
129 (name "mdds")
13de2b70 130 (version "1.3.1")
f763eaaa
AE
131 (source (origin
132 (method url-fetch)
133 (uri (string-append
57144094 134 "http://kohei.us/files/mdds/src/mdds-" version ".tar.bz2"))
f763eaaa
AE
135 (sha256
136 (base32
13de2b70 137 "18g511z1lgfxrga2ld9yr95phmyfbd3ymbv4q5g5lyjn4ljcvf6w"))))
f763eaaa
AE
138 (build-system gnu-build-system)
139 (propagated-inputs
140 `(("boost" ,boost))) ; inclusion of header files
62d652a7 141 (home-page "https://gitlab.com/mdds/mdds")
f763eaaa
AE
142 (synopsis "Multi-dimensional C++ data structures and indexing algorithms")
143 (description "Mdds (multi-dimensional data structure) provides a
144collection of multi-dimensional data structures and indexing algorithms
145for C++. It includes flat segment trees, segment trees, rectangle sets,
146point quad trees, multi-type vectors and multi-type matrices.")
147 (license license:expat)))