void-packages/srcpkgs/vice/template

41 lines
1.1 KiB
Bash

# Template file for 'vice'
pkgname=vice
version=3.2
revision=1
build_style=gnu-configure
configure_args="
$(vopt_enable sdl2 sdlui2)
$(vopt_with sdl2 sdlsound)
$(vopt_enable gtk3 gnomeui3)
$(vopt_with gtk3 pulse)
--disable-option-checking
--enable-cpuhistory"
hostmakedepends="bdftopcf flex mkfontdir perl pkg-config xa"
makedepends="
zlib-devel
readline-devel
libpng-devel
giflib-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)"
short_desc="Emulator for C64, C128, CBM-II, PET, VIC20, Plus4 and C16"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://vice-emu.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/vice-emu/$pkgname-$version.tar.gz"
checksum=28d99f5e110720c97ef16d8dd4219cf9a67661d58819835d19378143697ba523
# Package build options
build_options="sdl2 gtk3"
build_options_default="gtk3"
pre_configure() {
# Do not install data to /usr/lib64
sed -i 's:VICEDIR=.*:VICEDIR="$PREFIX/share/vice":g' configure
# __u_char is not portable...
sed -i 's,__u_char,unsigned char,g' src/*.[ch]
}