* [PATCH] Add 0ad, Add 0ad-data
@ 2016-10-16 21:36 ng0
2016-10-16 21:36 ` [PATCH 1/2] gnu: " ng0
2016-10-16 21:36 ` [PATCH 2/2] gnu: Add 0ad ng0
0 siblings, 2 replies; 3+ messages in thread
From: ng0 @ 2016-10-16 21:36 UTC (permalink / raw)
To: guix-devel
This is a snapshot of my progress. This means anyone who feels like fixing what I commented
can pick it up and finish it. If there has been no progress or repost of any kind, I will
pick it up in a week, a month or half year or whenever I feel like next time to work on it.
I have no real motivation to finish this as I play games only very rarely these days.
What needs to be done:
- 0ad-data: fix up description + synopsis
- 0ad:
- unbundle the patched mozjs
or
- make the bundled mozjs build
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] gnu: Add 0ad-data.
2016-10-16 21:36 [PATCH] Add 0ad, Add 0ad-data ng0
@ 2016-10-16 21:36 ` ng0
2016-10-16 21:36 ` [PATCH 2/2] gnu: Add 0ad ng0
1 sibling, 0 replies; 3+ messages in thread
From: ng0 @ 2016-10-16 21:36 UTC (permalink / raw)
To: guix-devel
* gnu/packages/games.scm (0ad-data): New variable.
---
gnu/packages/games.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 2bb53e0..03580a3 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2994,3 +2994,49 @@ symbols, the game needs graphics to render the non-euclidean world.")
license:public-domain ; src/direntx.*
license:zlib ; src/savepng.*
license:gpl2+)))) ; remaining files
+
+(define 0ad-data
+ (package
+ (name "0ad-data")
+ (version "0.0.20-alpha")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://releases.wildfiregames.com/0ad-"
+ version "-unix-data.tar.xz"))
+ (file-name (string-append name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1lzl8chfqbgs1n9vpn0xaqd70kpwiibfk196iblyq6qkms3v6pnv"))))
+ (build-system trivial-build-system)
+ (native-inputs
+ `(("source" ,source)
+ ("tar" ,tar)
+ ("xz" ,(@ (gnu packages compression) xz))))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((tar (string-append
+ (assoc-ref %build-inputs "tar")
+ "/bin/tar"))
+ (install-dir (string-append %output
+ "/share/0ad/data"))
+ (path (string-append (assoc-ref %build-inputs
+ "xz")
+ "/bin")))
+ (setenv "PATH" path)
+ (system* tar "xvf" (assoc-ref %build-inputs "source"))
+ (chdir (string-append "0ad-" ,version))
+ (mkdir-p install-dir)
+ (copy-recursively "." install-dir)))))
+ (synopsis "Data for the game 0ad")
+ (description
+ "Data files for 0ad.")
+ (home-page "http://play0ad.com")
+ (license (list license:gpl2
+ ;; license:lppl1.3c TODO: ADD.
+ ;; license:bitstream-vera TODO: ADD.
+ license:cc-by-sa3.0))))
--
2.10.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] gnu: Add 0ad.
2016-10-16 21:36 [PATCH] Add 0ad, Add 0ad-data ng0
2016-10-16 21:36 ` [PATCH 1/2] gnu: " ng0
@ 2016-10-16 21:36 ` ng0
1 sibling, 0 replies; 3+ messages in thread
From: ng0 @ 2016-10-16 21:36 UTC (permalink / raw)
To: guix-devel
* gnu/packages/games.scm (0ad): New variable.
---
gnu/packages/games.scm | 114 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 114 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 03580a3..13119f5 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -56,6 +56,7 @@
#:use-module (gnu packages audio)
#:use-module (gnu packages avahi)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages cmake)
#:use-module (gnu packages fltk)
#:use-module (gnu packages fribidi)
#:use-module (gnu packages game-development)
@@ -64,6 +65,7 @@
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
+ #:use-module (gnu packages gnuzilla)
#:use-module (gnu packages gperf)
#:use-module (gnu packages gtk)
#:use-module (gnu packages guile)
@@ -73,8 +75,10 @@
#:use-module (gnu packages mp3)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages image)
+ #:use-module (gnu packages messaging)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages netpbm)
+ #:use-module (gnu packages networking)
#:use-module (gnu packages ocaml)
#:use-module (gnu packages python)
#:use-module (gnu packages readline)
@@ -97,6 +101,8 @@
#:use-module (gnu packages xiph)
#:use-module (gnu packages curl)
#:use-module (gnu packages lua)
+ #:use-module (gnu packages upnp)
+ #:use-module (gnu packages wxwidgets)
#:use-module (gnu packages video)
#:use-module (gnu packages xml)
#:use-module (gnu packages tcl)
@@ -3040,3 +3046,111 @@ symbols, the game needs graphics to render the non-euclidean world.")
;; license:lppl1.3c TODO: ADD.
;; license:bitstream-vera TODO: ADD.
license:cc-by-sa3.0))))
+
+(define-public 0ad
+ (package
+ (name "0ad")
+ (version "0.0.20-alpha")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://releases.wildfiregames.com/0ad-"
+ version "-unix-build.tar.xz"))
+ (file-name (string-append name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "13n61xhjsawda3kl7112la41bqkbqmq4yhr3slydsz856z5xb5m3"))))
+ (inputs
+ `(("0ad-data" ,0ad-data)
+ ("curl" ,curl)
+ ("enet" ,enet)
+ ("perl" ,perl)
+ ("icu4c" ,icu4c)
+ ("libxml2" ,libxml2)
+ ("nspr" ,nspr)
+ ("libpng" ,libpng)
+ ("sdl2" ,sdl2)
+ ("miniupnpc" ,miniupnpc)
+ ("zlib" ,zlib)
+ ("openjpeg" ,openjpeg)
+ ("mesa" ,mesa)
+ ("libx11" ,libx11)
+ ("libxcursor" ,libxcursor)
+ ("wxwidgets" ,wxwidgets)
+ ("gloox" ,gloox) ; lobby
+ ;; Todo: package it
+ ;; ("nvidia-texture-tools" ,nvidia-texture-tools)
+ ("libvorbis" ,libvorbis)
+ ("openal" ,openal)))
+ (native-inputs
+ `(("cmake" ,cmake)
+ ("pkg-config" ,pkg-config)
+ ("boost" ,boost)
+ ("mesa" ,mesa)
+ ("zip" ,zip)
+ ("python-2" ,python-2)
+ ("libsm" ,libsm)))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; We need to use the included premake4.
+ (add-before 'configure 'build-premake4
+ (lambda _
+ (setenv "CC" "gcc")
+ (zero? (system* "make" "-C"
+ "build/premake/premake4/build/gmake.unix"))))
+ (replace 'configure
+ (lambda* _
+ (with-directory-excursion "build/premake"
+ (zero? (system* "premake4/bin/release/premake4"
+ "--file=premake4.lua"
+ "--outpath=../workspaces/gcc/"
+ "--platform=x64"
+ "--os=linux"
+ "--with-system-miniupnpc"
+ "--minimal-flags" ;"--without-nvtt"
+ "--with-pch" "--with-tests" "--with-audio"
+ "--atlas" "--with-lobby" "--collada"
+ ;; TODO: nvidia-texture-tools "--with-system-nvtt"
+ "gmake")))))
+ ;; XXX: 0ad bundles spidermonkey, the tl;dr is that it requires exactly
+ ;; the bundled version with the applied patches or it can and will
+ ;; lead to crashes and incompabilities.
+ ;; However we could replicate this and unbundle it, use a mozjs-0ad
+ ;; which is kept in sync with what's included in 0ad.
+ (add-before 'build 'build-bundled-spidermonkey
+ (lambda* _
+ (with-directory-excursion "libraries/source/spidermonkey"
+ ;; Here we must either unbundle and build this separate
+ ;; or unpack and run a recursive patch-shebang and repeat
+ ;; the entire package like we already do in the `mozjs' package.
+ ;; (system* "tar" "xvf" "mozjs-31.2.0.rc0.tar.bz2")
+ ;; (chdir "mozjs31"
+ ;; The following will fail, which is why the part above was started.
+ (zero? (system* "./build.sh")))))
+ (add-before 'build 'build-bundled-fcollada
+ (lambda _
+ (zero? (system* "make" "-C" "libraries/source/fcollada/src"))))
+ (replace 'build
+ (lambda _
+ (zero? (system* "make" "-C" "build/workspaces/gcc" "verbose=1"))))
+ (replace 'check
+ (lambda* _
+ (with-directory-excursion "binaries/system"
+ (zero? (system* "./test" "-libdir" "binaries/system"))))))))
+ (license (list license:expat
+ license:cc-by-sa3.0
+ license:zlib
+ license:lgpl2.1
+ license:gpl2))
+ (home-page "http://play0ad.com")
+ (description
+ "0 A.D. is a real-time strategy game. It is a historical war and
+economy game focusing on the years between 500 B.C. and 1 B.C. for the
+first part, and a planned second part for the years 1 A.D. to 500 A.D.
+The game is cross-platform, playable on Windows, OS X, GNU-linux, and
+OpenBSD.")
+ (synopsis "Real-time strategy game with single- and multi-player modes")))
+
--
2.10.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-16 21:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-16 21:36 [PATCH] Add 0ad, Add 0ad-data ng0
2016-10-16 21:36 ` [PATCH 1/2] gnu: " ng0
2016-10-16 21:36 ` [PATCH 2/2] gnu: Add 0ad ng0
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.