diff options
author | snj <snj@pkgsrc.org> | 2004-03-09 23:06:18 +0000 |
---|---|---|
committer | snj <snj@pkgsrc.org> | 2004-03-09 23:06:18 +0000 |
commit | 9856a2258e9dc73ed531fba1056de05cdcd4adc9 (patch) | |
tree | 98476013ead4cf581730f38dd14e122c43fd9324 /games/xnibbles/patches | |
parent | dc6d5ee831f8d9ac7978df1b482a25d25988cece (diff) | |
download | pkgsrc-9856a2258e9dc73ed531fba1056de05cdcd4adc9.tar.gz |
Use bl3, USE_LANGUAGES=c c++, various other cleanup stuff.
Diffstat (limited to 'games/xnibbles/patches')
-rw-r--r-- | games/xnibbles/patches/patch-aa | 77 |
1 files changed, 19 insertions, 58 deletions
diff --git a/games/xnibbles/patches/patch-aa b/games/xnibbles/patches/patch-aa index 6d97f1a5d5d..dd34f99e3ba 100644 --- a/games/xnibbles/patches/patch-aa +++ b/games/xnibbles/patches/patch-aa @@ -1,37 +1,27 @@ -$NetBSD: patch-aa,v 1.3 2003/11/18 14:34:33 xtraeme Exp $ +$NetBSD: patch-aa,v 1.4 2004/03/09 23:06:18 snj Exp $ ---- Makefile.orig Thu Mar 5 17:06:19 1998 -+++ Makefile -@@ -21,30 +21,34 @@ +--- Makefile.orig 1998-03-05 14:06:19.000000000 -0800 ++++ Makefile 2004-03-09 15:02:02.000000000 -0800 +@@ -21,14 +21,15 @@ ### GENERAL OPTIONS ### # Compiler to use (C++ compiler _please_) - CC = g++ -+ #CC = g++ ++ CC = ${CXX} # Directory for XNibbles specific data # This must be set correctly at compile time - DATADIR = /usr/local/games/xnibbles -+ DATADIR = $(PREFIX)/share/xnibbles ++ DATADIR=$(PREFIX)/share/xnibbles ++ CPPFLAGS+=-DDATADIR=\"$(DATADIR)\" $(SDEV) ++ CFLAGS+=-fwritable-strings # Prefix to find bin and man directories for installation - PREFIX = /usr/local -+# PREFIX = $(PREFIX) # Install program INSTALL = /usr/bin/install -+ INSTALL_PROGRAM = $(INSTALL) -c -g $(GROUP) -m 755 -o $(USER) -+ INSTALL_MAN = $(INSTALL) -c -g $(GROUP) -m 644 -o $(USER) -+ INSTALL_DATA = $(INSTALL) -c -g $(GROUP) -m 644 -o $(USER) -+ INSTALL_DIR = $(INSTALL) -d -g $(GROUP) -m 755 -o $(USER) - - # User to own the program -- USER = 0 -- GROUP = 0 -+ USER = root -+ GROUP = wheel - - ### LINUX ONLY OPTIONS ### +@@ -41,10 +42,10 @@ # Requires kernel sound support, change from 0 to 1 if you want it SOUND = 1 @@ -44,31 +34,7 @@ $NetBSD: patch-aa,v 1.3 2003/11/18 14:34:33 xtraeme Exp $ JOYSTICK0DEV = /dev/js0 JOYSTICK1DEV = /dev/js1 -@@ -66,6 +70,7 @@ - @echo "" - @echo "make linux Linux on ix86" - @echo "make irix Irix 5.3 (6.x?)" -+ @echo "make netbsd NetBSD 1.3 or higher" - @echo "" - @echo "Check the README file for help." - @echo "" -@@ -79,6 +84,15 @@ - -DDATADIR=\"$(DATADIR)\"' \ - all - -+netbsd: -+ $(MAKE) OBJECTS='$(OBJECTS)' \ -+ CC="$(CC)" LDFLAGS="$(LDFLAGS)" \ -+ CFLAGS+='-Wall -O2 $(SDEV) \ -+ $(CFLAGS) -fwritable-strings \ -+ $(JDEV) \ -+ -DDATADIR=\"$(DATADIR)\"' \ -+ all -+ - irix: - $(MAKE) OBJECTS= \ - CC=$(CC) LDFLAGS='-L/usr/X11/lib' \ -@@ -90,7 +104,7 @@ +@@ -90,7 +91,7 @@ xnibbles: bodyPart.o boni.o bonus.o dead $(CC) $(CFLAGS) $(LDFLAGS) \ bodyPart.o boni.o bonus.o levels.o people.o statusBar.o ticker.o \ timer.o walls.o worm.o xnibbles.o xpms.o $(OBJECTS) deadWorm.o counter.o \ @@ -77,7 +43,7 @@ $NetBSD: patch-aa,v 1.3 2003/11/18 14:34:33 xtraeme Exp $ xnleditor: xnleditor/level.o xnleditor/newWalls.o xnleditor/sideBar.o xnleditor/walls.o xnleditor/xnleditor.o xnleditor/xpms.o xnleditor/numericDisplay.o $(CC) $(CFLAGS) $(LDFLAGS) \ -@@ -115,19 +129,19 @@ +@@ -115,19 +116,14 @@ tar: pristine (cd ..; tar -cvzf xnibbles.tgz xnibbles/ ; chmod 644 xnibbles.tgz) install: @@ -94,19 +60,14 @@ $NetBSD: patch-aa,v 1.3 2003/11/18 14:34:33 xtraeme Exp $ - $(INSTALL) -g $(GROUP) -m 755 -o $(USER) xnibbles $(PREFIX)/bin - $(INSTALL) -g $(GROUP) -m 755 -o $(USER) xnleditor/xnleditor $(PREFIX)/bin - $(INSTALL) -g $(GROUP) -m 644 -o $(USER) xnibbles.6 $(PREFIX)/man/man6 -+ $(INSTALL_DIR) $(DATADIR) -+ $(INSTALL_DIR) $(DATADIR)/levels -+ $(INSTALL_DIR) $(DATADIR)/sounds -+# $(INSTALL_DIR) $(PREFIX) -+# $(INSTALL_DIR) $(PREFIX)/bin -+# $(INSTALL_DIR) $(PREFIX)/man -+# $(INSTALL_DIR) $(PREFIX)/man/man6 -+ $(INSTALL_DATA) levels/*.xnl $(DATADIR)/levels -+ $(INSTALL_DATA) levels/README $(DATADIR)/levels -+ $(INSTALL_DATA) sounds/*.ub $(DATADIR)/sounds -+ $(INSTALL_PROGRAM) xnibbles $(PREFIX)/bin -+ $(INSTALL_PROGRAM) xnleditor/xnleditor $(PREFIX)/bin -+ $(INSTALL_MAN) xnibbles.6 $(PREFIX)/man/man6 ++ $(BSD_INSTALL_DATA_DIR) $(DATADIR)/levels ++ $(BSD_INSTALL_DATA_DIR) $(DATADIR)/sounds ++ $(BSD_INSTALL_DATA) levels/*.xnl $(DATADIR)/levels ++ $(BSD_INSTALL_DATA) levels/README $(DATADIR)/levels ++ $(BSD_INSTALL_DATA) sounds/*.ub $(DATADIR)/sounds ++ $(BSD_INSTALL_PROGRAM) xnibbles $(PREFIX)/bin ++ $(BSD_INSTALL_PROGRAM) xnleditor/xnleditor $(PREFIX)/bin ++ $(BSD_INSTALL_MAN) xnibbles.6 $(PREFIX)/man/man6 ./make-LEVELS $(DATADIR) OOGA bodyPart.o: common.h bodyPart.h |