forked from ports/contrib
49 lines
2.1 KiB
Diff
49 lines
2.1 KiB
Diff
diff -pruN atanks.orig/Makefile atanks/Makefile
|
|
--- atanks.orig/Makefile 2008-08-16 20:47:21.349143726 +1000
|
|
+++ atanks/Makefile 2008-08-16 20:52:17.435142915 +1000
|
|
@@ -1,17 +1,19 @@
|
|
VERSION=2.8
|
|
export VERSION
|
|
FILENAME=atanks-${VERSION}
|
|
-INSTALL=/usr/bin/install -c
|
|
+INSTALL=/usr/bin/install
|
|
DISTCOMMON=atanks/*.dat atanks/COPYING atanks/README atanks/TODO atanks/Changelog atanks/BUGS atanks/Help.txt atanks/credits.txt atanks/gloat.txt atanks/instr.txt atanks/revenge.txt atanks/suicide.txt atanks/gloat.pt_BR.txt atanks/Help.pt_BR.txt atanks/revenge.pt_BR.txt atanks/suicide.pt_BR.txt atanks/revenge_fr.txt atanks/gloat_fr.txt atanks/suicide_fr.txt atanks/weapons.txt
|
|
-INCOMMON=*.dat COPYING README TODO Changelog *.txt
|
|
+INCOMMON=*.dat *.txt
|
|
|
|
all:
|
|
$(MAKE) -C src
|
|
|
|
install: all
|
|
- $(INSTALL) -g 0 -m 755 -o 0 atanks /usr/bin
|
|
- mkdir -p /usr/share/games/atanks
|
|
- $(INSTALL) -g 0 -m 644 -o 0 $(INCOMMON) /usr/share/games/atanks
|
|
+ $(INSTALL) -d $(DESTDIR)/usr/share/atanks
|
|
+ $(INSTALL) -m 0644 -t $(DESTDIR)/usr/share/atanks $(INCOMMON)
|
|
+ $(INSTALL) -m 0755 -D atanks $(DESTDIR)/usr/bin/atanks
|
|
+ $(INSTALL) -m 0644 -D atanks.desktop $(DESTDIR)/usr/share/applications/atanks.desktop
|
|
+ $(INSTALL) -m 0644 -D atanks.png $(DESTDIR)/usr/share/pixmaps/atanks.png
|
|
clean:
|
|
rm -f atanks
|
|
$(MAKE) -C src clean
|
|
diff -pruN atanks.orig/src/Makefile atanks/src/Makefile
|
|
--- atanks.orig/src/Makefile 2008-08-16 20:47:21.346144525 +1000
|
|
+++ atanks/src/Makefile 2008-08-16 20:53:10.845145926 +1000
|
|
@@ -4,7 +4,7 @@ MODULES = \
|
|
globaldata.o environment.o player.o virtobj.o floattext.o teleport.o physobj.o decor.o explosion.o missile.o beam.o tank.o atanks.o fade.o perlin.o sky.o button.o files.o team.o satellite.o
|
|
|
|
CC = g++
|
|
-FLAGS = -DLINUX -DDATA_DIR=\".\"
|
|
+FLAGS = -DLINUX -DDATA_DIR=\"/usr/share/atanks\"
|
|
OUTPUT = ../atanks
|
|
WFLAGS =
|
|
OFLAGS =
|
|
@@ -12,7 +12,6 @@ LFLAGS +=
|
|
LDFLAGS = `allegro-config --libs`
|
|
|
|
CFLAGS += -Wall -Wno-write-strings -Iinclude # -fprofile-arcs -ftest-coverage
|
|
-CFLAGS += -g # debug vs optimize flags
|
|
|
|
SRCS = $(MODULES:.o=.cc)
|
|
GLOBALS = main.h globals.h externs.h globaldata.h imagedefs.h lineseq.h button.h files.h
|