aboutsummaryrefslogtreecommitdiffstats
path: root/devel/sfml/files/patch-src-SFML-Makefile
blob: 3c765402c3ce9228bb0c1fcf81ffc3f04855b3c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- src/SFML/Makefile.orig  2010-01-27 17:00:37.000000000 +0300
+++ src/SFML/Makefile   2010-08-25 07:08:45.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../../../include -I../.. $(DEBUGFLAGS) $(BUILDFLAGS) -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
+export CXXFLAGS   += -W -Wall -pedantic -I../../../include -I../../ $(DEBUGFLAGS) $(BUILDFLAGS) -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
+export LDFLAGS    = -L${LOCALBASE}/lib $(LINKFLAGS)
 export LIBPATH    = ../../../lib
 export VERSION    = 1.6
 export CP         = cp
@@ -27,9 +27,9 @@
 export LNFLAGS    = -s -f
 export AR         = ar
 export ARFLAGS    = rcs
-export DESTDIR    = /usr/local
+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