1;; SuperTux 2;; Copyright (C) 2019 Ingo Ruhnke <grumbel@gmail.com> 3;; 4;; This program is free software: you can redistribute it and/or modify 5;; it under the terms of the GNU General Public License as published by 6;; the Free Software Foundation, either version 3 of the License, or 7;; (at your option) any later version. 8;; 9;; This program is distributed in the hope that it will be useful, 10;; but WITHOUT ANY WARRANTY; without even the implied warranty of 11;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12;; GNU General Public License for more details. 13;; 14;; You should have received a copy of the GNU General Public License 15;; along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17(set! %load-path 18 (cons* "/ipfs/QmNbci3WpEWumBVvfbqsKhKnJTtdmkyVwYtSaPr5jVZo2m/guix-cocfree_0.0.0-56-g3a32b64" 19 %load-path)) 20 21(use-modules (guix build utils) 22 (guix build-system cmake) 23 ((guix licenses) #:prefix license:) 24 (guix packages) 25 (gnu packages audio) 26 (gnu packages curl) 27 (gnu packages fontutils) 28 (gnu packages fribidi) 29 (gnu packages game-development) 30 (gnu packages gcc) 31 (gnu packages gl) 32 (gnu packages gtk) 33 (gnu packages maths) 34 (gnu packages pkg-config) 35 (gnu packages python) 36 (gnu packages sdl) 37 (gnu packages squirrel) 38 (gnu packages version-control) 39 (gnu packages xiph) 40 (guix-cocfree utils) 41 (guix-cocfree packages boost)) 42 43(define %source-dir (dirname (current-filename))) 44 45(define-public supertux 46 (package 47 (name "supertux") 48 (version (version-from-source %source-dir)) 49 (source (source-from-source %source-dir)) 50 (arguments 51 `(#:tests? #f 52 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin" 53 "-DUSE_SYSTEM_PHYSFS=ON") 54 #:phases 55 (modify-phases %standard-phases 56 (add-after 'unpack 'set-version-number 57 (lambda _ 58 (substitute* "version.cmake.in" 59 (("\\$\\{MAJOR_VERSION_GIT\\}") ,"0") 60 (("\\$\\{MINOR_VERSION_GIT\\}") ,"6") 61 (("\\$\\{PATCH_VERSION_GIT\\}") ,"2") 62 (("\\$\\{TWEAK_VERSION_GIT\\}") ,"") 63 (("\\$\\{VERSION_STRING_GIT\\}") ,version)) 64 (copy-file "version.cmake.in" "version.cmake") 65 #t))))) 66 (build-system cmake-build-system) 67 (native-inputs 68 `(("pkg-config" ,pkg-config) 69 ("python" ,python) 70 ("gcc-10" ,gcc-10))) 71 (inputs 72 `(("sdl2" ,sdl2) 73 ("sdl2-image" ,sdl2-image) 74 ("openal" ,openal) 75 ("mesa" ,mesa) 76 ("glew" ,glew) 77 ("libvorbis" ,libvorbis) 78 ("libogg" ,libogg) 79 ("physfs" ,physfs) 80 ("curl" ,curl) 81 ("boost" ,boost-1.74) 82 ("freetype" ,freetype) 83 ("libraqm" ,libraqm) 84 ("fribidi" ,fribidi) 85 ("harfbuzz" ,harfbuzz) 86 ("squirrel" ,squirrel) 87 ("glm", glm))) 88 (synopsis (synopsis-from-source %source-dir)) 89 (description (description-from-source %source-dir)) 90 (home-page (homepage-from-source %source-dir)) 91 (license license:gpl3+))) 92 93supertux 94 95;; EOF ;; 96