void-packages/srcpkgs/vice/template

30 lines
928 B
Bash

# Template file for 'vice'
pkgname=vice
version=2.4.18
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=6c780f8f253595c38f978afdb733864f17eb47d36c65fead0404b63056dadf18
# 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
}