Skip to content

Commit

Permalink
games-action/blackvoxel: Patched makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Abdelrahman Sarhan <[email protected]>
  • Loading branch information
Abdulsarhan committed Oct 21, 2024
1 parent a660c54 commit a31478b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions games-action/blackvoxel/blackvoxel-2.50.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ RDEPEND="${DEPEND}"

PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
"${FILESDIR}"/${P}-makeopts.patch
"${FILESDIR}"/${P}-savedir.patch
"${FILESDIR}"/${P}-strict-aliasing.patch
)
Expand Down
12 changes: 12 additions & 0 deletions games-action/blackvoxel/files/blackvoxel-2.50-makeopts.patch
Original file line number Diff line number Diff line change
@@ -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...

0 comments on commit a31478b

Please sign in to comment.