commit: a31478be4496ecabc9d9f198f2561f0bc0cfdb9e
Author: Abdelrahman Sarhan <abdulrahmanayman1 <AT> gmail <DOT> com>
AuthorDate: Mon Oct 21 03:35:33 2024 +0000
Commit: Abdelrahman Sarhan <abdulrahmanayman1 <AT> gmail <DOT> com>
CommitDate: Mon Oct 21 03:35:33 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a31478be
games-action/blackvoxel: Patched makefile
Signed-off-by: Abdelrahman Sarhan <abdulrahmanayman1 <AT> gmail.com>
games-action/blackvoxel/blackvoxel-2.50.ebuild | 1 +
games-action/blackvoxel/files/blackvoxel-2.50-makeopts.patch | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/games-action/blackvoxel/blackvoxel-2.50.ebuild
b/games-action/blackvoxel/blackvoxel-2.50.ebuild
index 4cb5b62ec..9c9e5ecaf 100644
--- a/games-action/blackvoxel/blackvoxel-2.50.ebuild
+++ b/games-action/blackvoxel/blackvoxel-2.50.ebuild
@@ -27,6 +27,7 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-makeopts.patch
"${FILESDIR}"/${P}-savedir.patch
"${FILESDIR}"/${P}-strict-aliasing.patch
)
diff --git a/games-action/blackvoxel/files/blackvoxel-2.50-makeopts.patch
b/games-action/blackvoxel/files/blackvoxel-2.50-makeopts.patch
new file mode 100644
index 000000000..a1bbaa05f
--- /dev/null
+++ b/games-action/blackvoxel/files/blackvoxel-2.50-makeopts.patch
@@ -0,0 +1,12 @@
+--- a/Makefile
++++ b/Makefile
+@@ -64,7 +64,9 @@
+ KERNELNAME =$(shell uname -s)
+
+ ifeq ($(KERNELNAME),Linux)
++ CXXFLAGS:= $(shell emerge --info | grep -w CXXFLAGS=".*" | cut -d '"' -f2)
+ CXXFLAGS+= -c -fmessage-length=0
++ LDFLAGS:= $(shell emerge --info | grep -w LDFLAGS=".*" | cut -d '"' -f2)
+ LDFLAGS+=-L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel
-lsqstdlib
+ else ifeq ($(KERNELNAME), FreeBSD)
+ # To be done...