guix.scm 3.2 KB

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