python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / higan / template
blob97e3cb096e865b74bdd4c517a833cc76740f9faf
1 # Template file for 'higan'
2 pkgname=higan
3 version=106
4 revision=1
5 wrksrc="higan_v${version}-source"
6 build_style=gnu-makefile
7 build_wrksrc=higan
8 make_build_args='compiler=${CXX}'
9 make_install_args="prefix=${DESTDIR}/usr"
10 hostmakedepends="p7zip pkg-config SDL-devel"
11 makedepends="gtk+-devel gtksourceview2-devel libgomp-devel
12  $(vopt_if sdl SDL-devel)
13  $(vopt_if opengl MesaLib-devel) $(vopt_if xv libXv-devel)
14  $(vopt_if ao libao-devel) $(vopt_if alsa alsa-lib-devel)
15  $(vopt_if openal libopenal-devel) $(vopt_if pulseaudio pulseaudio-devel)"
16 short_desc="Multi-system emulator (SNES/Game Boy/Mega Drive/PC Engine/WonderSwan)"
17 maintainer="John <johnz@posteo.net>"
18 license="GPL-3"
19 homepage="https://byuu.org/emulation/higan/"
20 distfiles="https://download.byuu.org/higan_v${version}-source.7z"
21 checksum=6564f91f232040c46c052de763dc139e94005e0f2376959fdacbb6ccd3fd6d18
23 build_options="icarus pulseaudio alsa oss openal ao sdl xv opengl udev"
24 build_options_default="icarus pulseaudio alsa oss openal ao sdl xv opengl udev"
25 desc_option_ao="Enable support for cross-platform audio"
26 desc_option_icarus="Enable the icarus binary"
27 desc_option_openal="Enable support for 3D audio"
28 desc_option_opengl="Enable support for OpenGL"
29 desc_option_oss="Enable support for OSS"
30 desc_option_udev="Enable support for udev"
31 desc_option_xv="Enable support for Xv"
33 disable_module() {
34         echo Disabling: "$1"
35         sed -i \
36                 -e "s|$1\b||" \
37                 "${wrksrc}"/higan/target-tomoko/GNUmakefile
40 do_configure() {
41         $(vopt_if pulseaudio '' 'disable_module audio.pulseaudio')
42         $(vopt_if pulseaudio '' 'disable_module audio.pulseaudiosimple')
43         $(vopt_if alsa '' 'disable_module audio.alsa')
44         $(vopt_if oss '' 'disable_module audio.oss')
45         $(vopt_if openal '' 'disable_module audio.openal')
46         $(vopt_if ao '' 'disable_module audio.ao')
48         $(vopt_if sdl '' 'disable_module video.sdl')
49         $(vopt_if xv '' 'disable_module video.xvideo')
50         $(vopt_if opengl '' 'disable_module video.glx')
52         $(vopt_if sdl '' 'disable_module input.sdl')
53         $(vopt_if udev '' 'disable_module input.udev')
56 if [ "$build_option_icarus" ];then
57         post_build() {
58                 cd $wrksrc/icarus
59                 make ${makejobs} ${make_build_args}
60         }
62         post_install() {
63                 cd $wrksrc/icarus
64                 make STRIP=true ${make_install_args} install
65         }