gnu: godot: Unbundle some dependencies.

* gnu/packages/game-development.scm (godot)[inputs]: Add bullet, mbedtls-apache,
pcre2 and zstd.
[arguments](configure-flags): Use system libraries for the above.
[source](snippet): Remove bundled copies.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Timotej Lazar 2020-01-28 19:25:39 +01:00 committed by Christopher Baines
parent d868261533
commit c1bc92c0aa
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -78,6 +78,7 @@
#:use-module (gnu packages multiprecision) #:use-module (gnu packages multiprecision)
#:use-module (gnu packages music) #:use-module (gnu packages music)
#:use-module (gnu packages ncurses) #:use-module (gnu packages ncurses)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages pulseaudio) #:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python) #:use-module (gnu packages python)
@ -1521,15 +1522,19 @@ games.")
;; of these may be modified; see "thirdparty/README.md". ;; of these may be modified; see "thirdparty/README.md".
(with-directory-excursion "thirdparty" (with-directory-excursion "thirdparty"
(for-each delete-file-recursively (for-each delete-file-recursively
'("freetype" '("bullet"
"freetype"
"libogg" "libogg"
"libpng" "libpng"
"libtheora" "libtheora"
"libvorbis" "libvorbis"
"libvpx" "libvpx"
"libwebp" "libwebp"
"mbedtls"
"opus" "opus"
"zlib")) "pcre2"
"zlib"
"zstd"))
#t))))) #t)))))
(build-system scons-build-system) (build-system scons-build-system)
(arguments (arguments
@ -1541,6 +1546,7 @@ games.")
'()) '())
;; Avoid using many of the bundled libs. ;; Avoid using many of the bundled libs.
;; Note: These options can be found in the SConstruct file. ;; Note: These options can be found in the SConstruct file.
"builtin_bullet=no"
"builtin_freetype=no" "builtin_freetype=no"
"builtin_glew=no" "builtin_glew=no"
"builtin_libmpdec=no" "builtin_libmpdec=no"
@ -1550,8 +1556,11 @@ games.")
"builtin_libvorbis=no" "builtin_libvorbis=no"
"builtin_libvpx=no" "builtin_libvpx=no"
"builtin_libwebp=no" "builtin_libwebp=no"
"builtin_mbedtls=no"
"builtin_opus=no" "builtin_opus=no"
"builtin_zlib=no") "builtin_pcre2=no"
"builtin_zlib=no"
"builtin_zstd=no")
#:tests? #f ; There are no tests #:tests? #f ; There are no tests
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
@ -1598,6 +1607,7 @@ games.")
#t)))))) #t))))))
(native-inputs `(("pkg-config" ,pkg-config))) (native-inputs `(("pkg-config" ,pkg-config)))
(inputs `(("alsa-lib" ,alsa-lib) (inputs `(("alsa-lib" ,alsa-lib)
("bullet" ,bullet)
("freetype" ,freetype) ("freetype" ,freetype)
("glew" ,glew) ("glew" ,glew)
("glu" ,glu) ("glu" ,glu)
@ -1610,9 +1620,12 @@ games.")
("libxi" ,libxi) ("libxi" ,libxi)
("libxinerama" ,libxinerama) ("libxinerama" ,libxinerama)
("libxrandr" ,libxrandr) ("libxrandr" ,libxrandr)
("mbedtls" ,mbedtls-apache)
("mesa" ,mesa) ("mesa" ,mesa)
("opusfile" ,opusfile) ("opusfile" ,opusfile)
("pulseaudio" ,pulseaudio))) ("pcre2" ,pcre2)
("pulseaudio" ,pulseaudio)
("zstd" ,zstd "lib")))
(home-page "https://godotengine.org/") (home-page "https://godotengine.org/")
(synopsis "Advanced 2D and 3D game engine") (synopsis "Advanced 2D and 3D game engine")
(description (description