diff options
Diffstat (limited to 'devel/sfml/files/patch-src-SFML-Makefile')
-rw-r--r-- | devel/sfml/files/patch-src-SFML-Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/devel/sfml/files/patch-src-SFML-Makefile b/devel/sfml/files/patch-src-SFML-Makefile new file mode 100644 index 000000000000..dcd378ae19e6 --- /dev/null +++ b/devel/sfml/files/patch-src-SFML-Makefile @@ -0,0 +1,40 @@ +--- src/SFML/Makefile.orig 2009-05-28 19:57:08.000000000 +0400 ++++ src/SFML/Makefile 2009-07-07 20:02:57.000000000 +0400 +@@ -4,7 +4,7 @@ + ifeq ($(DEBUGBUILD), yes)
+ DEBUGFLAGS = -g -DDEBUG
+ else
+- DEBUGFLAGS = -O2 -DNDEBUG
++ DEBUGFLAGS =
+ endif
+
+ ifeq ($(STATIC), no)
+@@ -15,11 +15,11 @@ + LINKFLAGS =
+ endif
+
+-export CC = gcc
+-export CPP = g++
+-export CFLAGS = -W -Wall -pedantic -I../../../include -I../../ $(DEBUGFLAGS) $(BUILDFLAGS)
+-export CFLAGSEXT = -I../../../include -I../.. $(DEBUGFLAGS) $(BUILDFLAGS)
+-export LDFLAGS = $(LINKFLAGS)
++export CC ?= gcc
++export CXX ?= g++
++export CFLAGS += -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 -I../../../include -I../.. $(DEBUGFLAGS) $(BUILDFLAGS)
++export CXXFLAGS += -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 -W -Wall -pedantic -I../../../include -I../../ $(DEBUGFLAGS) $(BUILDFLAGS)
++export LDFLAGS = -L${LOCALBASE}/lib $(LINKFLAGS)
+ export LIBPATH = ../../../lib
+ export VERSION = 1.5
+ export CP = cp
+@@ -27,9 +27,9 @@ + export LNFLAGS = -s -f
+ export AR = ar
+ export ARFLAGS = rcs
+-export DESTDIR = /usr
++export DESTDIR = ${PREFIX}
+ export DESTLIBDIR = $(DESTDIR)/lib
+-export DESTINCDIR = $(DESTDIR)/include
++export DESTINCDIR = $(DESTDIR)/include/SFML
+
+ all: sfml-system sfml-window sfml-network sfml-graphics sfml-audio
+
|