f2e281c681
* regen patches * add user-destdir installation support.
51 lines
1.6 KiB
Text
51 lines
1.6 KiB
Text
$NetBSD: patch-aa,v 1.9 2011/05/24 12:03:37 obache Exp $
|
|
|
|
--- makefile.orig 1998-06-19 03:28:34.000000000 +0000
|
|
+++ makefile
|
|
@@ -11,15 +11,22 @@
|
|
|
|
# Makefile user-definable variables------------------------------------------
|
|
|
|
-CC=gcc
|
|
+INSTALLROOT= $(DESTDIR)$(PREFIX)
|
|
+INSTALLBIN= $(INSTALLROOT)/bin
|
|
+SOUNDS= $(INSTALLROOT)/share/xbomber/sounds
|
|
+PIXMAPS= $(INSTALLROOT)/share/xbomber/pixmap
|
|
+LEVELS= $(INSTALLROOT)/share/xbomber/level
|
|
+BITMAPS= $(INSTALLROOT)/share/xbomber/bitmaps
|
|
+
|
|
+#CC=gcc
|
|
MATHLIB=-lm
|
|
-CFLAGS=-I/usr/X11/include
|
|
+CFLAGS=-I${X11BASE}/include -DSOUNDS=\"$(SOUNDS)\" -DPIXMAPS=\"$(PIXMAPS)\" -DLEVELS=\"$(LEVELS)\" -DBITMAPS=\"$(BITMAPS)\"
|
|
|
|
# Change this to "touch" if your system doesn't have the "strip" command:
|
|
POSTPROCESS=strip
|
|
|
|
# adjust according to target
|
|
-XLIB=-L/usr/X11/lib -lX11
|
|
+XLIB=${COMPILER_RPATH_FLAG}${PREFIX}/lib -L$(PREFIX)/lib ${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib -lX11
|
|
|
|
# uncomment for sunos/solaris
|
|
#XLIB=-L/usr/openwin/lib -lX11
|
|
@@ -44,6 +51,20 @@ all: xbomber
|
|
bitmaps/*.xbm pixmaps/*.ppm \
|
|
sounds/numbers/*.au levels/*.dat
|
|
|
|
+install: xbomber
|
|
+ ${BSD_INSTALL_PROGRAM_DIR} ${INSTALLBIN}
|
|
+ ${BSD_INSTALL_PROGRAM} xbomber $(INSTALLBIN)/xbomber
|
|
+ ${BSD_INSTALL_DATA_DIR} $(LEVELS)
|
|
+ ${BSD_INSTALL_DATA_DIR} $(SOUNDS)/numbers
|
|
+ ${BSD_INSTALL_DATA_DIR} $(PIXMAPS)/jungle
|
|
+ ${BSD_INSTALL_DATA_DIR} $(BITMAPS)
|
|
+ ${BSD_INSTALL_DATA} pixmaps/* $(PIXMAPS)
|
|
+ ${BSD_INSTALL_DATA} bitmaps/* $(BITMAPS)
|
|
+ ${BSD_INSTALL_DATA} jungle/* $(PIXMAPS)/jungle
|
|
+ ${BSD_INSTALL_DATA} sounds/numbers/* $(SOUNDS)/numbers
|
|
+ ${BSD_INSTALL_DATA} sounds/*.au $(SOUNDS)
|
|
+ ${BSD_INSTALL_DATA} levels/* $(LEVELS)
|
|
+
|
|
clean:
|
|
rm *.o
|
|
|