void-packages/srcpkgs/vice/template

57 lines
1.5 KiB
Bash

# Template file for 'vice'
pkgname=vice
version=3.4
revision=2
build_style=gnu-configure
configure_args="
$(vopt_enable sdl2 sdlui2)
$(vopt_with sdl2 sdlsound)
$(vopt_enable gtk3 gnomeui3)
$(vopt_with gtk3 pulse)
$(vopt_enable ffmpeg external-ffmpeg)
--disable-option-checking
--enable-cpuhistory
--enable-x64
AR=${AR}"
hostmakedepends="bdftopcf flex mkfontdir perl pkg-config xa
glib-devel autoconf texinfo automake"
makedepends="
zlib-devel
readline-devel
libpng-devel
giflib-devel
glew-devel
alsa-lib-devel
$(vopt_if sdl2 SDL2_mixer-devel)
$(vopt_if sdl2 SDL2-devel)
$(vopt_if gtk3 gtk+3-devel)
$(vopt_if gtk3 pulseaudio-devel)
$(vopt_if gtk3 pango-devel)
$(vopt_if ffmpeg ffmpeg-devel)"
short_desc="Emulator for C64, C128, CBM-II, PET, VIC20, Plus4 and C16"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://vice-emu.sourceforge.net/"
changelog="https://vice-emu.sourceforge.io/NEWS"
distfiles="${SOURCEFORGE_SITE}/vice-emu/releases/vice-${version}.tar.gz"
checksum=4bd00c1c63d38cd1fe01b90032834b52f774bc29e4b67eeb1e525b14fee07aeb
# Package build options
build_options="sdl2 gtk3 ffmpeg"
build_options_default="gtk3 ffmpeg"
desc_option_ffmpeg="Support video recording via FFmpeg"
CFLAGS="-fcommon"
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" --disable-nls";;
esac
pre_configure() {
# __u_char is not portable...
sed -i 's,__u_char,unsigned char,g' src/*.[ch]
sed -i 's/lib64/lib/g' configure.ac
autoreconf -fi
}