diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-emulation/daphne | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-emulation/daphne')
-rw-r--r-- | games-emulation/daphne/Manifest | 10 | ||||
-rw-r--r-- | games-emulation/daphne/daphne-1.0.ebuild | 89 | ||||
-rw-r--r-- | games-emulation/daphne/files/daphne-1.0-gcc43.patch | 12 | ||||
-rw-r--r-- | games-emulation/daphne/files/daphne-1.0-ldflags.patch | 22 | ||||
-rw-r--r-- | games-emulation/daphne/files/daphne-1.0-system-lmpeg2.patch | 41 | ||||
-rw-r--r-- | games-emulation/daphne/files/daphne-1.0-typefix.patch | 47 | ||||
-rw-r--r-- | games-emulation/daphne/files/daphne-1.0-underlink.patch | 8 | ||||
-rw-r--r-- | games-emulation/daphne/files/daphne-1.0-vorbisfilefix.patch | 14 | ||||
-rw-r--r-- | games-emulation/daphne/files/daphne-1.0-zlib.patch | 13 | ||||
-rw-r--r-- | games-emulation/daphne/metadata.xml | 8 |
10 files changed, 264 insertions, 0 deletions
diff --git a/games-emulation/daphne/Manifest b/games-emulation/daphne/Manifest new file mode 100644 index 000000000000..ed0bebb0665a --- /dev/null +++ b/games-emulation/daphne/Manifest @@ -0,0 +1,10 @@ +AUX daphne-1.0-gcc43.patch 486 BLAKE2B 2f316f61b6386c3bbb3ddb4eae154953fcca2e38cd3f83b46c5d4c5cd77efce514540ddee385ebfebe172c921dc19522cd2996b8dfa57e386c2516538b5d9d1e SHA512 ab47c9d7c45191ff0b8b5dcb5de2553da0983785f5497cc4a683c1501cee5d1fde0bc70311a1fca68785ede36e410a367b0d1863c8c51b52d4501a4d14a57ac2 +AUX daphne-1.0-ldflags.patch 620 BLAKE2B f3603a7b4793e7e61ae6ead36c427046843b4723ac9e278d446956b6ee0eb228cc60bf479bf2cde3822f4e83825aeccc4869fcb765b96686e92478a9bfd1b7a0 SHA512 5dd63bd25b8fc583b95bf5be338ddad5e636f72e68f7a19052e84fa2c55da068bc6d9a449b693e69b87700d85e002731916f3cf9f0a6226e864112b4a3f3576a +AUX daphne-1.0-system-lmpeg2.patch 1547 BLAKE2B d80c4a9ca8fc4cfe6aea555e6585220f149841b5887ef28ab73274664127e34ad26897f34d5a49acad9c2457a7b4c81844114ed27a3c56c3c329e004882aadfe SHA512 ffa1fd05c4a676b0f5342f10764b872b14ad0a6bdfabd7b6b6e306594ae1c4fd7827688906fdc123d1aaab889b1659441a03e16f758528f4e14117f9c8cba892 +AUX daphne-1.0-typefix.patch 1951 BLAKE2B f3f88058245db9b0b3beade18fa48f6aa21eb786935b768324f6287b1c06d800976bc061b038eebc35139f7af114a1288a00d82452db98ba3d971442d07de46a SHA512 b97a32e54d14e40b5857623065ded2985868abce8e26a21fcf2452a90bbcc2ebd7b0d6f24a36d62351a254cf3f66514c5c55014cfce03246ccf3f884a07f5352 +AUX daphne-1.0-underlink.patch 407 BLAKE2B c8583863874ce2dfac04fbb8832f0d1060200816dcd02a0ce63ea14ceeee03bfb435b8730d6cec55bcaf4b028925e729240d2c9f879219472ab822edf5c212db SHA512 ecbe457ea90aad322275b5b4ea29b7a3a28442afc87a1338987691799241350bc2583a9dc568c2215c489a21806ad918ebcb3091096ec827ac0f091a93451edb +AUX daphne-1.0-vorbisfilefix.patch 500 BLAKE2B c8fa57b17b22392d4ef153e3ba7b27a8d5d3780c3d718852326aee28d33a41d93aa5e5e16ee870826cc1a2e6f71cf9066b381d043738420a670893f9134a57a8 SHA512 1fcea4e31f29a165da3746a35fe7a9c839caa0b6eabfe9247bd5b4f603985f114b3dec952cd680f3dc243c8014db012e4b0bc26c8721e8b74807271b80803433 +AUX daphne-1.0-zlib.patch 356 BLAKE2B 6130956ae52788c180330e653191a99a3b88c57431bd9e93c2ee599e699969b113bc26142bff3e747953c6034b5bf566932bc92ec504e7fc7507f7eed3bab562 SHA512 8c76ab069589fedceae114140eb845324f75c664dd76f257065293a8eecf57d9e2487c00af9d310afffe36f990b09c73c7648979b785886f3ca814f8a64d33e6 +DIST daphne-1.0-src.tar.gz 4316387 BLAKE2B 12063360931b36aaf301e6cd8169706f43456363140f9abbe9b09b711126a1c90f451cbbafc0f0d9fa23d538e01b3a99d2c50056e00ced51607572a1108621b8 SHA512 e15e3e86cd03b8eea410eedb667c878f9e2fb044a9bf2cc54e54db641f1c2c6fd99e889cfab308bf972336b577059e13d6cf2a353016ded8e28dae9ddedc0ad4 +EBUILD daphne-1.0.ebuild 1964 BLAKE2B 5a813b31b1cc4309a820b4de7f875e415f664ac230be813c3f3bb376a54db7641d515cbead8c9066efa5a7a0ae2d13f6e3beb04a0a5b457b24e6cde3c1626b6a SHA512 5aa88307cb2dda478879b64c40f1f728e717d7fb9849c1b95db26f8a24a7445d8dbbfed74b7512005524ce638dcd460b52162cf48b44710a556dc813f60c0134 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-emulation/daphne/daphne-1.0.ebuild b/games-emulation/daphne/daphne-1.0.ebuild new file mode 100644 index 000000000000..ce1a8f457df6 --- /dev/null +++ b/games-emulation/daphne/daphne-1.0.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs games + +DESCRIPTION="Laserdisc Arcade Game Emulator" +HOMEPAGE="http://www.daphne-emu.com/" +SRC_URI="http://www.daphne-emu.com/download/${P}-src.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="media-libs/libogg + media-libs/libvorbis + sys-libs/zlib + media-libs/libsdl[joystick,video] + media-libs/sdl-mixer + media-libs/libmpeg2 + virtual/opengl + media-libs/glew" +RDEPEND=${DEPEND} + +S=${WORKDIR}/v_1_0/src + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-vorbisfilefix.patch \ + "${FILESDIR}"/${P}-typefix.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-zlib.patch \ + "${FILESDIR}"/${P}-underlink.patch \ + "${FILESDIR}"/${P}-system-lmpeg2.patch + + sed -i "/m_appdir =/s:\.:${GAMES_DATADIR}/${PN}:" \ + io/homedir.cpp || die + sed -i "s:pics/:${GAMES_DATADIR}/${PN}/&:" \ + video/video.cpp || die + sed -i "s:sound/:${GAMES_DATADIR}/${PN}/&:" \ + sound/sound.cpp || die + sed -i "s:./lib:$(games_get_libdir)/${PN}/lib:" \ + io/dll.h || die + + sed \ + -e "s:-DNATIVE_CPU_X86::" \ + -e "s:-DUSE_MMX::" \ + -e '/export USE_MMX = 1/s:^:# :' \ + Makefile.vars.linux_x86 >Makefile.vars || die +} + +src_configure() { + cd vldp2 + egamesconf --disable-accel-detect +} + +src_compile() { + local archflags + + if use x86; then + archflags="-DNATIVE_CPU_X86 -DMMX_RGB2YUV -DUSE_MMX" + export USE_MMX=1 + else + # -fPIC is needed on amd64 but fails on x86. + archflags="-fPIC" + fi + + emake \ + CXX=$(tc-getCXX) \ + DFLAGS="${CXXFLAGS} ${archflags}" + emake -C vldp2 \ + -f Makefile.linux \ + CC=$(tc-getCC) \ + DFLAGS="${CFLAGS} ${archflags}" +} + +src_install() { + cd .. + newgamesbin daphne.bin daphne + exeinto "$(games_get_libdir)"/${PN} + doexe libvldp2.so + insinto "${GAMES_DATADIR}"/${PN} + doins -r pics roms sound + dodoc doc/*.{ini,txt} + dohtml -r doc/* + prepgamesdirs +} diff --git a/games-emulation/daphne/files/daphne-1.0-gcc43.patch b/games-emulation/daphne/files/daphne-1.0-gcc43.patch new file mode 100644 index 000000000000..07c505c27814 --- /dev/null +++ b/games-emulation/daphne/files/daphne-1.0-gcc43.patch @@ -0,0 +1,12 @@ +--- a/Makefile.old 2009-01-19 16:22:07.000000000 +0100 ++++ b/Makefile 2009-01-19 16:22:17.000000000 +0100 +@@ -33,7 +33,7 @@ + endif + + # Platform specific cflags defined in the Makefile.vars file +-export CFLAGS = ${PFLAGS} ${DEFINE_STATIC_VLDP} -Wall -Winline -Werror ++export CFLAGS = ${PFLAGS} ${DEFINE_STATIC_VLDP} -Wall -Winline + + OBJS = ldp-out/*.o cpu/*.o game/*.o io/*.o timer/*.o ldp-in/*.o video/*.o \ + sound/*.o daphne.o cpu/x86/*.o scoreboard/*.o ${VLDP_OBJS} + diff --git a/games-emulation/daphne/files/daphne-1.0-ldflags.patch b/games-emulation/daphne/files/daphne-1.0-ldflags.patch new file mode 100644 index 000000000000..245e8f5e216b --- /dev/null +++ b/games-emulation/daphne/files/daphne-1.0-ldflags.patch @@ -0,0 +1,22 @@ +--- a/Makefile.old 2010-10-05 08:48:46.000000000 +0200 ++++ b/Makefile 2010-10-05 08:49:10.000000000 +0200 +@@ -43,7 +43,7 @@ + .SUFFIXES: .cpp + + all: ${LOCAL_OBJS} sub +- ${CXX} ${DFLAGS} ${OBJS} -o ${EXE} ${LIBS} ++ ${CXX} $(LDFLAGS) ${DFLAGS} ${OBJS} -o ${EXE} ${LIBS} + + sub: + cd ldp-out && $(MAKE) +--- a/vldp2/Makefile.linux.old 2010-10-05 09:29:52.000000000 +0200 ++++ b/vldp2/Makefile.linux 2010-10-05 09:30:13.000000000 +0200 +@@ -33,7 +33,7 @@ + all: vldp2 + + vldp2: ${OBJS} +- ${CC} -shared -o ${LIBNAME} ${OBJS} ${LIBS} ++ ${CC} $(LDFLAGS) -shared -o ${LIBNAME} ${OBJS} ${LIBS} + cp ${LIBNAME} ../../. + + clean: diff --git a/games-emulation/daphne/files/daphne-1.0-system-lmpeg2.patch b/games-emulation/daphne/files/daphne-1.0-system-lmpeg2.patch new file mode 100644 index 000000000000..e82d2ecf0d40 --- /dev/null +++ b/games-emulation/daphne/files/daphne-1.0-system-lmpeg2.patch @@ -0,0 +1,41 @@ +diff -ur v_1_0.old/src/vldp2/Makefile.am v_1_0/src/vldp2/Makefile.am +--- a/vldp2/Makefile.am 2009-12-29 18:04:15.000000000 +0200 ++++ b/vldp2/Makefile.am 2009-12-29 18:10:42.000000000 +0200 +@@ -1,3 +1,3 @@ +-SUBDIRS = autotools include libmpeg2 libvo doc src vc++ test ++SUBDIRS = autotools + + EXTRA_DIST = bootstrap +diff -ur v_1_0.old/src/vldp2/Makefile.in v_1_0/src/vldp2/Makefile.in +--- a/vldp2/Makefile.in 2009-12-29 18:04:15.000000000 +0200 ++++ b/vldp2/Makefile.in 2009-12-29 18:10:51.000000000 +0200 +@@ -128,7 +128,7 @@ + sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ +-SUBDIRS = autotools include libmpeg2 libvo doc src vc++ test ++SUBDIRS = autotools + + EXTRA_DIST = bootstrap + subdir = . +diff -ur v_1_0.old/src/vldp2/Makefile.linux v_1_0/src/vldp2/Makefile.linux +--- a/vldp2/Makefile.linux 2009-12-29 18:04:15.000000000 +0200 ++++ b/vldp2/Makefile.linux 2009-12-29 18:13:12.000000000 +0200 +@@ -14,14 +14,9 @@ + DFLAGS = -O3 -march=i686 -fomit-frame-pointer -funroll-loops + + CFLAGS = ${DFLAGS} `sdl-config --cflags` -I./include +-LIBS = `sdl-config --libs` ++LIBS = `sdl-config --libs` -lmpeg2 + +-OBJS = vldp/vldp.o vldp/vldp_internal.o vldp/mpegscan.o \ +- libmpeg2/cpu_accel.o libmpeg2/alloc.o libmpeg2/cpu_state.o \ +- libmpeg2/decode.o libmpeg2/header.o libmpeg2/motion_comp.o \ +- libmpeg2/idct.o libmpeg2/idct_mmx.o libmpeg2/motion_comp_mmx.o \ +- libmpeg2/slice.o \ +- libvo/video_out.o libvo/video_out_null.o ++OBJS = vldp/vldp.o vldp/vldp_internal.o vldp/mpegscan.o + + LIBNAME = libvldp2.so + + diff --git a/games-emulation/daphne/files/daphne-1.0-typefix.patch b/games-emulation/daphne/files/daphne-1.0-typefix.patch new file mode 100644 index 000000000000..790d93a3af87 --- /dev/null +++ b/games-emulation/daphne/files/daphne-1.0-typefix.patch @@ -0,0 +1,47 @@ +amd64 does not like int pointers + +diff -ruN v_1_0.orig/src/ldp-in/ldv1000.cpp v_1_0/src/ldp-in/ldv1000.cpp +--- a/ldp-in/ldv1000.cpp 2008-01-29 18:04:34.000000000 +0100 ++++ b/ldp-in/ldv1000.cpp 2008-09-19 14:29:40.000000000 +0200 +@@ -607,9 +607,9 @@ + + void ldv1000_event_callback(void *eventType) + { +- g_ldv1000_last_event = (unsigned int) eventType; ++ g_ldv1000_last_event = (unsigned long) eventType; + +- switch ((unsigned int) eventType) ++ switch ((unsigned long) eventType) + { + case LDV1000_EVENT_VSYNC_END: + #ifdef DEBUG +diff -ruN v_1_0.orig/src/vldp2/libvo/video_out_null.c v_1_0/src/vldp2/libvo/video_out_null.c +--- a/vldp2/libvo/video_out_null.c 2008-01-29 18:04:43.000000000 +0100 ++++ b/vldp2/libvo/video_out_null.c 2008-09-19 14:30:03.000000000 +0200 +@@ -82,7 +82,7 @@ + // this is the potentially expensive callback that gets the hardware overlay + // ready to be displayed, so we do this before we sleep + // NOTE : if this callback fails, we don't want to display the frame due to double buffering considerations +- if (g_in_info->prepare_frame(&g_yuv_buf[(int) id])) ++ if (g_in_info->prepare_frame(&g_yuv_buf[(long) id])) + { + #ifndef VLDP_BENCHMARK + +@@ -133,7 +133,7 @@ + #endif + // draw the frame + // we are using the pointer 'id' as an index, kind of risky, but convenient :) +- g_in_info->display_frame(&g_yuv_buf[(int) id]); ++ g_in_info->display_frame(&g_yuv_buf[(long) id]); + #ifndef VLDP_BENCHMARK + } // end if we didn't get a new command to interrupt the frame being displayed + #endif +@@ -272,7 +272,7 @@ + uint8_t ** buf, void ** id) + { + static buffer_index = 0; +- *id = (int *) buffer_index; // THIS IS A LITTLE TRICKY ++ *id = (long *) buffer_index; // THIS IS A LITTLE TRICKY + // We are setting an integer value to a pointer ... + // Because it is convenient to let the pointer hold the value of this integer for us + // Hopefully it doesn't cause any trouble later ;) diff --git a/games-emulation/daphne/files/daphne-1.0-underlink.patch b/games-emulation/daphne/files/daphne-1.0-underlink.patch new file mode 100644 index 000000000000..dd4c3d1467e2 --- /dev/null +++ b/games-emulation/daphne/files/daphne-1.0-underlink.patch @@ -0,0 +1,8 @@ +--- a/Makefile.vars.linux_x86.old 2011-09-21 12:27:42.480566742 +0200 ++++ b/Makefile.vars.linux_x86 2011-09-21 12:27:57.490564959 +0200 +@@ -24,4 +24,4 @@ + -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL + + # platform-specific lib flags +-LIBS = `sdl-config --libs` -ldl -lz -logg -lvorbis -lvorbisfile -lGLEW ++LIBS = `sdl-config --libs` -ldl -lz -logg -lvorbis -lvorbisfile -lGLEW -lGL -lm diff --git a/games-emulation/daphne/files/daphne-1.0-vorbisfilefix.patch b/games-emulation/daphne/files/daphne-1.0-vorbisfilefix.patch new file mode 100644 index 000000000000..05a0403a8af4 --- /dev/null +++ b/games-emulation/daphne/files/daphne-1.0-vorbisfilefix.patch @@ -0,0 +1,14 @@ +Fix no sound issue with >=media-libs/libvorbis-1.2.0 + +diff -ruN v_1_0.orig/src/ldp-out/ldp-vldp-audio.cpp v_1_0/src/ldp-out/ldp-vldp-audio.cpp +--- a/ldp-out/ldp-vldp-audio.cpp 2008-01-29 18:04:07.000000000 +0100 ++++ b/ldp-out/ldp-vldp-audio.cpp 2008-09-19 13:43:10.000000000 +0200 +@@ -146,7 +146,7 @@ + switch (whence) + { + case SEEK_SET: +- if (offset < g_audio_filesize) ++ if (offset <= g_audio_filesize) + { + // make sure offset is positive so we don't get into trouble + if (offset >= 0) diff --git a/games-emulation/daphne/files/daphne-1.0-zlib.patch b/games-emulation/daphne/files/daphne-1.0-zlib.patch new file mode 100644 index 000000000000..d94af3b174f4 --- /dev/null +++ b/games-emulation/daphne/files/daphne-1.0-zlib.patch @@ -0,0 +1,13 @@ +--- a/io/unzip.h 2011-09-21 12:13:28.911668053 +0200 ++++ b/io/unzip.h 2011-09-21 12:14:53.074658064 +0200 +@@ -57,6 +57,10 @@ + #include "zlib.h" + #endif + ++#ifndef OF ++#define OF _Z_OF ++#endif ++ + #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) + /* like the STRICT of WIN32, we define a pointer that cannot be converted + from (void*) without cast */ diff --git a/games-emulation/daphne/metadata.xml b/games-emulation/daphne/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-emulation/daphne/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> |