aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdelrahman Sarhan <abdulrahmanayman1@gmail.com>2024-10-23 01:07:02 -0400
committerAbdelrahman Sarhan <abdulrahmanayman1@gmail.com>2024-10-23 01:10:07 -0400
commit9bc9a5a2be8cf3cf40c64456e7fc393756b3a534 (patch)
treee60c6a6d8bd577fb5d5531a3a477f7d527341f68 /games-action
parentnet-mail/dovecot-fts-flatcurve: new package, add 1.0.5 (diff)
downloadguru-9bc9a5a2be8cf3cf40c64456e7fc393756b3a534.tar.gz
guru-9bc9a5a2be8cf3cf40c64456e7fc393756b3a534.tar.bz2
guru-9bc9a5a2be8cf3cf40c64456e7fc393756b3a534.zip
games-action/blackvoxel: Implemented patches in a better way.
Signed-off-by: Abdelrahman Sarhan <abdulrahmanayman1@gmail.com>
Diffstat (limited to 'games-action')
-rw-r--r--games-action/blackvoxel/files/blackvoxel-2.50-makefile.patch38
1 files changed, 17 insertions, 21 deletions
diff --git a/games-action/blackvoxel/files/blackvoxel-2.50-makefile.patch b/games-action/blackvoxel/files/blackvoxel-2.50-makefile.patch
index 8bad61a75..2a634d05c 100644
--- a/games-action/blackvoxel/files/blackvoxel-2.50-makefile.patch
+++ b/games-action/blackvoxel/files/blackvoxel-2.50-makefile.patch
@@ -1,40 +1,36 @@
-diff --git a/Makefile b/Makefile
-index 3e5933a..840d26a 100644
+diff --git a/Makefile b/Makefile2
+index 3e5933a..c8787d8 100644
--- a/Makefile
+++ b/Makefile
-@@ -56,7 +56,7 @@ OBJ= $(SRC:src/%.cpp=obj/%.o)
- ifeq ($(OS),Windows_NT)
- CPU_BITS=32
- CXXFLAGS+= -O3 -c -fmessage-length=0 -march=i686
-- LDFLAGS+= -s -Xlinker --large-address-aware -mwindows -L"src/sc_Squirrel3/lib" -lmingw32 -lSDLmain -lSDL -llibglew32 -lglu32 -lopengl32 -llibglut -lsquirrel -lsqstdlib
-+ LDFLAGS+= -Xlinker --large-address-aware -mwindows -L"src/sc_Squirrel3/lib" -lmingw32 -lSDLmain -lSDL -llibglew32 -lglu32 -lopengl32 -llibglut -lsquirrel -lsqstdlib
- else
- # Unix like operating systems
- CPU_BITS= $(shell getconf LONG_BIT)
-@@ -65,18 +65,18 @@ else
+@@ -64,19 +64,19 @@
+ KERNELNAME =$(shell uname -s)
ifeq ($(KERNELNAME),Linux)
- CXXFLAGS+= -O3 -c -fmessage-length=0
+- CXXFLAGS+= -O3 -c -fmessage-length=0
- LDFLAGS+=-s -zrelro -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
-+ LDFLAGS+=-L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
++ CXXFLAGS+= -c
++ LDFLAGS+= -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
else ifeq ($(KERNELNAME), FreeBSD)
# To be done...
- CXXFLAGS+= -O3 -c -fmessage-length=0
+- CXXFLAGS+= -O3 -c -fmessage-length=0
- LDFLAGS+=-s -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
-+ LDFLAGS+=-L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
++ CXXFLAGS+= -c
++ LDFLAGS+= -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
else ifeq ($(KERNELNAME), Darwin)
- CXXFLAGS+= -O3 -c -fmessage-length=0
+- CXXFLAGS+= -O3 -c -fmessage-length=0
- LDFLAGS+=-s -L"src/sc_Squirrel3/lib" -L"/usr/local/Cellar/glew" -L"/usr/local/Cellar/sdl" -I"/usr/local/Cellar/glew" -I"/usr/local/Cellar/sdl" -framework Cocoa -framework OpenGL -lSDLmain -lSDL -lGLEW -lsquirrel -lsqstdlib
-+ LDFLAGS+=-L"src/sc_Squirrel3/lib" -L"/usr/local/Cellar/glew" -L"/usr/local/Cellar/sdl" -I"/usr/local/Cellar/glew" -I"/usr/local/Cellar/sdl" -framework Cocoa -framework OpenGL -lSDLmain -lSDL -lGLEW -lsquirrel -lsqstdlib
++ CXXFLAGS+= -c
++ LDFLAGS+= -L"src/sc_Squirrel3/lib" -L"/usr/local/Cellar/glew" -L"/usr/local/Cellar/sdl" -I"/usr/local/Cellar/glew" -I"/usr/local/Cellar/sdl" -framework Cocoa -framework OpenGL -lSDLmain -lSDL -lGLEW -lsquirrel -lsqstdlib
else
# Unknow kernel... trying default flags
- CXXFLAGS+= -O3 -c -fmessage-length=0
+- CXXFLAGS+= -O3 -c -fmessage-length=0
- LDFLAGS+=-s -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
-+ LDFLAGS+=-L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
++ CXXFLAGS+= -c
++ LDFLAGS+= -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
endif
endif
-@@ -94,11 +94,11 @@ installable: BV_DATA_LOCATION_DIR=$(BV_DATA_INSTALL_DIR)
+@@ -94,11 +94,11 @@
installable: all
squirrel: