diff options
Diffstat (limited to 'games/cosmo/files/patch-Imakefile')
-rw-r--r-- | games/cosmo/files/patch-Imakefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/games/cosmo/files/patch-Imakefile b/games/cosmo/files/patch-Imakefile new file mode 100644 index 000000000000..94a1bf891099 --- /dev/null +++ b/games/cosmo/files/patch-Imakefile @@ -0,0 +1,45 @@ +--- Imakefile.orig Sat May 11 16:06:00 1996 ++++ Imakefile Wed Oct 18 08:09:08 2000 +@@ -1,21 +1,22 @@ +-BINDIR = /usr/local/games ++XCOMM BINDIR = /usr/local/games + PAD = # -DUSE_PAD ++CHOWN = /usr/sbin/chown + CHMOD = /bin/chmod + MKDIR = /bin/mkdir + +-CC = gcc ++XCOMM CC = gcc + REGULATE_TIMER = -DREG_TIMER +-DATADIR = $(BINDIR)/cosmodir ++DATADIR = $(LIBDIR)/cosmo + DATAFILE = $(DATADIR)/best.dat + PROTO_DEFINES = -DRANK_FILE=\"$(DATAFILE)\" $(PAD) $(REGULATE_TIMER) $(SIGNAL) +-CDEBUGFLAGS = -O2 # -g ++XCOMM CDEBUGFLAGS = -O2 # -g + LOCAL_LIBRARIES = $(XLIB) + TAR = /bin/tar + + SRCS = main.c animation.c cosmo.c ex.c pixmap.c score.c setup.c tiff.c timer.c title.c pad.c + OBJS = $(SRCS:.c=.o) + +-ComplexProgramTarget(cosmo) ++ComplexProgramTargetNoMan(cosmo) + + hd: hd.c + $(CC) -o hd hd.c +@@ -27,11 +28,12 @@ + + install:: + @if [ -d $(DATADIR) ]; then echo cosmodir exists, not created.;\ +- else $(MKDIR) $(DATADIR); fi ++ else $(MKDIRHIER) $(DATADIR); fi + $(CHMOD) 711 $(DATADIR) + @if [ -f $(DATAFILE) ]; then echo ranking file exists, not created.;\ + else echo > $(DATAFILE); fi +- $(CHMOD) 666 $(DATAFILE) ++ $(CHOWN) root:games $(DATAFILE) ++ $(CHMOD) 664 $(DATAFILE) + + pack:: + $(TAR) cfz cosmo.tgz *.c *.h Imakefile chara.dat *.doc |