55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
# Template file for 'vice'
|
|
pkgname=vice
|
|
version=3.7.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
$(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)
|
|
--enable-cpuhistory
|
|
--enable-x64
|
|
--disable-pdf-docs
|
|
--libdir=/usr/lib$XBPS_TARGET_WORDSIZE"
|
|
hostmakedepends="pkg-config flex dos2unix xa perl glib-devel xdg-utils"
|
|
makedepends="
|
|
zlib-devel
|
|
readline-devel
|
|
libpng-devel
|
|
glew-devel
|
|
alsa-lib-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="https://vice-emu.sourceforge.net/"
|
|
changelog="https://vice-emu.sourceforge.io/NEWS"
|
|
distfiles="${SOURCEFORGE_SITE}/vice-emu/releases/vice-${version}.tar.gz"
|
|
checksum=7e3811e6024db0698bfbc321bb324572446b8853d01b4073f09865957b0cab98
|
|
|
|
# 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
|
|
}
|