logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

stepmania-5.1.0_beta2.ebuild (2265B)


  1. # Copyright 1999-2018 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=7
  4. inherit cmake-utils
  5. DESCRIPTION="Advanced rhythm game, designed for both home and arcade use"
  6. HOMEPAGE="https://www.stepmania.com/"
  7. SRC_URI="https://github.com/stepmania/stepmania/archive/v${PV/_beta/-b}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="MIT default-songs? ( CC-BY-NC-4.0 )"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="doc +default-songs alsa oss pulseaudio jack ffmpeg gles2 +gtk +mp3 +ogg +jpeg networking wav parport crash-handler cpu_flags_x86_sse2"
  12. REQUIRED_USE="|| ( alsa oss pulseaudio jack )"
  13. RDEPEND="
  14. app-arch/bzip2
  15. dev-libs/libpcre
  16. sys-libs/zlib
  17. virtual/opengl
  18. media-libs/glew:=
  19. x11-libs/libICE
  20. x11-libs/libSM
  21. x11-libs/libva
  22. x11-libs/libX11
  23. x11-libs/libXext
  24. x11-libs/libXrandr
  25. alsa? ( media-libs/alsa-lib )
  26. ffmpeg? ( >=virtual/ffmpeg-9-r1 )
  27. gtk? (
  28. dev-libs/glib:2
  29. x11-libs/cairo
  30. x11-libs/gdk-pixbuf:2
  31. x11-libs/gtk+:2
  32. x11-libs/pango
  33. )
  34. jack? ( media-sound/jack-audio-connection-kit )
  35. mp3? ( media-libs/libmad )
  36. ogg? (
  37. media-libs/libogg
  38. media-libs/libvorbis
  39. )
  40. pulseaudio? ( media-sound/pulseaudio )
  41. "
  42. DEPEND="
  43. ${RDEPEND}
  44. doc? ( app-doc/doxygen )
  45. "
  46. S="${WORKDIR}/${P/_beta/-b}"
  47. src_prepare() {
  48. # Remove third-party librairies
  49. sed -i 's;add_subdirectory(extern);;' CMakeLists.txt || die
  50. cmake-utils_src_prepare
  51. }
  52. src_configure() {
  53. # Minimaid tries to use pre-built static libraries (x86 only, often fails to link)
  54. # TTY input fails to compile
  55. local mycmakeargs=(
  56. -DWITH_ALSA="$(usex alsa)"
  57. -DWITH_CRASH_HANDLER="$(usex crash-handler)"
  58. -DWITH_FFMPEG="$(usex ffmpeg)"
  59. -DWITH_FULL_RELEASE="NO"
  60. -DWITH_GLES2="$(usex gles2)"
  61. -DWITH_GPL_LIBS="YES"
  62. -DWITH_GTK2="$(usex gtk)"
  63. -DWITH_JACK="$(usex jack)"
  64. -DWITH_JPEG="$(usex jpeg)"
  65. -DWITH_LTO="NO"
  66. -DWITH_MINIMAID="NO"
  67. -DWITH_MP3="$(usex mp3)"
  68. -DWITH_NETWORKING="$(usex networking)"
  69. -DWITH_OGG="$(usex ogg)"
  70. -DWITH_OSS="$(usex oss)"
  71. -DWITH_PARALLEL_PORT="$(usex parport)"
  72. -DWITH_PORTABLE_TOMCRYPT="YES"
  73. -DWITH_PROFILING="NO"
  74. -DWITH_PULSEAUDIO="$(usex pulseaudio)"
  75. -DWITH_SSE2="$(usex cpu_flags_x86_sse2)"
  76. -DWITH_SYSTEM_FFMPEG="$(usex ffmpeg)"
  77. -DWITH_TTY="NO"
  78. -DWITH_WAV="$(usex wav)"
  79. )
  80. cmake-utils_src_configure
  81. }