public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-fps/eduke32/files: eduke32-20130201.3453-QA.patch
@ 2013-02-02 18:36 Julian Ospald (hasufell)
  0 siblings, 0 replies; 2+ messages in thread
From: Julian Ospald (hasufell) @ 2013-02-02 18:36 UTC (permalink / raw
  To: gentoo-commits

hasufell    13/02/02 18:36:56

  Added:                eduke32-20130201.3453-QA.patch
  Log:
  initial import wrt #172183
  
  (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

Revision  Changes    Path
1.1                  games-fps/eduke32/files/eduke32-20130201.3453-QA.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/eduke32/files/eduke32-20130201.3453-QA.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/eduke32/files/eduke32-20130201.3453-QA.patch?rev=1.1&content-type=text/plain

Index: eduke32-20130201.3453-QA.patch
===================================================================
From: Julian Ospald <hasufell@gentoo.org>
Date: Sat Feb  2 01:16:21 UTC 2013
Subject: build system

	respect CC/CXX etc and CFLAGS/CXXFLAGS/LDFLAGS

--- eduke32_20130201-3453/Makefile
+++ eduke32_20130201-3453/Makefile
@@ -308,10 +308,10 @@
 endif
 
 COMPILER=$(CC) $(OURCONLYFLAGS)
-LINKER=$(L_CC)
+LINKER=$(L_CC) $(OURCFLAGS) $(OURCONLYFLAGS)
 ifneq ($(CPLUSPLUS),0)
     COMPILER=$(CXX) $(OURCXXFLAGS)
-    LINKER=$(L_CXX)
+    LINKER=$(L_CXX) $(OURCXXFLAGS)
 endif
 
 ifeq ($(PRETTY_OUTPUT),1)
--- eduke32_20130201-3453/Makefile.common
+++ eduke32_20130201-3453/Makefile.common
@@ -8,13 +8,14 @@
 PRETTY_OUTPUT ?= 1
 
 # Tools
-CC=gcc
-CXX=g++
-AS=nasm
-AR=ar
-RC=windres
-RANLIB=ranlib
-STRIP=strip
+CC ?= gcc
+CXX ?= g++
+AS ?= nasm
+AR ?= ar
+RC ?= windres
+RANLIB ?= ranlib
+STRIP ?= strip
+PKG_CONFIG ?= pkgconfig
 
 L_CC=$(CC)
 L_CXX=$(CXX)
@@ -152,7 +153,6 @@
 #  FORCEWARNINGS - 1 = do not disable any compiler warnings within the source
 #  KRANDDEBUG - 1 = include logging of krand() calls for debugging the demo system
 #  EFENCE  - 1 = compile with Electric Fence for malloc() debugging
-#  OPTLEVEL	- 0..3 = GCC optimization strategy
 #  LTO - 1 = enable link-time optimization, for GCC 4.5 and up
 #
 CPLUSPLUS?=0
@@ -163,7 +163,6 @@
 FORCEWARNINGS?=0
 EFENCE?=0
 DMALLOC?=0
-OPTLEVEL?=2
 PROFILER?=0
 MUDFLAP?=0
 
@@ -268,11 +267,10 @@
 
 
 # compiler flags etc.
-BASECFLAGS=
+BASECFLAGS = $(CFLAGS) -std=gnu89
 BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
-BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing
-BASEASFLAGS=-s #-g
-BASELDFLAGS=
+BASECXXFLAGS = $(CXXFLAGS) -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing
+BASELDFLAGS = $(LDFLAGS)
 
 
 ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4)))
@@ -300,14 +298,11 @@
         debug=-g
     else ifeq ($(PLATFORM), WII)
         debug=-g
-    else
-        debug=-ggdb
     endif
 endif
 
 ifneq (0,$(RELEASE))
     # Debugging disabled
-    debug+= -O$(OPTLEVEL)
     ifeq (0,$(CLANG))
         debug+= -funswitch-loops
         ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \< 4)))
@@ -330,7 +325,6 @@
     endif
 else
     # Debugging enabled
-    debug+= -O0
 
     ifeq (0,$(DEBUGANYWAY))
         debug+= -DDEBUGGINGAIDS
@@ -411,7 +405,7 @@
 
 #### Lunatic development, do not touch!
 LUNATIC=0
-LUAJIT=luajit
+LUAJIT=$(shell command -v luajit || command -v luajit-2 || command -v luajit-2.0)
 
 # for LJ headers:
 LUAJIT_WIN_SRC:= g:/mod/LuaJIT-2.0.0-beta8/src
@@ -424,14 +418,14 @@
     ifeq ($(PLATFORM),WINDOWS)
         BASECOMMONFLAGS+= -I$(LUAJIT_WIN_SRC)
     else
