summaryrefslogtreecommitdiff
path: root/games/imaze/patches/patch-aa
blob: b0c364622d15978e682e72d08cbcde9778735cbe (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
$NetBSD: patch-aa,v 1.5 2001/07/04 02:23:27 jlam Exp $

--- source/Makefile.orig	Thu Feb 22 17:01:18 1996
+++ source/Makefile
@@ -10,7 +10,7 @@
 ##
 
 #DEFINES=
-BINDIR=..
+BINDIR=$(PREFIX)/bin
 COPT=-O
 #CC=
 
@@ -119,6 +119,14 @@
 	  SYSDEFS='-DDONT_DECLARE_ERRLIST -DSOUND -DJOYSTICK' \
 	  all
 
+netbsd:
+	$(MAKE) \
+	  GRAF=MOTIF \
+	  GRAFLIBS='$$(MOTIFLIBS)' \
+	  GRAFINCLUDES='$$(MOTIFINCLUDES)' \
+	  SYSDEFS='-DDONT_DECLARE_ERRLIST -DSOUND -DJOYSTICK -DDEFAULT_SOUND_DIR="$$(PREFIX)/share/imaze/sound"' \
+	  all
+
 irix:
 	$(MAKE) \
 	  GRAF=MOTIF \
@@ -138,7 +146,7 @@
 ###########################################################################
 
 LD=$(CC)
-INSTALL=install -s -m 755
+INSTALL=install -c -s -o bin -g bin -m 0755
 
 XVLIBS=-L$(OPENWINHOME)/lib -lxview -lolgx -lX11
 XVINCLUDES=-I$(OPENWINHOME)/include
@@ -152,8 +160,8 @@
 
 GRAF=NONE
 
-LDFLAGS=
-CFLAGS=$(GRAFINCLUDES) $(COPT) $(DEFINES) $(SYSDEFS)
+#LDFLAGS=
+CFLAGS+=$(GRAFINCLUDES) $(COPT) $(DEFINES) $(SYSDEFS)
 
 # bis hier Optionen eintragen
 ###########################################################################