public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: games-action/blackvoxel/files/
@ 2024-10-23 10:25 David Roman
  0 siblings, 0 replies; only message in thread
From: David Roman @ 2024-10-23 10:25 UTC (permalink / raw
  To: gentoo-commits

commit:     9bc9a5a2be8cf3cf40c64456e7fc393756b3a534
Author:     Abdelrahman Sarhan <abdulrahmanayman1 <AT> gmail <DOT> com>
AuthorDate: Wed Oct 23 05:07:02 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Oct 23 05:10:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9bc9a5a2

games-action/blackvoxel: Implemented patches in a better way.

Signed-off-by: Abdelrahman Sarhan <abdulrahmanayman1 <AT> gmail.com>

 .../files/blackvoxel-2.50-makefile.patch           | 38 ++++++++++------------
 1 file 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: 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-23 10:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 10:25 [gentoo-commits] repo/proj/guru:master commit in: games-action/blackvoxel/files/ David Roman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox