--- 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 = ${STAGEDIR}${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