mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
anura, new recipe (#9644)
This commit is contained in:
105
games-engines/anura/anura-4.0.2.recipe
Normal file
105
games-engines/anura/anura-4.0.2.recipe
Normal file
@@ -0,0 +1,105 @@
|
||||
SUMMARY="A fully-featured game engine, the tech behind the spectacular Frogatto & Friends"
|
||||
DESCRIPTION="Anura is the tech behind the spectacular Frogatto & Friends. It is a \
|
||||
fully-featured game engine, free for commercial and non-commercial use."
|
||||
HOMEPAGE="https://github.com/anura-engine/anura"
|
||||
COPYRIGHT="2003-2013 by David White
|
||||
2014-2019 Omar Cornut"
|
||||
LICENSE="BSD (3-clause)
|
||||
MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0a70229efc108a85fa07c6008aaa2b4bd9ddc3c14621d4129a9264c52eeb55d7"
|
||||
SOURCE_FILENAME="anura-v$portVersion.tar.gz"
|
||||
SOURCE_DIR="anura-$portVersion"
|
||||
srcGitRev_2="2379a8b3f21642f715a18749fbd0345c4acafa79"
|
||||
SOURCE_URI_2="https://github.com/anura-engine/imgui/archive/$srcGitRev_2.tar.gz"
|
||||
CHECKSUM_SHA256_2="dbfbb66ad943630c817b275cb5dd7efa50c79f079add0c1f6ded9512610f6e4c"
|
||||
SOURCE_FILENAME_2="imgui-$srcGitRev_2.tar.gz"
|
||||
PATCHES="anura-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
anura$secondaryArchSuffix = $portVersion
|
||||
cmd:anura = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libboost_filesystem$secondaryArchSuffix
|
||||
lib:libboost_locale$secondaryArchSuffix
|
||||
lib:libboost_regex$secondaryArchSuffix
|
||||
lib:libboost_system$secondaryArchSuffix
|
||||
lib:libcairo$secondaryArchSuffix
|
||||
lib:libexecinfo$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libGLEW$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libicudata$secondaryArchSuffix
|
||||
lib:libicui18n$secondaryArchSuffix
|
||||
lib:libicuuc$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_image_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_ttf_2.0$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libvorbisfile$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:glm
|
||||
devel:libboost_filesystem$secondaryArchSuffix >= 1.83.0
|
||||
devel:libboost_locale$secondaryArchSuffix >= 1.83.0
|
||||
devel:libboost_regex$secondaryArchSuffix >= 1.83.0
|
||||
devel:libboost_system$secondaryArchSuffix >= 1.83.0
|
||||
devel:libcairo$secondaryArchSuffix
|
||||
devel:libexecinfo$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libGLEW$secondaryArchSuffix
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libicudata$secondaryArchSuffix
|
||||
devel:libicui18n$secondaryArchSuffix
|
||||
devel:libicuuc$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libSDL2_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_image_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_ttf_2.0$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libvorbisfile$secondaryArchSuffix
|
||||
devel:libX11$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage anura$secondaryArchSuffix \
|
||||
$prefix/bin/anura
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p imgui
|
||||
cp -r $sourceDir2/imgui-$srcGitRev_2/* imgui
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# setup directories
|
||||
installDir=$dataDir/anura
|
||||
mkdir -p $prefix/bin $installDir
|
||||
|
||||
# install base engine package
|
||||
cp -a anura $prefix/bin
|
||||
cp -r data $installDir
|
||||
cp -r images $installDir
|
||||
cp -r music $installDir
|
||||
cp -r modules $installDir
|
||||
}
|
||||
45
games-engines/anura/patches/anura-4.0.2.patchset
Normal file
45
games-engines/anura/patches/anura-4.0.2.patchset
Normal file
@@ -0,0 +1,45 @@
|
||||
From dc4fa36f66e206f64d363a34cabadb9f2459bc61 Mon Sep 17 00:00:00 2001
|
||||
From: Begasus <begasus@gmail.com>
|
||||
Date: Tue, 17 Oct 2023 11:27:20 +0200
|
||||
Subject: Don't use -Werror
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d2bb2e6..80e8edd 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -46,7 +46,7 @@ ifeq ($(OPTIMIZE),yes)
|
||||
BASE_CXXFLAGS += -O2
|
||||
endif
|
||||
|
||||
-BASE_CXXFLAGS += -Wall -Werror
|
||||
+BASE_CXXFLAGS += -Wall
|
||||
|
||||
ifneq (,$(findstring clang, `$(CXX)`))
|
||||
SANITIZE_UNDEFINED=
|
||||
--
|
||||
2.42.0
|
||||
|
||||
|
||||
From 4c31c0a144685c72d87591c277494e145c1f328c Mon Sep 17 00:00:00 2001
|
||||
From: Begasus <begasus@gmail.com>
|
||||
Date: Tue, 17 Oct 2023 11:29:05 +0200
|
||||
Subject: Fix linking errors
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 80e8edd..15aac7e 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -111,7 +111,7 @@ endif
|
||||
# Linker library options.
|
||||
LIBS := $(shell pkg-config --libs x11 gl ) \
|
||||
$(shell pkg-config --libs $(MANDATORY_LIBS)) \
|
||||
- -logg -lvorbis -lvorbisfile -lrt -lstdc++ -lm
|
||||
+ -logg -lvorbis -lvorbisfile -lstdc++ -lm -lnetwork -lGLEW -lSDL2 -lfreetype -lz -lGL -lSDL2_ttf -lSDL2_image -lexecinfo
|
||||
|
||||
# libvpx check
|
||||
USE_LIBVPX?=$(shell pkg-config --exists vpx && echo yes)
|
||||
--
|
||||
2.42.0
|
||||
|
||||
Reference in New Issue
Block a user