diff --git a/app-emulation/nesalizer/nesalizer-1.0~git.recipe b/app-emulation/nesalizer/nesalizer-1.0~git.recipe new file mode 100644 index 000000000..aca06febe --- /dev/null +++ b/app-emulation/nesalizer/nesalizer-1.0~git.recipe @@ -0,0 +1,46 @@ +SUMMARY="SDL-based NES emulator" +DESCRIPTION="A work-in-progress NES emulator with a real-time rewind \ +feature that correctly reverses sound." +HOMEPAGE="https://github.com/ulfalizer/nesalizer" +COPYRIGHT="2013-2016 Ulf Magnusson" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="5bb045845a5cc829a78b7384f848fdd886cd98c8" +SOURCE_URI="https://github.com/ulfalizer/nesalizer/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="4282cb0e4af0585af4a594dfa30b2e350dd0efc39e5bc2d8312f637f50397107" +SOURCE_DIR="nesalizer-$srcGitRev" +PATCHES="nesalizer-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + nesalizer$secondaryArchSuffix = $portVersion + app:Nesalizer + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libexecinfo$secondaryArchSuffix + lib:libsdl2_2.0$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libexecinfo$secondaryArchSuffix + devel:libsdl2_2.0$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + make CONF=release $jobArgs +} + +INSTALL() +{ + make CONF=release INSTALL_DIR=$prefix/bin +} diff --git a/app-emulation/nesalizer/patches/nesalizer-1.0~git.patchset b/app-emulation/nesalizer/patches/nesalizer-1.0~git.patchset new file mode 100644 index 000000000..f3f4215b2 --- /dev/null +++ b/app-emulation/nesalizer/patches/nesalizer-1.0~git.patchset @@ -0,0 +1,22 @@ +From d80393c0a65963999267775fe01b6eb231072c07 Mon Sep 17 00:00:00 2001 +From: Panagiotis Vasilopoulos +Date: Wed, 18 Dec 2019 20:19:20 +0000 +Subject: replaced lrt with lexecinfo + + +diff --git a/Makefile b/Makefile +index 527a3d0..b74a902 100644 +--- a/Makefile ++++ b/Makefile +@@ -58,7 +58,7 @@ c_objects = $(addprefix $(BUILD_DIR)/,$(c_sources:=.o)) + objects = $(c_objects) $(cpp_objects) + deps = $(addprefix $(BUILD_DIR)/,$(c_sources:=.d) $(cpp_sources:=.d)) + +-LDLIBS := $(shell sdl2-config --libs) -lrt ++LDLIBS := $(shell sdl2-config --libs) -lexecinfo + + ifeq ($(INCLUDE_DEBUGGER),1) + LDLIBS += -lreadline +-- +2.19.0 +