vice: update to 2.4.33

* pimp desktop file
* icons were taken from local fedora installation

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2016-12-19 16:03:50 +01:00
parent 072e5db6d8
commit 206f7d04b9
8 changed files with 16 additions and 81 deletions

View File

@@ -1,74 +0,0 @@
From 117819032b03f134a080d53a39d4f9a6e0ecb646 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
Date: Fri, 21 Oct 2016 21:30:32 +0200
Subject: [PATCH] ffmpegdrv.c: fix build with current ffmpeg
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
src/gfxoutputdrv/ffmpeglib.h | 2 +-
src/gfxoutputdrv/ffmpegdrv.c | 11 ++++++-----
2 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/gfxoutputdrv/ffmpeglib.h b/src/gfxoutputdrv/ffmpeglib.h
index b0136c8..3e8a93a 100644
--- a/src/gfxoutputdrv/ffmpeglib.h
+++ b/src/gfxoutputdrv/ffmpeglib.h
@@ -118,7 +118,7 @@ typedef void(*av_dict_free_t)(AVDictionary**);
/* swscale functions */
typedef struct SwsContext * (*sws_getContext_t)(int srcW, int srcH,
- enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat,
+ enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat,
int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, double *param);
typedef void (*sws_freeContext_t)(struct SwsContext *swsContext);
typedef int (*sws_scale_t)(struct SwsContext *context, uint8_t* srcSlice[],
diff --git a/src/gfxoutputdrv/ffmpegdrv.c b/src/gfxoutputdrv/ffmpegdrv.c
index 64359f5..437c9ac 100644
--- a/src/gfxoutputdrv/ffmpegdrv.c
+++ b/src/gfxoutputdrv/ffmpegdrv.c
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <string.h>
+#include <libavutil/pixfmt.h>
#include "archdep.h"
#include "cmdline.h"
@@ -671,8 +672,8 @@ static int ffmpegdrv_open_video(AVFormatContext *oc, AVStream *st)
picture is needed too. It is then converted to the required
output format */
video_st.tmp_frame = NULL;
- if (c->pix_fmt != PIX_FMT_RGB24) {
- video_st.tmp_frame = ffmpegdrv_alloc_picture(PIX_FMT_RGB24, c->width, c->height);
+ if (c->pix_fmt != AV_PIX_FMT_RGB24) {
+ video_st.tmp_frame = ffmpegdrv_alloc_picture(AV_PIX_FMT_RGB24, c->width, c->height);
if (!video_st.tmp_frame) {
log_debug("ffmpegdrv: could not allocate temporary picture");
return -1;
@@ -769,9 +770,9 @@ static void ffmpegdrv_init_video(screenshot_t *screenshot)
#ifdef HAVE_FFMPEG_SWSCALE
/* setup scaler */
- if (c->pix_fmt != PIX_FMT_RGB24) {
+ if (c->pix_fmt != AV_PIX_FMT_RGB24) {
sws_ctx = VICE_P_SWS_GETCONTEXT
- (video_width, video_height, PIX_FMT_RGB24,
+ (video_width, video_height, AV_PIX_FMT_RGB24,
video_width, video_height, c->pix_fmt,
SWS_BICUBIC,
NULL, NULL, NULL);
@@ -948,7 +949,7 @@ static int ffmpegdrv_record(screenshot_t *screenshot)
c = video_st.st->codec;
- if (c->pix_fmt != PIX_FMT_RGB24) {
+ if (c->pix_fmt != AV_PIX_FMT_RGB24) {
ffmpegdrv_fill_rgb_image(screenshot, video_st.tmp_frame);
if (sws_ctx != NULL) {
--
2.5.5

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

View File

@@ -1,7 +1,9 @@
[Desktop Entry]
Type=Application
Name=Vice C64 Emulator
Name=X64 (Vice)
Comment=Commodore 64 Emulator
Exec=x64
Icon=c64
Terminal=false
StartupNotify=false
Categories=Game

View File

@@ -10,15 +10,17 @@ SRC_URI = " \
${SOURCEFORGE_MIRROR}/vice-emu/${PN}-${PV}.tar.gz \
file://0001-fix-autoreconfig.patch \
file://0002-Do-not-build-os2dialogs-it-causes-infinite-loop.patch \
file://0003-ffmpegdrv.c-fix-build-with-current-ffmpeg.patch \
file://0004-joy.h-fix-typo.patch \
file://0005-fix-sdl-build.patch \
file://0003-joy.h-fix-typo.patch \
file://0004-fix-sdl-build.patch \
file://c64_16.png \
file://c64_32.png \
file://c64_48.png \
file://vice_64.desktop \
"
SRC_URI[md5sum] = "533554f5d7680b85c0954e4d4811274a"
SRC_URI[sha256sum] = "1d73ba3761b161aa76a31a9b8c6550c998272fa2feff19451d870120b14a1838"
SRC_URI[md5sum] = "e4dd02494c38610718df9f4d4566a0c7"
SRC_URI[sha256sum] = "111bb26310bd660802767084f6840a75156158134689a23a3c8a0e0d817ee36d"
inherit autotools pkgconfig
inherit autotools pkgconfig gtk-icon-cache
DEPENDS = "gtk+ pulseaudio libav libsdl libpng jpeg giflib libxxf86vm portaudio-v19 mpg123 virtual/libgl vte9"
@@ -32,6 +34,11 @@ EXTRA_OECONF = " \
do_install_append() {
install -d ${D}/${datadir}/applications
install -m 0644 ${WORKDIR}/vice_64.desktop ${D}/${datadir}/applications
for size in 16 32 48; do
install -d ${D}/${datadir}/icons/hicolor/${size}x${size}
install -m 0644 ${WORKDIR}/c64_${size}.png ${D}/${datadir}/icons/hicolor/${size}x${size}/
done
}
FILES_${PN} += "${datadir}/icons"