void-packages/srcpkgs/vice/template
2017-05-05 20:39:21 +00:00

27 lines
1 KiB
Bash

# Template file for 'vice'
pkgname=vice
version=3.1
revision=1
build_style=gnu-configure
configure_args="--enable-sdlui $(vopt_with pulseaudio pulse)"
hostmakedepends="pkg-config bdftopcf mkfontdir flex"
makedepends="zlib-devel readline-devel libpng-devel giflib-devel SDL-devel
$(vopt_if pulseaudio pulseaudio-devel)"
short_desc="Emulator for C64, C128, CBM-II, PET, VIC20, Plus4 and C16"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://vice-emu.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/vice-emu/$pkgname-$version.tar.gz"
checksum=3eb8159633816095006dec36c5c3edd055a87fd8bda193a1194a6801685d1240
nocross="https://build.voidlinux.eu/builders/armv7l-musl_builder/builds/15374/steps/shell_3/logs/stdio"
# Package build options
build_options="pulseaudio"
build_options_default="pulseaudio"
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]
}