Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vice: update to 3.7.1. #37480

Merged
merged 1 commit into from Jun 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 16 additions & 19 deletions srcpkgs/vice/template
@@ -1,26 +1,24 @@
# Template file for 'vice'
pkgname=vice
version=3.5
version=3.7.1
revision=1
build_style=gnu-configure
configure_args="
classabbyamp marked this conversation as resolved.
Show resolved Hide resolved
$(vopt_enable sdl2 sdlui2)
$(vopt_with sdl2 sdlsound)
$(vopt_enable gtk3 gnomeui3)
$(vopt_enable gtk3 native-gtk3ui)
$(vopt_enable gtk3 desktop-files)
$(vopt_with gtk3 pulse)
$(vopt_enable ffmpeg external-ffmpeg)
--disable-option-checking
$(vopt_enable ffmpeg external-ffmpeg)
--enable-cpuhistory
--enable-x64
--disable-pdf-docs
AR=${AR}"
hostmakedepends="bdftopcf flex mkfontdir perl pkg-config xa
glib-devel autoconf texinfo automake dos2unix"
--libdir=/usr/lib$XBPS_TARGET_WORDSIZE"
hostmakedepends="pkg-config flex dos2unix xa perl glib-devel xdg-utils"
makedepends="
zlib-devel
readline-devel
libpng-devel
giflib-devel
glew-devel
alsa-lib-devel
$(vopt_if sdl2 SDL2_mixer-devel)
Expand All @@ -32,26 +30,25 @@ makedepends="
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/"
homepage="https://vice-emu.sourceforge.net/"
changelog="https://vice-emu.sourceforge.io/NEWS"
distfiles="${SOURCEFORGE_SITE}/vice-emu/releases/vice-${version}.tar.gz"
checksum=56b978faaeb8b2896032bd604d03c3501002187eef1ca58ceced40f11a65dc0e
checksum=7e3811e6024db0698bfbc321bb324572446b8853d01b4073f09865957b0cab98

# Package build options
build_options="sdl2 gtk3 ffmpeg"
build_options_default="gtk3 ffmpeg"

desc_option_ffmpeg="Support video recording via FFmpeg"

CFLAGS="-fcommon"
export XDG_DATA_DIRS=$DESTDIR/usr/share

case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" --disable-nls";;
esac
post_patch() {
vsed -i src/arch/gtk3/data/unix/Makefile.in -e 's/\$(XDG_DESKTOP_MENU) install/$(XDG_DESKTOP_MENU) install --mode system/'
}

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
pre_install() {
# required for xdg-desktop-menu to work
vmkdir usr/share/applications
vmkdir usr/share/desktop-directories
}