Added several ebuilds

This commit is contained in:
layman
2017-04-04 23:31:00 +02:00
parent 7fb53ee71e
commit bd8e1053e8
33 changed files with 1160 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
AUX vice-2.4.27-autotools.patch 353 SHA256 5d9232698424a6c98ed27e3206fb46a12093666e42dd6a59b21fd362923e9511 SHA512 10ba3f9f9c0e69f34ea3ab361b198826b7055586e2dade320a60c1a1e429797d2eaf1554b1e9fde63f8ddb23bd4a9b8fb24d3f9692433b6b6d043d09761924d3 WHIRLPOOL cad09cca9eb43298168ff4c8f3c5acd52e56aeee1a3db63f91906c5f4dc440f230d3e2e68c039759fbea0e5d7bb54adec58c2c14fe4be41a75e69c1a0fe35ab6
AUX vice-2.4.27-ffmpeg3.patch 2537 SHA256 d42963d9051096c59ecdffbf5fb52c43fff13e0f749925bb6189a105cd1344ac SHA512 7d1933038fd34fe598bccfb3762777dac7b4dad4cdea44cf27e4a124c7a7917580069fb0fe950f81c5aa00157f0ac3f84dba7fea60f46f7a52f7b6e917b2e050 WHIRLPOOL d3f611fe58116ecc57cd89f771b17bece1e7d91261fa416657aefd550ecade1a05a68502d670f66ccd9b74f200b6c6512a9ef5c489e153767e6084e0cdfa5c8a
DIST vice-2.4.27.tar.gz 25561665 SHA256 ce8b8649308b38f5245490c9df13230d075d3e571b538807d4ca8dd1d53e0b47 SHA512 589b9892f3180db6f169e74b863171f08567045862f2f47cac73ef946e81d55dcde5373fc910cfd1659238669f12ee6ad934c7143c87fad736cda77479439bec WHIRLPOOL 44633477e9ec5bf6b950efa6743647304770a44d58c624b623c992d09735446c79185ca410af60768554b62c0db4675e99c9db1a25c49b3b861860d00a298406
EBUILD vice-2.4.27-r3.ebuild 4198 SHA256 8c29d3707d75c60a8ddf05c55ae245121953b770d6dbb112bc95b329cca1d61e SHA512 9cf915b527228e832ac2be037441468fb0bb437667f064de763b9976f6db2793608080828252c4dcf0d1973becc9c172fd6663e41f2caf827d0c07c661a3b155 WHIRLPOOL ee9420c312b0a9fcebeb459bb8cf66635e7a7f17d399e13e0d005f1921671dd6cdad8eba871bb3579894d6b61e8da347d066cf07d9a9af7f364d43572c834b31
MISC metadata.xml 646 SHA256 44d02a16c320326481162dd62b212494bb0083198dd7f5999498bcd519f0ec04 SHA512 1d641f0e1ba5962aa7b9e230c20ade01595aed9f853be25ec4d5022aff22cbd75414a41fbf64427bf5a27485057ee3e767521561f396a5bf70ffa3e1da31739f WHIRLPOOL 64a43a1df92e8a1be6c0b16a61b5ddf3ad4f0f60e0f1f68bde92785a9369b9b2957ac4b9234736cbed8743d57804af6ce082ed66709d327f99dbacb4fe24039b
@@ -0,0 +1,11 @@
--- vice-2.4.7.orig/configure.ac
+++ vice-2.4.7/configure.ac
@@ -124,7 +118,7 @@
AC_SUBST(VICE_VERSION)
AM_INIT_AUTOMAKE(vice, $VICE_VERSION)
-AM_CONFIG_HEADER(src/config.h)
+AC_CONFIG_HEADERS(src/config.h)
if test x"$VICE_VERSION_BUILD" = "x" -o x"$VICE_VERSION_BUILD" = "x0" ; then
VERSION_RC=$VICE_VERSION_MAJOR","$VICE_VERSION_MINOR",0,0"
@@ -0,0 +1,60 @@
--- a/src/gfxoutputdrv/ffmpeglib.h
+++ b/src/gfxoutputdrv/ffmpeglib.h
@@ -76,6 +76,14 @@
#define AVCodecID CodecID
#endif
+#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(55,17,103)
+#define VICE_AV_PIX_FMT_RGB24 PIX_FMT_RGB24
+#define VICE_AV_PixelFormat PixelFormat
+#else
+#define VICE_AV_PIX_FMT_RGB24 AV_PIX_FMT_RGB24
+#define VICE_AV_PixelFormat AVPixelFormat
+#endif
+
/* avcodec fucntions */
typedef void(*av_init_packet_t)(AVPacket *pkt);
typedef int(*avcodec_open2_t)(AVCodecContext*, AVCodec*, AVDictionary **);
@@ -118,7 +126,7 @@
/* swscale functions */
typedef struct SwsContext * (*sws_getContext_t)(int srcW, int srcH,
- enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat,
+ enum VICE_AV_PixelFormat srcFormat, int dstW, int dstH, enum VICE_AV_PixelFormat 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[],
--- a/src/gfxoutputdrv/ffmpegdrv.c
+++ b/src/gfxoutputdrv/ffmpegdrv.c
@@ -671,8 +671,8 @@
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 != VICE_AV_PIX_FMT_RGB24) {
+ video_st.tmp_frame = ffmpegdrv_alloc_picture(VICE_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 +769,9 @@
#ifdef HAVE_FFMPEG_SWSCALE
/* setup scaler */
- if (c->pix_fmt != PIX_FMT_RGB24) {
+ if (c->pix_fmt != VICE_AV_PIX_FMT_RGB24) {
sws_ctx = VICE_P_SWS_GETCONTEXT
- (video_width, video_height, PIX_FMT_RGB24,
+ (video_width, video_height, VICE_AV_PIX_FMT_RGB24,
video_width, video_height, c->pix_fmt,
SWS_BICUBIC,
NULL, NULL, NULL);
@@ -948,7 +948,7 @@
c = video_st.st->codec;
- if (c->pix_fmt != PIX_FMT_RGB24) {
+ if (c->pix_fmt != VICE_AV_PIX_FMT_RGB24) {
ffmpegdrv_fill_rgb_image(screenshot, video_st.tmp_frame);
if (sws_ctx != NULL) {
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>games@gentoo.org</email>
<name>Gentoo Games Project</name>
</maintainer>
<use>
<flag name="ethernet">Enable ethernet emulation</flag>
<flag name="fullscreen">Enable the ability to run fullscreen</flag>
<flag name="sdlsound">Use <pkg>media-libs/libsdl</pkg> for sound support</flag>
<flag name="vte">Enable support for <pkg>x11-libs/vte</pkg> in the GTK+ interface</flag>
</use>
<upstream>
<remote-id type="sourceforge">vice-emu</remote-id>
</upstream>
</pkgmetadata>
+180
View File
@@ -0,0 +1,180 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit autotools eutils toolchain-funcs flag-o-matic xdg-utils
DESCRIPTION="The Versatile Commodore 8-bit Emulator"
HOMEPAGE="http://vice-emu.sourceforge.net/"
SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="Xaw3d alsa ethernet ffmpeg fullscreen +gtk ipv6 lame nls oss png pulseaudio sdl +sdlsound threads vte zlib"
# upstream says gtk3 and sdl2 shouldn't be exposed yet.
#REQUIRED_USE="?? ( gtk2 gtk3 sdl )"
REQUIRED_USE="?? ( gtk sdl )"
GTK_COMMON="
x11-libs/pango
x11-libs/cairo"
# gtk3? (
# x11-libs/gtk+:3
# vte? ( x11-libs/vte:2.90 )
# ${GTK_COMMON}
# )
RDEPEND="
virtual/jpeg:0
virtual/opengl
media-libs/giflib
alsa? ( media-libs/alsa-lib )
pulseaudio? ( media-sound/pulseaudio )
sdlsound? ( media-libs/libsdl[sound] )
ethernet? (
>=net-libs/libpcap-0.9.8
>=net-libs/libnet-1.1.2.1:1.1
)
ffmpeg? ( virtual/ffmpeg )
lame? ( media-sound/lame )
nls? ( virtual/libintl )
png? ( media-libs/libpng:0 )
zlib? ( sys-libs/zlib )
sdl? (
media-libs/libsdl[joystick,video]
)
!sdl? (
fullscreen? (
x11-libs/libXrandr
x11-libs/libXxf86vm )
x11-libs/libX11
x11-libs/libXext
sys-libs/readline:0
)
gtk? (
x11-libs/gtk+:2
vte? ( x11-libs/vte:0 )
x11-libs/gtkglext
${GTK_COMMON}
)
!sdl? ( !gtk? (
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libXt
x11-libs/libXv
Xaw3d? ( x11-libs/libXaw3d )
!Xaw3d? ( x11-libs/libXaw )
) )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
!sdl? (
fullscreen? ( x11-proto/xf86vidmodeproto )
!gtk? (
x11-libs/libICE
x11-libs/libSM
)
)
x11-apps/bdftopcf
x11-apps/mkfontdir
x11-proto/xproto
x11-proto/xextproto
media-libs/fontconfig
x11-proto/videoproto
nls? ( sys-devel/gettext )"
PATCHES=(
"${FILESDIR}"/${P}-autotools.patch
"${FILESDIR}"/${P}-ffmpeg3.patch
)
#"${FILESDIR}"/vice_rath.txt
src_prepare() {
# See https://bugs.gentoo.org/599576
xdg_environment_reset
default
sed -i \
-e 's/building//' \
doc/Makefile.am || die
sed -i \
-e "/^docdir =/s:=.*:=/usr/share/doc/${PF}:" \
doc/Makefile.am \
doc/readmes/Makefile.am || die
sed -i \
-e "/^docdir =/s:=.*:=/usr/share/doc/${PF}/html:" \
doc/html/Makefile.am || die
sed -i \
-e "s:/usr/local/lib/VICE:/usr/$(get_libdir)/${PN}:" \
man/vice.1 \
$(grep -rl --exclude="*texi" /usr/local/lib doc) || die
sed -i \
-e "/VICEDIR=/s:=.*:=\"/usr/$(get_libdir)/${PN}\";:" \
configure.ac || die
sed -i \
-e "s:\(#define LIBDIR \).*:\1\"/usr/$(get_libdir)/${PN}\":" \
-e "s:\(#define DOCDIR \).*:\1\"/usr/share/doc/${PF}\":" \
src/arch/unix/archdep.h \
src/arch/sdl/archdep_unix.h || die
rm -rf src/lib/{libffmpeg,liblame} || die
sed -i \
-e '/SUBDIRS/s/libffmpeg//;' \
-e '/SUBDIRS/s/liblame//;' \
src/lib/Makefile.am || die
AT_NO_RECURSIVE=1 eautoreconf
}
src_configure() {
local gui_arg snd_arg
snd_arg+=" $(use_with alsa)"
snd_arg+=" $(use_with oss)"
snd_arg+=" $(use_with pulseaudio pulse)"
snd_arg+=" $(use_with sdlsound)"
gui_arg+=" $(use_enable sdl sdlui)"
# The gtk UI code has raw calls to XOpenDisplay and
# is missing -lX11 if vte doesn't pull it in.
#if use gtk2 || use gtk3 ; then
if use gtk ; then
use vte || append-libs -lX11
fi
gui_arg+=" $(use_enable gtk gnomeui)"
#gui_arg+=" $(use_enable gtk3 gnomeui3)"
gui_arg+=" $(use_enable Xaw3d xaw3d)"
# --with-readline is forced to avoid using the embedded copy
# don't try to actually run fc-cache (bug #280976)
FCCACHE=/bin/true \
PKG_CONFIG=$(tc-getPKG_CONFIG) \
econf \
--enable-parsid \
--with-resid \
--with-readline \
--without-arts \
--without-midas \
$(use_enable ethernet) \
$(use_enable ffmpeg) \
$(use_enable ffmpeg external-ffmpeg) \
$(use_enable fullscreen) \
$(use_enable ipv6) \
$(use_enable lame) \
$(use_enable nls) \
$(use_enable vte) \
$(use_with png) \
$(use_with threads uithreads) \
$(use_with zlib) \
${gui_arg} \
${snd_arg} \
--disable-option-checking
# --disable-option-checking has to be last
}
src_install() {
DOCS="FEEDBACK"
default
}