51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
# Template file for 'vice'
|
|
pkgname=vice
|
|
version=3.3
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
$(vopt_enable sdl2 sdlui2)
|
|
$(vopt_with sdl2 sdlsound)
|
|
$(vopt_enable gtk3 gnomeui3)
|
|
$(vopt_with gtk3 pulse)
|
|
$(vopt_enable ffmpeg external-ffmpeg)
|
|
--disable-option-checking
|
|
--enable-cpuhistory
|
|
AR=${AR}"
|
|
hostmakedepends="bdftopcf flex mkfontdir perl pkg-config xa
|
|
glib-devel"
|
|
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)
|
|
$(vopt_if ffmpeg ffmpeg-devel)"
|
|
short_desc="Emulator for C64, C128, CBM-II, PET, VIC20, Plus4 and C16"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://vice-emu.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/vice-emu/${pkgname}-${version}.tar.gz"
|
|
checksum=1a55b38cc988165b077808c07c52a779d181270b28c14b5c9abf4e569137431d
|
|
|
|
# Package build options
|
|
build_options="sdl2 gtk3 ffmpeg"
|
|
build_options_default="gtk3 ffmpeg"
|
|
|
|
desc_option_ffmpeg="Support video recording via FFmpeg"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) configure_args+=" --disable-nls";;
|
|
esac
|
|
|
|
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]
|
|
}
|