diff --git a/games-emulation/atari++/atari++-1.73.recipe b/games-emulation/atari++/atari++-1.73.recipe new file mode 100644 index 000000000..1f494a0e3 --- /dev/null +++ b/games-emulation/atari++/atari++-1.73.recipe @@ -0,0 +1,73 @@ +SUMMARY="Emulator of Atari 8-bit system" +DESCRIPTION="The Atari++ Emulator is a Unix based emulator of the Atari eight \ +bit computers, namely the Atari 400 and 800, the Atari 400XL, 800XL and \ +130XE, and the Atari 5200 game console. The emulator is auto-configurable and \ +will compile on a variety of systems (Linux, Solaris, Irix). Its emulation \ +features are stunning: + * Cycle precise emulation; this includes correct emulation of horizontal \ +kernels and programs that modify chip registers within a horizontal line. \ +In a less technical language, software making use of advanced displaying \ +techniques will be emulated correctly. + * Emulation of an advanced 1050 disk drive including single, double and \ +enhanced density. The emulator not only understands .atr and .xfd files, \ +but comes with a mini-boot loader that allows you to boot from binary load \ +files (.exe and .com)." +HOMEPAGE="http://xl-project.com/" +COPYRIGHT="2004 Thomas Richter" +SRC_URI="http://www.xl-project.com/download/atari++_1.73.tar.gz" +CHECKSUM_SHA256="b41095eeb6362806ddcfa9c59ca319b873fb9eed3bf7a78ad2f2848300e4b3f8" +SOURCE_DIR="atari++" +PATCHES="atari++-$portVersion.patch" +REVISION="1" +LICENSE="GNU GPL v1" + +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +else + ARCHITECTURES="$ARCHITECTURES !x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + atari++$secondaryArchSuffix = $portVersion + cmd:atari++ = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libsdl_1.2$secondaryArchSuffix + lib:libpng$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libsdl_1.2$secondaryArchSuffix >= 0.11.4 + devel:libpng$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:autoheader + cmd:which + cmd:sdl_config$secondaryArchSuffix + cmd:awk + cmd:make + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + " + +BUILD() +{ + autoreconf + runConfigure --omit-dirs binDir ./configure --bindir=$prefix/bin + make $jobArgs +} + +INSTALL() +{ + make install + addAppDeskbarSymlink $prefix/bin/atari++ "Atari++" +} diff --git a/games-emulation/atari++/patches/atari++-1.73.patch b/games-emulation/atari++/patches/atari++-1.73.patch new file mode 100644 index 000000000..5621f6127 --- /dev/null +++ b/games-emulation/atari++/patches/atari++-1.73.patch @@ -0,0 +1,25 @@ +From 6c18d36b30e6eefe9a757ca9f6c3505d9218e5f3 Mon Sep 17 00:00:00 2001 +From: Augustin Cavalier +Date: Thu, 18 Dec 2014 12:35:36 -0500 +Subject: [PATCH] Fix autoconf script to include the proper header for timeval. + +--- + configure.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index 76e160d..56c731f 100644 +--- a/configure.in ++++ b/configure.in +@@ -159,7 +159,7 @@ AC_CHECK_FUNCS([gettimeofday isascii memchr memmove memset select strcasecmp str + AC_CHECK_FUNCS([time localtime snprintf vsnprintf usleep select getenv isatty chmod]) + AC_CHECK_FUNCS([tcsetattr tcgetattr tcflush tcdrain cfmakeraw cfsetospeed cfsetispeed]) + AC_CHECK_FUNCS([ioctl open creat close read write unlink fileno]) +-AC_CHECK_TYPE([struct timeval],[AC_DEFINE(HAS_STRUCT_TIMEVAL,[1],[Define to 1 if struct timeval is available])]) ++AC_CHECK_TYPE([struct timeval],[AC_DEFINE(HAS_STRUCT_TIMEVAL,[1],[Define to 1 if struct timeval is available])],[],[[#include ]]) + # + # + # Check for where X11 could be +-- +1.8.3.4 +