summaryrefslogtreecommitdiff
path: root/games/icebreaker/patches/patch-aa
blob: c57479a69c780eb7bc14e3b642ab8ea5bc51b0ba (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
51
52
53
54
$NetBSD: patch-aa,v 1.1.1.1 2002/03/08 19:19:15 wiz Exp $

--- Makefile.orig	Mon Jul 30 03:32:36 2001
+++ Makefile
@@ -1,9 +1,9 @@
-CC=gcc
+CC?=gcc
 
-SDLCONFIG=sdl-config
+SDLCONFIG?=sdl-config
 
 ifndef prefix
-  prefix=/usr/local
+  prefix=${PREFIX}
   #prefix=/usr
 endif
 
@@ -12,11 +12,11 @@
 endif
 
 ifndef mandir
-  mandir=$(prefix)/share/man
+  mandir=$(prefix)/man
 endif
 
 ifndef highscoredir
-  highscoredir=/var/local/lib/games
+  highscoredir=/var/games
   #highscoredir=/var/lib/games
 endif
 
@@ -103,14 +103,14 @@
 	   sed 's/\$$VERDATE/$(VERDATE)/' > $@
 
 install: all
-	mkdir -p $(prefix)/bin
-	mkdir -p $(prefix)/share/icebreaker
-	mkdir -p $(highscoredir)
-	mkdir -p $(mandir)/man6
-
-	install -m 644 *.wav *.bmp $(prefix)/share/icebreaker
-	install -g games -s -m 2755 icebreaker $(prefix)/bin
-	install -m 644 icebreaker.6 $(mandir)/man6
+	${BSD_INSTALL_DATA_DIR} $(prefix)/bin
+	${BSD_INSTALL_DATA_DIR} $(prefix)/share/icebreaker
+	${BSD_INSTALL_DATA_DIR} $(highscoredir)
+	${BSD_INSTALL_DATA_DIR} $(mandir)/man6
+
+	${BSD_INSTALL_DATA} -m 644 *.wav *.bmp $(prefix)/share/icebreaker
+	${BSD_INSTALL_DATA} -g games -s -m 2755 icebreaker $(prefix)/bin
+	${BSD_INSTALL_MAN} -m 644 icebreaker.6 $(mandir)/man6
 	touch $(highscoredir)/icebreaker.scores
 	chown games:games $(highscoredir)/icebreaker.scores
 	chmod 664 $(highscoredir)/icebreaker.scores