From f57c22573fe2594bd2dc0b24f31896f2e15c6e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=27lich=27=20Halber?= Date: Sat, 16 Jan 2016 03:42:35 +0100 Subject: [PATCH] VICE 2.4.24: Added recipe and patches The game data goes to /settings/VICE as the files should be edited by user. --- .../vice/patches/vice-2.4.24.patchset | 38 +++++++ games-emulation/vice/vice-2.4.24.recipe | 103 ++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 games-emulation/vice/patches/vice-2.4.24.patchset create mode 100644 games-emulation/vice/vice-2.4.24.recipe diff --git a/games-emulation/vice/patches/vice-2.4.24.patchset b/games-emulation/vice/patches/vice-2.4.24.patchset new file mode 100644 index 000000000..93d1c8d35 --- /dev/null +++ b/games-emulation/vice/patches/vice-2.4.24.patchset @@ -0,0 +1,38 @@ +From ee9390190d5c08329f292012872896ac6fe19d7d Mon Sep 17 00:00:00 2001 +From: Mikolaj 'lich' Halber +Date: Sat, 16 Jan 2016 01:34:10 +0000 +Subject: Added Haiku paths system + + +diff --git a/src/arch/beos/archdep.c b/src/arch/beos/archdep.c +index 1b02f7b..64b4df9 100755 +--- a/src/arch/beos/archdep.c ++++ b/src/arch/beos/archdep.c +@@ -60,6 +60,8 @@ + + #ifdef __HAIKU__ + #include ++#include ++#include + #endif + + #include "archdep.h" +@@ -122,8 +124,14 @@ static char *boot_path = NULL; + const char *archdep_boot_path(void) + { + if (boot_path == NULL) { ++ #ifdef __HAIKU__ ++ char haiku_path[B_PATH_NAME_LENGTH]; ++ find_directory(B_SYSTEM_SETTINGS_DIRECTORY, 0, true, haiku_path, sizeof(haiku_path)-strlen("/VICE/")); ++ strcat(haiku_path,"/VICE/"); ++ boot_path = haiku_path; ++ #else + util_fname_split(argv0, &boot_path, NULL); +- ++ #endif + /* This should not happen, but you never know... */ + if (boot_path == NULL) { + boot_path = lib_stralloc("./xxx"); +-- +2.2.2 + diff --git a/games-emulation/vice/vice-2.4.24.recipe b/games-emulation/vice/vice-2.4.24.recipe new file mode 100644 index 000000000..e36cc6014 --- /dev/null +++ b/games-emulation/vice/vice-2.4.24.recipe @@ -0,0 +1,103 @@ +SUMMARY="An emulator for the Commodore64 computers" +DESCRIPTION="Emulates the C64, the C64DTV, the C128, the VIC20, almost all \ +PET models, the PLUS4 and the CBM-II (aka C610)." +HOMEPAGE="http://vice-emu.sourceforge.net/" +COPYRIGHT="1998-2012 Dag Lem + 1999-2012 Andreas Matthies + 1999-2012 Martin Pottendorfer + 2005-2012 Marco van den Heuvel + 2006-2012 Christian Vogelgsang + 2007-2012 Fabrizio Gennari + 2007-2012 Daniel Kahlin + 2009-2012 Groepaz + 2009-2012 Ingo Korb + 2009-2012 Errol Smith + 2010-2012 Olaf Seibert + 2011-2012 Marcus Sutton + 2011-2012 Ulrich Schulz + 2011-2012 Stefan Haubenthal + 2011-2012 Thomas Giesel + 2011-2012 Kajtar Zsolt + 2012-2012 Benjamin 'BeRo' Rosseaux + 2000-2011 Spiro Trikaliotis + 1998-2010 Tibor Biczo + 1998-2010 Andreas Boose + 2007-2010 M. Kiesel + 2007-2011 Hannu Nuotio + 1999-2007 Andreas Dehmel + 2003-2005 David Hansel + 2000-2004 Markus Brenner + 1999-2004 Thomas Bretz + 1997-2001 Daniel Sladic + 1996-1999 Ettore Perazzoli + 1996-1999 Andre Fachat + 1993-1994, 1997-1999 Teemu Rantanen + 1993-1996 Jouko Valta" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="http://sourceforge.net/projects/vice-emu/files/development-releases/vice-2.4.24.tar.gz" +CHECKSUM_SHA256="24e37b4fa268d6034517e41f1802a311af35a5c3a31059c84b6c53e33d5cb59d" +PATCHES="vice-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + vice$secondaryArchSuffix = $portVersion + cmd:c1541 + cmd:cartconv + cmd:vsid + cmd:x128 + cmd:x64 + cmd:x64dtv + cmd:x64sc + cmd:xcbm2 + cmd:xcbm5x0 + cmd:xpet + cmd:xplus4 + cmd:xscpu64 + cmd:xvic + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:autoheader + cmd:automake + cmd:bison + cmd:find + cmd:flex + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +GLOBAL_WRITABLE_FILES=" + settings/VICE directory keep-old + " + +BUILD() +{ + ./autogen.sh + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make bindist + mkdir -p $binDir + mv $sourceDir/BeVICE-2.4.24.x86/x* \ + $sourceDir/BeVICE-2.4.24.x86/vsid \ + $sourceDir/BeVICE-2.4.24.x86/cartconv \ + $sourceDir/BeVICE-2.4.24.x86/c1541 \ + $binDir/ + mkdir -p $settingsDir/VICE + mv $sourceDir/BeVICE-2.4.24.x86/* $settingsDir/VICE +}