void-packages/srcpkgs/vice/template

42 lines
1.5 KiB
Bash

# Template file for 'vice'
pkgname=vice
version=3.8
revision=1
build_style=gnu-configure
configure_args="--enable-cpuhistory --enable-x64 --disable-pdf-docs
--libdir=/usr/lib$XBPS_TARGET_WORDSIZE $(vopt_enable sdl2 sdlui2)
$(vopt_with sdl2 sdlsound) $(vopt_enable gtk3 native-gtk3ui)
$(vopt_enable gtk3 desktop-files) $(vopt_with gtk3 pulse)
$(vopt_enable ffmpeg external-ffmpeg)"
hostmakedepends="pkg-config flex dos2unix xa perl glib-devel xdg-utils"
makedepends="zlib-devel readline-devel libpng-devel glew-devel alsa-lib-devel
libcurl-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 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="https://vice-emu.sourceforge.net/"
changelog="https://vice-emu.sourceforge.io/NEWS"
distfiles="${SOURCEFORGE_SITE}/vice-emu/releases/vice-${version}.tar.gz"
checksum=1d7dc4d0f2bbcc2a871bb954ff4a5df63048dea9c16f5f1e9bc8260fa41a1004
# Package build options
build_options="sdl2 gtk3 ffmpeg"
build_options_default="gtk3 ffmpeg"
desc_option_ffmpeg="Support video recording via FFmpeg"
export XDG_DATA_DIRS=$DESTDIR/usr/share
post_patch() {
vsed -i src/arch/gtk3/data/unix/Makefile.in \
-e 's/\$(XDG_DESKTOP_MENU) install/$(XDG_DESKTOP_MENU) install --mode system/'
}
pre_install() {
# required for xdg-desktop-menu to work
vmkdir usr/share/applications
vmkdir usr/share/desktop-directories
}