guix.scm 3.2 KB

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