Aranym: add recipe for version 1.1.0 (#5064)

* enabled cxx exceptions
* Moved config files to home/config/settings tree
* broken on x86_gcc2
This commit is contained in:
Gabriele Baldassarre
2021-02-26 08:07:53 +01:00
committed by GitHub
parent 49b50262a5
commit 9aed62328c
2 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
SUMMARY="Atari Running on Any Machine"
DESCRIPTION="ARAnyM (Atari Running on Any Machine) is a multiplatform virtual \
machine for running Atari ST/TT/Falcon operating systems and applications."
HOMEPAGE="https://aranym.github.io/"
COPYRIGHT="2001-2014 ARAnyM developer team"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/aranym/aranym/archive/ARANYM_${portVersion//./_}.tar.gz"
CHECKSUM_SHA256="1636cf9ec68bd2089f537e3b5e82d04fafec61a4f8fb5e216a263d357e935b63"
SOURCE_FILENAME="anarym-$portVersion.tar.gz"
SOURCE_DIR="aranym-ARANYM_${portVersion//./_}"
PATCHES="aranym-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86_64"
PROVIDES="
aranym = $portVersion
app:ARAnyM = $portVersion
cmd:aranym = $portVersion
"
REQUIRES="
haiku
lib:libsdl
lib:libsdl_image
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
devel:libSDL_image
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc
cmd:make
"
BUILD()
{
WITHDISDIP=""
if [ $effectiveTargetArchitecture == x86_gcc2 ]; then
WITHDISDIP="--enable-disdip"
fi
NO_CONFIGURE=1 ./autogen.sh
export CXXFLAGS="$CXXFLAGS -Wno-unused-function -Wno-unused-variable"
export CFLAGS="$CFLAGS -Wno-unused-function -Wno-unused-variable"
runConfigure ./configure --enable-fpe=uae --enable-cxx-exceptions $WITHDISDIP
make $jobArgs
}
INSTALL()
{
mkdir -p $docDir
make install
mimeset $prefix/bin/aranym
addAppDeskbarSymlink /bin/aranym ARAnyM
}

View File

@@ -0,0 +1,21 @@
From a46c58e7ce229a6de67d03a1cb751494d4731c51 Mon Sep 17 00:00:00 2001
From: Gabriele Baldassarre <gabriele@gabrielebaldassarre.com>
Date: Sun, 14 Jun 2020 23:28:00 +0200
Subject: Haiku proper path to config folder
diff --git a/configure.ac b/configure.ac
index 4c5fd67..59222c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -519,6 +519,7 @@ case "$host_os" in
AC_PATH_PROG(BEOS_SETVERSION, setversion, [AC_MSG_ERROR([setversion not found.])])
WANT_UNIXSERIALPORT=no
ac_cv_tun_tap_support=no
+ AC_DEFINE([ARANYMHOME], "config/settings/aranym")
;;
*)
;;
--
2.26.0