mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Added recipe and patch for nesalizer (#4461)
This commit is contained in:
committed by
Sergei Reznikov
parent
1eda2f7b1e
commit
0ce0bc3219
46
app-emulation/nesalizer/nesalizer-1.0~git.recipe
Normal file
46
app-emulation/nesalizer/nesalizer-1.0~git.recipe
Normal file
@@ -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
|
||||
}
|
||||
22
app-emulation/nesalizer/patches/nesalizer-1.0~git.patchset
Normal file
22
app-emulation/nesalizer/patches/nesalizer-1.0~git.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From d80393c0a65963999267775fe01b6eb231072c07 Mon Sep 17 00:00:00 2001
|
||||
From: Panagiotis Vasilopoulos <hello@alwayslivid.com>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user