57 lines
1.5 KiB
Bash
57 lines
1.5 KiB
Bash
# Template file for 'vice'
|
|
pkgname=vice
|
|
version=3.5
|
|
revision=1
|
|
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
|
|
--enable-x64
|
|
--disable-pdf-docs
|
|
AR=${AR}"
|
|
hostmakedepends="bdftopcf flex mkfontdir perl pkg-config xa
|
|
glib-devel autoconf texinfo automake dos2unix"
|
|
makedepends="
|
|
zlib-devel
|
|
readline-devel
|
|
libpng-devel
|
|
giflib-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="http://vice-emu.sourceforge.net/"
|
|
changelog="https://vice-emu.sourceforge.io/NEWS"
|
|
distfiles="${SOURCEFORGE_SITE}/vice-emu/releases/vice-${version}.tar.gz"
|
|
checksum=56b978faaeb8b2896032bd604d03c3501002187eef1ca58ceced40f11a65dc0e
|
|
|
|
# Package build options
|
|
build_options="sdl2 gtk3 ffmpeg"
|
|
build_options_default="gtk3 ffmpeg"
|
|
|
|
desc_option_ffmpeg="Support video recording via FFmpeg"
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) configure_args+=" --disable-nls";;
|
|
esac
|
|
|
|
pre_configure() {
|
|
# __u_char is not portable...
|
|
sed -i 's,__u_char,unsigned char,g' src/*.[ch]
|
|
sed -i 's/lib64/lib/g' configure.ac
|
|
autoreconf -fi
|
|
}
|