mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:37:47 +00:00
Ports: Add quake3 port :^)
This commit is contained in:
parent
c08dfe063a
commit
e2f1da8cec
11 changed files with 571 additions and 0 deletions
|
@ -0,0 +1,125 @@
|
|||
From 7658f60b1a064ca08da8e71c4f44c4505df6f571 Mon Sep 17 00:00:00 2001
|
||||
From: Jesse Buhagiar <jooster669@gmail.com>
|
||||
Date: Fri, 25 Mar 2022 09:39:21 +1100
|
||||
Subject: [PATCH 1/8] Meta: Refactor Makefile to support Serenity
|
||||
|
||||
---
|
||||
Makefile | 36 ++++++++++++++++--------------------
|
||||
1 file changed, 16 insertions(+), 20 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 9e535559..b26ceb7f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -3,8 +3,8 @@
|
||||
#
|
||||
# GNU Make required
|
||||
#
|
||||
-COMPILE_PLATFORM=$(shell uname | sed -e 's/_.*//' | tr '[:upper:]' '[:lower:]' | sed -e 's/\//_/g')
|
||||
-COMPILE_ARCH=$(shell uname -m | sed -e 's/i.86/x86/' | sed -e 's/^arm.*/arm/')
|
||||
+COMPILE_PLATFORM=serenity
|
||||
+COMPILE_ARCH=${SERENITY_ARCH}
|
||||
|
||||
#arm64 hack!
|
||||
ifeq ($(shell uname -m), arm64)
|
||||
@@ -35,13 +35,13 @@ ifndef BUILD_GAME_QVM
|
||||
BUILD_GAME_QVM =
|
||||
endif
|
||||
ifndef BUILD_BASEGAME
|
||||
- BUILD_BASEGAME =
|
||||
+ BUILD_BASEGAME =1
|
||||
endif
|
||||
ifndef BUILD_MISSIONPACK
|
||||
- BUILD_MISSIONPACK=
|
||||
+ BUILD_MISSIONPACK=0
|
||||
endif
|
||||
ifndef BUILD_RENDERER_OPENGL2
|
||||
- BUILD_RENDERER_OPENGL2=
|
||||
+ BUILD_RENDERER_OPENGL2=0
|
||||
endif
|
||||
ifndef BUILD_AUTOUPDATER # DON'T build unless you mean to!
|
||||
BUILD_AUTOUPDATER=0
|
||||
@@ -164,39 +164,39 @@ GENERATE_DEPENDENCIES=1
|
||||
endif
|
||||
|
||||
ifndef USE_OPENAL
|
||||
-USE_OPENAL=1
|
||||
+USE_OPENAL=0
|
||||
endif
|
||||
|
||||
ifndef USE_OPENAL_DLOPEN
|
||||
-USE_OPENAL_DLOPEN=1
|
||||
+USE_OPENAL_DLOPEN=0
|
||||
endif
|
||||
|
||||
ifndef USE_CURL
|
||||
-USE_CURL=1
|
||||
+USE_CURL=0
|
||||
endif
|
||||
|
||||
ifndef USE_CURL_DLOPEN
|
||||
ifdef MINGW
|
||||
USE_CURL_DLOPEN=0
|
||||
else
|
||||
- USE_CURL_DLOPEN=1
|
||||
+ USE_CURL_DLOPEN=0
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef USE_CODEC_VORBIS
|
||||
-USE_CODEC_VORBIS=1
|
||||
+USE_CODEC_VORBIS=0
|
||||
endif
|
||||
|
||||
ifndef USE_CODEC_OPUS
|
||||
-USE_CODEC_OPUS=1
|
||||
+USE_CODEC_OPUS=0
|
||||
endif
|
||||
|
||||
ifndef USE_MUMBLE
|
||||
-USE_MUMBLE=1
|
||||
+USE_MUMBLE=0
|
||||
endif
|
||||
|
||||
ifndef USE_VOIP
|
||||
-USE_VOIP=1
|
||||
+USE_VOIP=0
|
||||
endif
|
||||
|
||||
ifndef USE_FREETYPE
|
||||
@@ -505,10 +505,6 @@ ifeq ($(PLATFORM),darwin)
|
||||
ifeq ($(CROSS_COMPILING),1)
|
||||
# If CC is already set to something generic, we probably want to use
|
||||
# something more specific
|
||||
- ifneq ($(findstring $(strip $(CC)),cc gcc),)
|
||||
- CC=
|
||||
- endif
|
||||
-
|
||||
ifndef CC
|
||||
ifndef DARWIN
|
||||
# macOS 10.9 SDK
|
||||
@@ -817,11 +813,10 @@ ifeq ($(PLATFORM),freebsd)
|
||||
else # ifeq freebsd
|
||||
|
||||
#############################################################################
|
||||
-# SETUP AND BUILD -- OPENBSD
|
||||
+# SETUP AND BUILD -- SERENITY
|
||||
#############################################################################
|
||||
|
||||
-ifeq ($(PLATFORM),openbsd)
|
||||
-
|
||||
+ifeq ($(PLATFORM),serenity)
|
||||
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
|
||||
-pipe -DUSE_ICON -DMAP_ANONYMOUS=MAP_ANON
|
||||
CLIENT_CFLAGS += $(SDL_CFLAGS)
|
||||
@@ -1000,6 +995,7 @@ ifeq ($(PLATFORM),sunos)
|
||||
|
||||
else # ifeq sunos
|
||||
|
||||
+
|
||||
#############################################################################
|
||||
# SETUP AND BUILD -- GENERIC
|
||||
#############################################################################
|
||||
--
|
||||
2.35.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue