void-packages/srcpkgs/vice/template

33 lines
1.1 KiB
Text
Raw Normal View History

2013-10-30 20:09:40 +00:00
# Template file for 'vice'
pkgname=vice
version=2.4
2014-10-03 18:22:40 +00:00
revision=2
2013-10-30 20:09:40 +00:00
build_style=gnu-configure
configure_args="--enable-sdlui"
hostmakedepends="pkg-config bdftopcf mkfontdir"
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@gmail.com>"
license="GPL-2"
homepage="http://vice-emu.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/vice-emu/$pkgname-$version.tar.gz"
checksum=ff8b8d5f0f497d1f8e75b95bbc4204993a789284a08a8a59ba727ad81dcace10
# 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() {
# make it build with giflib-5.1.0
# see http://wiki.linuxfromscratch.org/blfs/ticket/5076#comment:2
sed -i "/EGifCloseFile/s:sdata->fd:&, NULL:g" src/gfxoutputdrv/gifdrv.c
# Do not install data to /usr/lib64
sed -i 's:VICEDIR=.*:VICEDIR="$PREFIX/share/vice":g' configure
}