gnu: readymedia: Update to 1.3.0.
[jackhill/guix/guix.git] / gnu / packages / upnp.scm
CommitLineData
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>
09c2fc2a 4;;; Copyright © 2016, 2017, 2018, 2020 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
JM
27 #:use-module (gnu packages gettext)
28 #:use-module (gnu packages autotools)
406008a2 29 #:use-module (gnu packages compression)
f5854abc
JM
30 #:use-module (gnu packages video)
31 #:use-module (gnu packages photo)
32 #:use-module (gnu packages image)
33 #:use-module (gnu packages mp3)
1d236620 34 #:use-module (gnu packages pkg-config)
f5854abc
JM
35 #:use-module (gnu packages xiph)
36 #:use-module (gnu packages sqlite)
c4dc4466
SHT
37 #:use-module (gnu packages python)
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
86by any @dfn{Universal Plug and Play} (UPnP) @dfn{Internet Gateway Device} (IGD)
87present on the network. In UPnP terminology, MiniUPnPc is a UPnP Control Point.
88
89It is useful whenever an application needs to listen for incoming connections
90while running behind a UPnP-enabled router or firewall. Such applications
91include peer-to-peer applications, active-mode FTP clients, DCC file transfers
92over 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")
9606041d 99 (version "1.14.0")
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
LF
105 (sha256
106 (base32
9606041d 107 "1sswsdqzarrd6h9mld2lncbcrfhd4p16zcafvmxqm34nj513vcpc"))))
47986cc8
MB
108 (native-inputs
109 `(("pkg-config" ,pkg-config)))
0b5eff84
LF
110 (build-system gnu-build-system)
111 (arguments
112 ;; The tests require a network device capable of multicasting which is
113 ;; not available in the build environment. See
114 ;; https://lists.gnu.org/archive/html/guix-devel/2015-01/msg00312.html.
115 `(#:tests? #f
60d758ec 116 #:configure-flags '("--disable-static")))
0b5eff84
LF
117 (home-page "http://pupnp.sourceforge.net")
118 (synopsis "Portable SDK for UPnP Devices")
119 (description
120 "The portable SDK for UPnP Devices (libupnp) provides developers with an
121API and code for building control points, devices, and bridges that are
122compliant with Version 1.0 of the Universal Plug and Play Device Architecture
123Specification and support several operating systems like Linux, *BSD, Solaris
124and others.")
de194a39 125 (license license:bsd-3)))
f5854abc
JM
126
127(define-public readymedia
128 (package
129 (name "readymedia")
406008a2 130 (version "1.3.0")
f5854abc
JM
131 (source
132 (origin
133 (method git-fetch)
134 (uri (git-reference
135 (url "https://git.code.sf.net/p/minidlna/git")
136 (commit (string-append
91bc4f4d 137 "v" (string-replace-substring version "." "_")))))
f5854abc
JM
138 (file-name (git-file-name name version))
139 (sha256
140 (base32
406008a2 141 "0g04lffj37wdv5bnpl5faxpnmlj6bbk8y7ziaz2wp6h82g6kb5wj"))))
f5854abc 142 (build-system gnu-build-system)
406008a2
EF
143 (arguments
144 `(#:configure-flags '("--with-os-name=Linux") ; uname -s
145 #:phases
146 (modify-phases %standard-phases
147 (add-after 'unpack 'patch-source
148 (lambda _
149 (substitute* "Makefile.am"
150 ((".*LIBAVUTIL_LIBS.*") ""))
151 #t)))))
f5854abc
JM
152 (native-inputs
153 `(("automake" ,automake)
154 ("autoconf" ,autoconf)
155 ("gettext" ,gettext-minimal)))
156 (inputs
157 `(("libexif" ,libexif)
4bd428a7 158 ("libjpeg" ,libjpeg-turbo)
f5854abc
JM
159 ("libid3tag" ,libid3tag)
160 ("flac" ,flac)
161 ("libvorbis" ,libvorbis)
162 ("sqlite" ,sqlite)
406008a2
EF
163 ("ffmpeg" ,ffmpeg)
164 ("zlib" ,zlib)))
f5854abc
JM
165 (home-page "https://sourceforge.net/projects/minidlna/")
166 (synopsis "DLNA/UPnP-AV media server")
167 (description "ReadyMedia (formerly known as MiniDLNA) is a simple media
168server, which serves multimedia content to compatible clients on the network.
169It aims to be fully compliant with DLNA and UPnP-AV standards.")
de194a39 170 (license license:gpl2)))