updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / bombermaaan / bombermaaan-Makefiles.patch
blobb20aea7c10dae759bb99dd4ea61232bc7fa7fc61
1 diff -ru bombermaaan.orig/Bombermaaan/Makefile bombermaaan/Bombermaaan/Makefile
2 --- bombermaaan.orig/Bombermaaan/Makefile 2008-10-18 13:26:06.000000000 +0200
3 +++ bombermaaan/Bombermaaan/Makefile 2008-10-25 14:55:18.000000000 +0200
4 @@ -14,6 +14,7 @@
5 LIBS = -L../RESGEN $(SDL_LDFLAGS) -lbombermaaan
6 CXXINCS = -I./ -I$(TINYXML_PATH)
7 BIN = Bombermaaan
8 +INSTALL = install
9 STRIP = strip
10 CXXFLAGS = $(CXXINCS) $(SDL_CFLAGS) -Wall -O2
11 ifeq ($(DEBUG),1)
12 @@ -35,8 +36,8 @@
13 $(RM) $(LINKOBJ) $(BIN) $(DEPENDFILE) *~
15 install: all
16 - mkdir -p $(prefix)/bin
17 - $(INSTALL) $(BIN) $(prefix)/bin
18 + mkdir -p $(DESTDIR)$(prefix)/bin
19 + $(INSTALL) $(BIN) $(DESTDIR)$(prefix)/bin
21 uninstall: all
22 $(RM) $(prefix)/bin/$(BIN)
23 diff -ru bombermaaan.orig/RESGEN/Makefile bombermaaan/RESGEN/Makefile
24 --- bombermaaan.orig/RESGEN/Makefile 2008-10-18 13:26:08.000000000 +0200
25 +++ bombermaaan/RESGEN/Makefile 2008-10-25 21:53:17.000000000 +0200
26 @@ -30,7 +30,10 @@
27 $(RM) $(BIN) $(OBJ) $(RESGENBIN) ResData.c $(BIN) $(BASENAME) $(BIN).$(REVISION) *~
29 install: all
30 - $(INSTALL) $(BIN) $(BIN).$(REVISION) $(prefix)/lib
31 + mkdir -p $(DESTDIR)$(prefix)/lib
32 + $(INSTALL) $(BIN).$(REVISION) $(DESTDIR)$(prefix)/lib
33 + cd $(DESTDIR)$(prefix)/lib && $(SYMLINK) $(BIN).$(REVISION) $(BIN)
34 + cd $(DESTDIR)$(prefix)/lib && $(SYMLINK) $(BIN).$(REVISION) $(BASENAME)
36 uninstall: all
37 $(RM) $(prefix)/lib/$(BIN) $(prefix)/lib/$(BIN).$(REVISION)