2015-11-17 04:31:26 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2015 David Thompson <davet@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 kodi)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2016-03-12 18:23:47 +01:00
|
|
|
#:use-module (guix git-download)
|
2015-11-17 04:31:26 +01:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (gnu packages algebra)
|
|
|
|
#:use-module (gnu packages audio)
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
#:use-module (gnu packages avahi)
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages boost)
|
|
|
|
#:use-module (gnu packages cdrom)
|
|
|
|
#:use-module (gnu packages cmake)
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages curl)
|
|
|
|
#:use-module (gnu packages databases)
|
gnu: Update module imports for asciidoc and doxygen.
This is a followup to commit 0573a923def01e54bf104e0015ade44ab42f694f.
* gnu/packages/algebra.scm, gnu/packages/bioinformatics.scm,
gnu/packages/fcitx.scm, gnu/packages/fish.scm,
gnu/packages/freedesktop.scm, gnu/packages/game-development.scm,
gnu/packages/gcc.scm, gnu/packages/graphics.scm, gnu/packages/image.scm,
gnu/packages/kodi.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/messaging.scm,
gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/rdf.scm,
gnu/packages/serialization.scm, gnu/packages/version-control.scm,
gnu/packages/web.scm, gnu/packages/wm.scm, gnu/packages/xdisorg.scm,
gnu/packages/xiph.scm: Change imports of (gnu packages asciidoc) or
(gnu packages doxygen) to (gnu packages documentation).
2016-05-13 02:18:15 +02:00
|
|
|
#:use-module (gnu packages documentation)
|
2015-11-17 04:31:26 +01:00
|
|
|
#:use-module (gnu packages fontutils)
|
|
|
|
#:use-module (gnu packages fribidi)
|
|
|
|
#:use-module (gnu packages gettext)
|
|
|
|
#:use-module (gnu packages ghostscript)
|
|
|
|
#:use-module (gnu packages gawk)
|
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
#:use-module (gnu packages gperf)
|
|
|
|
#:use-module (gnu packages gnunet)
|
|
|
|
#:use-module (gnu packages gnupg)
|
|
|
|
#:use-module (gnu packages image)
|
|
|
|
#:use-module (gnu packages java)
|
|
|
|
#:use-module (gnu packages libusb)
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages mp3)
|
|
|
|
#:use-module (gnu packages pcre)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages pulseaudio)
|
|
|
|
#:use-module (gnu packages python)
|
|
|
|
#:use-module (gnu packages samba)
|
|
|
|
#:use-module (gnu packages sdl)
|
|
|
|
#:use-module (gnu packages ssh)
|
|
|
|
#:use-module (gnu packages swig)
|
|
|
|
#:use-module (gnu packages textutils)
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (gnu packages video)
|
|
|
|
#:use-module (gnu packages web)
|
|
|
|
#:use-module (gnu packages xdisorg)
|
|
|
|
#:use-module (gnu packages xiph)
|
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
#:use-module (gnu packages xorg)
|
2016-06-27 09:30:01 +02:00
|
|
|
#:use-module (gnu packages assembly)
|
2015-11-17 04:31:26 +01:00
|
|
|
#:use-module (gnu packages zip))
|
|
|
|
|
2016-03-12 18:23:47 +01:00
|
|
|
(define-public crossguid
|
|
|
|
(let ((commit "8f399e8bd4252be9952f3dfa8199924cc8487ca4"))
|
|
|
|
(package
|
|
|
|
(name "crossguid")
|
|
|
|
(version (string-append "0.0-1." (string-take commit 7)))
|
|
|
|
;; There's no official release. Just a Git repository.
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/graeme-hill/crossguid.git")
|
|
|
|
(commit commit)))
|
2016-03-26 14:52:28 +01:00
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
2016-03-12 18:23:47 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1i29y207qqddvaxbn39pk2fbh3gx8zvdprfp35wasj9rw2wjk3s9"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
;; There's no build system here, so we have to do it ourselves.
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
(and (zero? (system* "g++" "-c" "guid.cpp" "-o" "guid.o"
|
|
|
|
"-std=c++11" "-DGUID_LIBUUID"))
|
|
|
|
(zero? (system* "ar" "rvs" "libcrossguid.a" "guid.o")))))
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(and (zero? (system* "g++" "-c" "test.cpp" "-o" "test.o"
|
|
|
|
"-std=c++11"))
|
|
|
|
(zero? (system* "g++" "-c" "testmain.cpp" "-o" "testmain.o"
|
|
|
|
"-std=c++11"))
|
|
|
|
(zero? (system* "g++" "test.o" "guid.o" "testmain.o"
|
|
|
|
"-o" "test" "-luuid"))
|
|
|
|
(zero? (system* (string-append (getcwd) "/test"))))))
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(install-file "guid.h" (string-append out "/include"))
|
|
|
|
(install-file "libcrossguid.a"
|
|
|
|
(string-append out "/lib"))
|
|
|
|
#t))))))
|
|
|
|
(inputs
|
|
|
|
`(("util-linux" ,util-linux)))
|
|
|
|
(synopsis "Lightweight universal identifier library")
|
2016-03-19 14:41:56 +01:00
|
|
|
(description "CrossGuid is a minimal GUID/UUID
|
2016-03-12 18:23:47 +01:00
|
|
|
generator library for C++.")
|
|
|
|
(home-page "https://github.com/graeme-hill/crossguid")
|
|
|
|
(license license:expat))))
|
|
|
|
|
2015-11-17 04:31:26 +01:00
|
|
|
(define-public kodi
|
|
|
|
(package
|
|
|
|
(name "kodi")
|
2016-03-01 03:34:00 +01:00
|
|
|
(version "16.0")
|
2015-11-17 04:31:26 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://mirrors.kodi.tv/releases/source/"
|
2016-03-01 03:34:00 +01:00
|
|
|
version "-Jarvis.tar.gz"))
|
2015-11-17 04:31:26 +01:00
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2016-03-01 03:34:00 +01:00
|
|
|
"0iirspvv7czf785l2lqf232dvdaj87srbn9ni97ngvnd6w9yl884"))
|
2015-11-17 04:31:26 +01:00
|
|
|
(snippet
|
|
|
|
;; Delete bundled ffmpeg.
|
|
|
|
;; TODO: Delete every other bundled library.
|
|
|
|
'(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(delete-file-recursively "tools/depends/target/ffmpeg")))
|
|
|
|
(modules '((guix build utils)))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:configure-flags '("--with-ffmpeg=shared") ; don't use bundled ffmpeg
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
;; JsonSchemaBuilder is a small tool needed by the build system that
|
|
|
|
;; comes bundled with the source. The build system tries to build it
|
|
|
|
;; during the bootstrapping phase, which causes serious issues
|
|
|
|
;; because there's no time for shebangs to be patched. So, we
|
|
|
|
;; bootstrap it on our own instead.
|
|
|
|
(add-after 'unpack 'bootstrap-jsonschemabuilder
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((dir "tools/depends/native/JsonSchemaBuilder/src"))
|
|
|
|
(with-directory-excursion dir
|
|
|
|
(zero? (system* "sh" "autogen.sh"))))))
|
|
|
|
;; Now we can do the regular bootstrapping process, but only after
|
|
|
|
;; the first round of shebang patching. We must repeat the patching
|
|
|
|
;; after bootstrapping so that all of the files generated by the
|
|
|
|
;; Autotools et al. are patched appropriately.
|
|
|
|
(add-after 'patch-source-shebangs 'bootstrap
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; We bootstrapped JsonSchemaBuilder in the previous phase, so we
|
|
|
|
;; need to make sure it isn't done a second time. Otherwise, it
|
|
|
|
;; would undo the shebang patching that we worked so hard for.
|
|
|
|
(substitute* '("tools/depends/native/JsonSchemaBuilder/Makefile")
|
|
|
|
(("\\./autogen\\.sh") ""))
|
|
|
|
;; This essentially does what their 'bootstrap' script does, but
|
|
|
|
;; additionally passes the correct CONFIG_SHELL.
|
|
|
|
(let ((bash (string-append (assoc-ref inputs "bash") "/bin/sh")))
|
|
|
|
(define (run-make makefile)
|
|
|
|
(zero? (system* "make" "-f" makefile
|
|
|
|
"BOOTSTRAP_STANDALONE=1"
|
|
|
|
(string-append "CONFIG_SHELL=" bash))))
|
|
|
|
(and (run-make "bootstrap.mk")
|
|
|
|
(run-make "codegenerator.mk")))))
|
|
|
|
(add-after 'bootstrap 'patch-source-shebangs-again
|
|
|
|
(assoc-ref %standard-phases 'patch-source-shebangs))
|
|
|
|
;; 3 tests fail that appear harmless, so we disable them.
|
|
|
|
(add-before 'check 'disable-some-tests
|
|
|
|
(lambda _
|
|
|
|
(substitute* '("xbmc/utils/test/TestSystemInfo.cpp")
|
|
|
|
(("TEST_F\\(TestSystemInfo, GetOsPrettyNameWithVersion\\)")
|
|
|
|
"TEST_F(TestSystemInfo, DISABLED_GetOsPrettyNameWithVersion)")
|
|
|
|
(("TEST_F\\(TestSystemInfo, GetOsName\\)")
|
|
|
|
"TEST_F(TestSystemInfo, DISABLED_GetOsName)")
|
|
|
|
(("TEST_F\\(TestSystemInfo, GetOsVersion\\)")
|
|
|
|
"TEST_F(TestSystemInfo, DISABLED_GetOsVersion)")))))))
|
|
|
|
;; TODO: Add dependencies for:
|
|
|
|
;; - vdpau
|
|
|
|
;; - nfs
|
|
|
|
;;
|
|
|
|
;; FIXME: libusb detection fails.
|
|
|
|
;;
|
|
|
|
;; FIXME: As you can see, we use a lot of external libraries, but it seems
|
|
|
|
;; that a few bundled ones are still being used.
|
|
|
|
(native-inputs
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
("automake" ,automake)
|
|
|
|
("cmake" ,cmake)
|
|
|
|
("doxygen" ,doxygen)
|
|
|
|
("gawk" ,gawk)
|
|
|
|
("gettext" ,gnu-gettext)
|
2015-12-30 14:25:09 +01:00
|
|
|
("icedtea" ,icedtea) ; needed at build-time only, mandatory
|
2015-11-17 04:31:26 +01:00
|
|
|
("libtool" ,libtool)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("swig" ,swig)
|
|
|
|
("which" ,which)
|
|
|
|
("yasm" ,yasm)))
|
|
|
|
(inputs
|
|
|
|
`(("alsa-lib" ,alsa-lib)
|
|
|
|
("avahi" ,avahi)
|
|
|
|
("bluez" ,bluez)
|
|
|
|
("boost" ,boost)
|
|
|
|
("bzip2" ,bzip2)
|
2016-03-01 03:34:00 +01:00
|
|
|
("crossguid" ,crossguid)
|
2015-11-17 04:31:26 +01:00
|
|
|
("curl" ,curl)
|
2016-03-01 03:34:00 +01:00
|
|
|
("dcadec" ,dcadec)
|
2015-11-17 04:31:26 +01:00
|
|
|
("dbus" ,dbus)
|
|
|
|
("enca" ,enca)
|
|
|
|
("eudev" ,eudev)
|
|
|
|
("ffmpeg" ,ffmpeg)
|
|
|
|
("flac" ,flac)
|
|
|
|
("fontconfig" ,fontconfig)
|
|
|
|
("freetype" ,freetype)
|
|
|
|
("fribidi" ,fribidi)
|
|
|
|
("glew" ,glew)
|
|
|
|
("gnutls" ,gnutls)
|
|
|
|
("gperf" ,gperf)
|
|
|
|
("jasper" ,jasper)
|
|
|
|
("lame" ,lame)
|
|
|
|
("libass" ,libass)
|
|
|
|
("libbluray" ,libbluray)
|
|
|
|
("libcap" ,libcap)
|
|
|
|
("libcdio" ,libcdio)
|
|
|
|
("libgcrypt" ,libgcrypt)
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
("libltdl" ,libltdl)
|
|
|
|
("libmad" ,libmad)
|
|
|
|
("libmicrohttpd" ,libmicrohttpd)
|
|
|
|
("libmodplug" ,libmodplug)
|
|
|
|
("libmpeg2" ,libmpeg2)
|
|
|
|
("libogg" ,libogg)
|
|
|
|
("libpng" ,libpng)
|
|
|
|
("libsamplerate" ,libsamplerate)
|
|
|
|
("libssh" ,libssh)
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
("libva" ,libva)
|
|
|
|
("libvorbis" ,libvorbis)
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
("libxmu" ,libxmu)
|
|
|
|
("libxrandr" ,libxrandr)
|
|
|
|
("libxrender" ,libxrender)
|
|
|
|
("libxslt" ,libxslt)
|
|
|
|
("libxt" ,libxt)
|
|
|
|
("libyajl" ,libyajl)
|
|
|
|
("lzo" ,lzo)
|
|
|
|
("mesa-utils" ,mesa-utils)
|
|
|
|
("mysql" ,mysql)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("pcre" ,pcre)
|
|
|
|
("pulseaudio" ,pulseaudio)
|
|
|
|
("python" ,python-2)
|
|
|
|
("samba" ,samba)
|
|
|
|
("sdl2" ,sdl2)
|
|
|
|
("sqlite" ,sqlite)
|
|
|
|
("taglib" ,taglib)
|
|
|
|
("tinyxml" ,tinyxml)
|
|
|
|
("unzip" ,unzip)
|
2016-03-01 03:34:00 +01:00
|
|
|
("util-linux" ,util-linux)
|
2015-11-17 04:31:26 +01:00
|
|
|
("zip" ,zip)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(synopsis "Media center for home theater computers")
|
|
|
|
(description "Kodi is a media center application for playing videos,
|
|
|
|
music, games, etc. Kodi is highly customizable and features a theme and
|
|
|
|
plug-in system.")
|
|
|
|
(home-page "http://kodi.tv")
|
|
|
|
(license license:gpl2+)))
|