Commit | Line | Data |
---|---|---|
c4dc4466 SHT |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2014 Sree Harsha Totakura <sreeharsha@totakura.in> | |
0b5eff84 | 3 | ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch> |
291a26db | 4 | ;;; Copyright © 2016, 2017, 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr> |
a811bca2 | 5 | ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org> |
f5854abc | 6 | ;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk> |
1d236620 | 7 | ;;; Copyright © 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl> |
91bc4f4d | 8 | ;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il> |
c4dc4466 SHT |
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 upnp) | |
26 | #:use-module (gnu packages) | |
f5854abc | 27 | #:use-module (gnu packages autotools) |
406008a2 | 28 | #:use-module (gnu packages compression) |
6200fcab | 29 | #:use-module (gnu packages gettext) |
f5854abc JM |
30 | #:use-module (gnu packages image) |
31 | #:use-module (gnu packages mp3) | |
6200fcab | 32 | #:use-module (gnu packages photo) |
1d236620 | 33 | #:use-module (gnu packages pkg-config) |
c4dc4466 | 34 | #:use-module (gnu packages python) |
6200fcab EF |
35 | #:use-module (gnu packages sqlite) |
36 | #:use-module (gnu packages video) | |
37 | #:use-module (gnu packages xiph) | |
c4dc4466 | 38 | #:use-module (guix build-system gnu) |
a811bca2 | 39 | #:use-module (guix utils) |
c4dc4466 | 40 | #:use-module (guix download) |
a811bca2 | 41 | #:use-module (guix git-download) |
de194a39 | 42 | #:use-module ((guix licenses) #:prefix license:) |
f5854abc JM |
43 | #:use-module (guix packages) |
44 | #:use-module (ice-9 match)) | |
c4dc4466 SHT |
45 | |
46 | (define-public miniupnpc | |
47 | (package | |
48 | (name "miniupnpc") | |
09c2fc2a | 49 | (version "2.1.20191224") |
c4dc4466 SHT |
50 | (source |
51 | (origin | |
52 | (method url-fetch) | |
d9cf11e0 | 53 | (uri (string-append "https://miniupnp.tuxfamily.org/files/" |
9e080422 | 54 | "miniupnpc-" version ".tar.gz")) |
c4dc4466 | 55 | (sha256 |
09c2fc2a | 56 | (base32 "1kv6dpj93gckvwvgzxl4vdqpwnicb0c8p0xw53m2gh5naiw44ys4")))) |
c4dc4466 SHT |
57 | (build-system gnu-build-system) |
58 | (native-inputs | |
59 | `(("python" ,python-2))) | |
60 | (arguments | |
61 | ;; The build system does not use a configure script but depends on | |
62 | ;; `make'. Hence we should pass parameters to `make' instead and remove | |
63 | ;; the configure phase. | |
64 | '(#:make-flags | |
65 | (list | |
05b1feb9 | 66 | (string-append "SH=" (assoc-ref %build-inputs "bash") "/bin/sh") |
c4dc4466 | 67 | (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out")) |
caf0c0a9 LC |
68 | "CC=gcc" |
69 | ||
70 | ;; Allow executables to find libminiupnpc.so. | |
71 | (string-append "LDFLAGS=-Wl,-rpath=" | |
72 | (assoc-ref %outputs "out") "/lib")) | |
c4dc4466 | 73 | #:phases |
cdbdaf7b | 74 | (modify-phases %standard-phases |
5af82630 TGR |
75 | (delete 'configure) |
76 | (add-before 'install 'qualify-paths | |
77 | (lambda* (#:key outputs #:allow-other-keys) | |
78 | (substitute* "external-ip.sh" | |
79 | (("upnpc") | |
1e000f17 TGR |
80 | (string-append (assoc-ref outputs "out") "/bin/upnpc"))) |
81 | #t))))) | |
c4dc4466 | 82 | (home-page "http://miniupnp.free.fr/") |
e0f8a520 | 83 | (synopsis "UPnP protocol client library") |
c4dc4466 | 84 | (description |
e0f8a520 | 85 | "The MiniUPnPc client library facilitates access to the services provided |
8a6f168c TGR |
86 | by any @dfn{Universal Plug and Play} (UPnP) @dfn{Internet Gateway Device} (IGD) |
87 | present on the network. In UPnP terminology, MiniUPnPc is a UPnP Control Point. | |
88 | ||
89 | It is useful whenever an application needs to listen for incoming connections | |
90 | while running behind a UPnP-enabled router or firewall. Such applications | |
91 | include peer-to-peer applications, active-mode FTP clients, DCC file transfers | |
92 | over IRC, instant messaging, network games, and most server software.") | |
c4dc4466 | 93 | (license |
de194a39 | 94 | (license:x11-style "file://LICENSE" "See 'LICENSE' file in the distribution")))) |
0b5eff84 LF |
95 | |
96 | (define-public libupnp | |
97 | (package | |
98 | (name "libupnp") | |
2b605ef3 | 99 | (version "1.14.5") |
0b5eff84 LF |
100 | (source |
101 | (origin | |
47986cc8 MB |
102 | (method url-fetch) |
103 | (uri (string-append "https://github.com/pupnp/pupnp/releases/download" | |
104 | "/release-" version "/libupnp-" version".tar.bz2")) | |
0b5eff84 | 105 | (sha256 |
2b605ef3 | 106 | (base32 "16hlcpffmqd4rja57m6km1dpx3abgv91vvmb8971vfg6gd0glzr2")))) |
47986cc8 MB |
107 | (native-inputs |
108 | `(("pkg-config" ,pkg-config))) | |
0b5eff84 LF |
109 | (build-system gnu-build-system) |
110 | (arguments | |
111 | ;; The tests require a network device capable of multicasting which is | |
112 | ;; not available in the build environment. See | |
113 | ;; https://lists.gnu.org/archive/html/guix-devel/2015-01/msg00312.html. | |
114 | `(#:tests? #f | |
60d758ec | 115 | #:configure-flags '("--disable-static"))) |
0b5eff84 LF |
116 | (home-page "http://pupnp.sourceforge.net") |
117 | (synopsis "Portable SDK for UPnP Devices") | |
118 | (description | |
119 | "The portable SDK for UPnP Devices (libupnp) provides developers with an | |
120 | API and code for building control points, devices, and bridges that are | |
121 | compliant with Version 1.0 of the Universal Plug and Play Device Architecture | |
122 | Specification and support several operating systems like Linux, *BSD, Solaris | |
123 | and others.") | |
de194a39 | 124 | (license license:bsd-3))) |
f5854abc JM |
125 | |
126 | (define-public readymedia | |
127 | (package | |
128 | (name "readymedia") | |
406008a2 | 129 | (version "1.3.0") |
f5854abc JM |
130 | (source |
131 | (origin | |
132 | (method git-fetch) | |
133 | (uri (git-reference | |
134 | (url "https://git.code.sf.net/p/minidlna/git") | |
135 | (commit (string-append | |
91bc4f4d | 136 | "v" (string-replace-substring version "." "_"))))) |
f5854abc JM |
137 | (file-name (git-file-name name version)) |
138 | (sha256 | |
139 | (base32 | |
406008a2 | 140 | "0g04lffj37wdv5bnpl5faxpnmlj6bbk8y7ziaz2wp6h82g6kb5wj")))) |
f5854abc | 141 | (build-system gnu-build-system) |
406008a2 EF |
142 | (arguments |
143 | `(#:configure-flags '("--with-os-name=Linux") ; uname -s | |
144 | #:phases | |
145 | (modify-phases %standard-phases | |
146 | (add-after 'unpack 'patch-source | |
147 | (lambda _ | |
148 | (substitute* "Makefile.am" | |
149 | ((".*LIBAVUTIL_LIBS.*") "")) | |
150 | #t))))) | |
f5854abc | 151 | (native-inputs |
7dfc2d2e EF |
152 | `(("autoconf" ,autoconf) |
153 | ("automake" ,automake) | |
f5854abc JM |
154 | ("gettext" ,gettext-minimal))) |
155 | (inputs | |
7dfc2d2e | 156 | `(("ffmpeg" ,ffmpeg) |
f5854abc | 157 | ("flac" ,flac) |
7dfc2d2e EF |
158 | ("libexif" ,libexif) |
159 | ("libid3tag" ,libid3tag) | |
160 | ("libjpeg" ,libjpeg-turbo) | |
f5854abc JM |
161 | ("libvorbis" ,libvorbis) |
162 | ("sqlite" ,sqlite) | |
406008a2 | 163 | ("zlib" ,zlib))) |
f5854abc JM |
164 | (home-page "https://sourceforge.net/projects/minidlna/") |
165 | (synopsis "DLNA/UPnP-AV media server") | |
166 | (description "ReadyMedia (formerly known as MiniDLNA) is a simple media | |
167 | server, which serves multimedia content to compatible clients on the network. | |
168 | It aims to be fully compliant with DLNA and UPnP-AV standards.") | |
de194a39 | 169 | (license license:gpl2))) |