guix.scm 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. (set! %load-path
  17. (cons* "/ipfs/QmNbci3WpEWumBVvfbqsKhKnJTtdmkyVwYtSaPr5jVZo2m/guix-cocfree_0.0.0-56-g3a32b64"
  18. %load-path))
  19. (use-modules (guix build utils)
  20. (guix build-system cmake)
  21. ((guix licenses) #:prefix license:)
  22. (guix packages)
  23. (gnu packages audio)
  24. (gnu packages boost)
  25. (gnu packages curl)
  26. (gnu packages fontutils)
  27. (gnu packages fribidi)
  28. (gnu packages game-development)
  29. (gnu packages gl)
  30. (gnu packages gtk)
  31. (gnu packages pkg-config)
  32. (gnu packages python)
  33. (gnu packages sdl)
  34. (gnu packages squirrel)
  35. (gnu packages version-control)
  36. (gnu packages xiph)
  37. (guix-cocfree utils))
  38. (define %source-dir (dirname (current-filename)))
  39. (define-public supertux
  40. (package
  41. (name "supertux")
  42. (version (version-from-source %source-dir))
  43. (source (source-from-source %source-dir))
  44. (arguments
  45. `(#:tests? #f
  46. #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
  47. "-DUSE_SYSTEM_PHYSFS=ON")
  48. #:phases
  49. (modify-phases %standard-phases
  50. (add-after 'unpack 'set-version-number
  51. (lambda _
  52. (substitute* "version.cmake.in"
  53. (("\\$\\{MAJOR_VERSION_GIT\\}") ,"0")
  54. (("\\$\\{MINOR_VERSION_GIT\\}") ,"6")
  55. (("\\$\\{PATCH_VERSION_GIT\\}") ,"0")
  56. (("\\$\\{TWEAK_VERSION_GIT\\}") ,"")
  57. (("\\$\\{VERSION_STRING_GIT\\}") ,version))
  58. (copy-file "version.cmake.in" "version.cmake")
  59. #t)))))
  60. (build-system cmake-build-system)
  61. (native-inputs
  62. `(;("git" ,git)
  63. ("pkg-config" ,pkg-config)
  64. ("python" ,python)))
  65. (inputs
  66. `(("sdl2" ,sdl2)
  67. ("sdl2-image" ,sdl2-image)
  68. ("sdl2-mixer" ,sdl2-mixer)
  69. ("openal" ,openal)
  70. ("mesa" ,mesa)
  71. ("glew" ,glew)
  72. ("libvorbis" ,libvorbis)
  73. ("libogg" ,libogg)
  74. ("physfs" ,physfs)
  75. ("curl" ,curl)
  76. ("boost" ,boost)
  77. ("freetype" ,freetype)
  78. ("libraqm" ,libraqm)
  79. ("fribidi" ,fribidi)
  80. ("harfbuzz" ,harfbuzz)
  81. ("squirrel" ,squirrel)))
  82. (synopsis (synopsis-from-source %source-dir))
  83. (description (description-from-source %source-dir))
  84. (home-page (homepage-from-source %source-dir))
  85. (license license:gpl3+)))
  86. supertux
  87. ;; EOF ;;