-        BASECOMMONFLAGS+= -I/usr/local/include/luajit-2.0
+        BASECOMMONFLAGS+= $(shell $(PKG_CONFIG) --cflags luajit 2>/dev/null || $(PKG_CONFIG) --cflags luajit-2.0)
     endif
     BASECOMMONFLAGS+= -I$(SRC)/lunatic -DLUNATIC
 
     ifeq ($(PLATFORM),WINDOWS)
         BASELIBS+= -lluajit
     else
-        BASELIBS+= -lluajit-5.1
+        BASELIBS+= $(shell $(PKG_CONFIG) --libs luajit 2>/dev/null || $(PKG_CONFIG) --libs luajit-2.0)
     endif
 endif
 
--- eduke32_20130201-3453/build/Makefile
+++ eduke32_20130201-3453/build/Makefile
@@ -166,13 +166,15 @@
 OURCOMMONFLAGS+= $(BUILDCOMMONFLAGS)
 
 COMPILER=$(CC) $(OURCONLYFLAGS)
-LINKER=$(L_CC)
+LINKER=$(L_CC) $(OURCFLAGS) $(OURCONLYFLAGS)
 ifneq ($(CPLUSPLUS),0)
     COMPILER=$(CXX) $(OURCXXFLAGS)
-    LINKER=$(L_CXX)
+    LINKER=$(L_CXX) $(OURCXXFLAGS)
 endif
 
+ifeq ($(PRETTY_OUTPUT),1)
 .SILENT:
+endif
 .PHONY: clean cleanutils veryclean all utils dxutils sdlutils printutils printsdlutils printdxutils enginelib editorlib
 
 # TARGETS





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in games-fps/eduke32/files: eduke32-20130201.3453-QA.patch
@ 2013-02-09 14:05 Julian Ospald (hasufell)
  0 siblings, 0 replies; 2+ messages in thread
From: Julian Ospald (hasufell) @ 2013-02-09 14:05 UTC (permalink / raw
  To: gentoo-commits

hasufell    13/02/09 14:05:48

  Modified:             eduke32-20130201.3453-QA.patch
  Log:
  fix build on clang
  
  (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

Revision  Changes    Path
1.2                  games-fps/eduke32/files/eduke32-20130201.3453-QA.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/eduke32/files/eduke32-20130201.3453-QA.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/eduke32/files/eduke32-20130201.3453-QA.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/eduke32/files/eduke32-20130201.3453-QA.patch?r1=1.1&r2=1.2

Index: eduke32-20130201.3453-QA.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/games-fps/eduke32/files/eduke32-20130201.3453-QA.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- eduke32-20130201.3453-QA.patch	2 Feb 2013 18:36:56 -0000	1.1
+++ eduke32-20130201.3453-QA.patch	9 Feb 2013 14:05:48 -0000	1.2
@@ -59,16 +59,15 @@
  PROFILER?=0
  MUDFLAP?=0
  
-@@ -268,11 +267,10 @@
- 
+@@ -269,10 +268,9 @@
  
  # compiler flags etc.
--BASECFLAGS=
-+BASECFLAGS = $(CFLAGS) -std=gnu89
- BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
+ BASECFLAGS=
+-BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
 -BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing
 -BASEASFLAGS=-s #-g
 -BASELDFLAGS=
++BASECONLYFLAGS = $(CFLAGS) -std=gnu89 -Wimplicit -Wdeclaration-after-statement
 +BASECXXFLAGS = $(CXXFLAGS) -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing
 +BASELDFLAGS = $(LDFLAGS)
  
@@ -143,3 +142,12 @@
  .PHONY: clean cleanutils veryclean all utils dxutils sdlutils printutils printsdlutils printdxutils enginelib editorlib
  
  # TARGETS
+@@ -265,7 +267,7 @@
+ 	if $(LINKER) -o $@ $^ $(OURLDFLAGS) $(UTILLIBS) -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL; then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
+ arttool$(EXESUFFIX): $(OBJ)/arttool.$o $(UTILADDOBJS)
+ 	$(ONESTEP_STATUS)
+-	if $(L_CXX) -o $@ $^ $(OURLDFLAGS) $(STATICSTDCPP) $(STDCPPLIB) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
++	if $(L_CXX) $(OURCXXFLAGS) -o $@ $^ $(OURLDFLAGS) $(STATICSTDCPP) $(STDCPPLIB) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
+ givedepth$(EXESUFFIX): $(OBJ)/givedepth.$o $(UTILADDOBJS)
+ 	$(ONESTEP_STATUS)
+ 	if $(LINKER) -o $@ $^ $(OURLDFLAGS) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-09 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-09 14:05 [gentoo-commits] gentoo-x86 commit in games-fps/eduke32/files: eduke32-20130201.3453-QA.patch Julian Ospald (hasufell)
  -- strict thread matches above, loose matches on Subject: below --
2013-02-02 18:36 Julian Ospald (hasufell)

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