summaryrefslogtreecommitdiff
path: root/games/xbomber/patches/patch-aa
blob: 63996f54e346f6b046b3d7e88a104692b0d9ea05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
$NetBSD: patch-aa,v 1.8 2004/08/27 06:29:07 jlam Exp $

--- makefile.orig	1998-06-19 04:28:34.000000000 +0100
+++ makefile	2003-11-05 12:36:20.000000000 +0000
@@ -11,15 +11,22 @@
 
 # Makefile user-definable variables------------------------------------------
 
-CC=gcc
+INSTALLROOT= $(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,19 @@
 		bitmaps/*.xbm pixmaps/*.ppm \
 		sounds/numbers/*.au levels/*.dat
 
+install: xbomber
+	${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