diff options
Diffstat (limited to 'games-puzzle/anagramarama/files/anagramarama-0.2-gentoo.patch')
-rw-r--r-- | games-puzzle/anagramarama/files/anagramarama-0.2-gentoo.patch | 44 |
1 files changed, 25 insertions, 19 deletions
diff --git a/games-puzzle/anagramarama/files/anagramarama-0.2-gentoo.patch b/games-puzzle/anagramarama/files/anagramarama-0.2-gentoo.patch index fb60615055db..77ef37bd4046 100644 --- a/games-puzzle/anagramarama/files/anagramarama-0.2-gentoo.patch +++ b/games-puzzle/anagramarama/files/anagramarama-0.2-gentoo.patch @@ -1,34 +1,40 @@ ---- a/makefile.old 2009-02-08 18:24:33.000000000 +0100 -+++ b/makefile 2009-02-08 18:29:12.000000000 +0100 -@@ -1,5 +1,4 @@ +--- a/makefile ++++ b/makefile +@@ -1,6 +1,13 @@ -LFLAGS=-Wall -funroll-loops -fomit-frame-pointer -pipe -O9 -CFLAGS=-Wall `sdl-config --cflags --libs` -funroll-loops -fomit-frame-pointer -pipe -O9 -lSDL_mixer -+LDLIBS=`sdl-config --cflags --libs` -lSDL_mixer - CC=gcc +-CC=gcc ++PKG_CONFIG ?= pkg-config ++ ++SDL_CFLAGS = `$(PKG_CONFIG) --cflags sdl` ++SDL_LIBS = `$(PKG_CONFIG) --libs sdl` ++ ++SDL_MIXER_CFLAGS = `$(PKG_CONFIG) --cflags SDL_mixer` ++SDL_MIXER_LIBS = `$(PKG_CONFIG) --libs SDL_mixer` ++ ++LDLIBS=$(SDL_LIBS) $(SDL_MIXER_LIBS) ++CPPFLAGS+=$(SDL_CFLAGS) $(SDL_MIXER_CFLAGS) C_FILES=src/dlb.c src/linked.c src/sprite.c src/ag.c -@@ -9,19 +8,19 @@ + OBJ_FILES=src/dlb.o src/linked.o src/sprite.o src/ag.o +@@ -9,19 +16,7 @@ all:ag ag: $(OBJ_FILES) - $(CC) $(CFLAGS) -o $(OUT_FILE) $(OBJ_FILES) -+ $(CC) $(LDFLAGS) -o $(OUT_FILE) $(OBJ_FILES) $(LDLIBS) - - src/dlb.o: src/dlb.c +- +-src/dlb.o: src/dlb.c - $(CC) $(LFLAGS) -c -o $@ $^ -+ $(CC) $(CFLAGS) -c -o $@ $^ - - src/linked.o: src/linked.c +- +-src/linked.o: src/linked.c - $(CC) $(LFLAGS) -c -o $@ $^ -+ $(CC) $(CFLAGS) -c -o $@ $^ - - src/sprite.o: src/sprite.c +- +-src/sprite.o: src/sprite.c - $(CC) $(LFLAGS) -c -o $@ $^ -+ $(CC) $(CFLAGS) -c -o $@ $^ - - src/ag.o: src/ag.c +- +-src/ag.o: src/ag.c - $(CC) $(LFLAGS) -c -o $@ $^ -+ $(CC) $(CFLAGS) -c -o $@ $^ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(OUT_FILE) $(OBJ_FILES) $(LDLIBS) clean: rm -f src/*.o |