void-packages/srcpkgs/vice/template

30 lines
928 B
Bash

# Template file for 'vice'
pkgname=vice
version=2.4.19
revision=1
build_style=gnu-configure
configure_args="--enable-sdlui"
hostmakedepends="pkg-config bdftopcf mkfontdir flex"
makedepends="zlib-devel readline-devel libpng-devel giflib-devel SDL-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=ddbdf9a2a81bd1722a236618db365549455265630b6e170968daa0ce5cf38882
# Package build options
build_options="pulseaudio"
build_options_default="pulseaudio"
if [ "$build_option_pulseaudio" ]; then
configure_args+=" --with-pulse"
makedepends+=" pulseaudio-devel"
else
configure_args+=" --without-pulse"
fi
pre_configure() {
# Do not install data to /usr/lib64
sed -i 's:VICEDIR=.*:VICEDIR="$PREFIX/share/vice":g' configure
}