logo

overlay

My (experimental) gentoo overlay

stepmania-5.0.12.ebuild (2217B)


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