Files
void-packages/srcpkgs/stepmania/template
Krul Ceter 8078afbed4 stepmania: fix build with gcc 12, ship ffmpeg 2.1.3 with distfiles
If ffmpeg with specific version is not present in the work source
directory, cmake attempts to clone its repository with git and
check out version 2.1.3. This approach presents two issues:

1. It can no longer be cloned using git:// for github (see
https://github.com/stepmania/stepmania/pull/2200) which results in
connection timeout and build failure as the result.

2. Downloaded tarball is erased after successful build since it is
considered to be part of the source code.
Its retrieval and storage for future use should be done by xbps-src.
2022-12-03 20:03:10 +01:00

42 lines
1.3 KiB
Bash

# Template file for 'stepmania'
pkgname=stepmania
version=5.0.12
revision=4
# see CMake/SetupFfmpeg.cmake in the source code
_ffmpeg_ver=2.1.3
build_wrksrc="${pkgname}-${version}"
build_style=cmake
make_cmd=make
cmake_builddir="Build"
hostmakedepends="nasm yasm pkg-config"
makedepends="libmad-devel libvorbis-devel pcre-devel libjpeg-turbo-devel
alsa-lib-devel libXrandr-devel libva-devel glew-devel"
short_desc="Advanced rhythm game"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MIT"
homepage="http://www.stepmania.com/"
distfiles="https://github.com/stepmania/stepmania/archive/v${version}.tar.gz
https://github.com/FFmpeg/FFmpeg/archive/n${_ffmpeg_ver}.tar.gz"
checksum="df79bcadd69d4ed60cf560d45386ec275181343495ffd744c3ff8f73c83d4755
cfafef9c9fb2581ac234fc11da97c677e5a911db4e16b341ab724b7e6aa03b62"
patch_args="-Np1 --directory=${build_wrksrc}"
# Upstream has stated that only x86 hardware can meed the performance
# constraints and that musl is not supported due to interop issues
# with Windows
archs="i686 x86_64"
export CMAKE_GENERATOR="Unix Makefiles"
post_extract() {
mv FFmpeg-n${_ffmpeg_ver} ${build_wrksrc}/extern/ffmpeg-linux-${_ffmpeg_ver}
}
post_install() {
vlicense Docs/Licenses.txt LICENSE
mkdir -p ${DESTDIR}/usr/bin
cd ${DESTDIR}
ln -sf ../../opt/stepmania-5.0/stepmania usr/bin/
}