summaryrefslogtreecommitdiff
path: root/emulators/raine/patches/patch-aa
blob: 53f0604a2f2bced53810be9f8dccf1e7ebab0bf8 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
$NetBSD: patch-aa,v 1.1.1.1 2004/04/05 05:05:28 xtraeme Exp $

--- makefile.orig	2004-04-05 06:00:31.000000000 +0200
+++ makefile	2004-04-05 06:08:35.000000000 +0200
@@ -171,10 +171,10 @@
 
 #	SDL = 1
 
-   bindir = $(prefix)/usr/games
-   sharedir = $(prefix)/usr/share
+   bindir = $(PREFIX)/bin
+   sharedir = $(PREFIX)/share
    mandir = $(sharedir)/man/man6
-   rainedata = $(sharedir)/games/raine
+   rainedata = $(sharedir)/raine
    langdir = $(rainedata)/languages
    romdir = $(rainedata)/roms
 
@@ -197,10 +197,10 @@
    DEFINE = -D__RAINE__ \
 	   -DRAINE_UNIX \
 
-   LIBS = -lz `allegro-config --libs` -lvga # -lreadline -lefence
-   LIBS_DEBUG = -lz -lvga `allegro-config --libs debug`
+   LIBS = -lz `allegro-config --libs` # -lreadline -lefence
+   LIBS_DEBUG = -lz `allegro-config --libs debug`
 
-   LIBS_STATIC = -lz -lvga `allegro-config --static`
+   LIBS_STATIC = -lz `allegro-config --static`
 
 endif # linux / mingw32
 endif # djgpp
@@ -950,11 +950,7 @@
 make.dep:
 	./makedep $(OBJDIR) $(OBJS) > make.dep
 
-cpuinfo:
-	@sh ./detect-cpu
-
 include make.dep
-include cpuinfo
 
 # create directories
 
@@ -983,7 +979,6 @@
 	$(RM) -r $(OBJDIR)
 	@echo Deleting $(RAINE_EXE)...
 	$(RM) $(RAINE_EXE) make.dep
-	$(RM) cpuinfo
 
 vclean:
 	@echo make vclean is no longer necessary, just type make clean
@@ -992,14 +987,16 @@
 install: install_dirs $(RAINE_LNG)
 ifdef RAINE_LINUX
 
-	$(INSTALL_BIN) $(RAINE_EXE) $(bindir)
-	$(INSTALL_DATA) $(RAINE_DAT) $(rainedata)
+	$(BSD_INSTALL_PROGRAM) $(RAINE_EXE) $(rainedata)
+	$(BSD_INSTALL_DATA) $(RAINE_DAT) $(rainedata)
 
 install_dirs:
-	$(MD) -pv $(bindir) $(rainedata) $(langdir) $(romdir)
+	$(BSD_INSTALL_DATA_DIR) $(rainedata)
+	$(BSD_INSTALL_DATA_DIR) $(langdir)
+	$(BSD_INSTALL_DATA_DIR) $(romdir)
 
 $(RAINE_LNG):
-	$(INSTALL_DATA) config/language/$@ $(langdir)
+	$(BSD_INSTALL_DATA) config/language/$@ $(langdir)
 
 else
 	@echo There is no needs to install for a win32/dos system