summaryrefslogtreecommitdiff
path: root/games/tads/patches/patch-aa
blob: 08c3e7c1c286bfa655a35945750e6623d132d091 (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
$NetBSD: patch-aa,v 1.4 2005/03/27 18:08:40 kristerw Exp $

--- tads2/Makefile.orig	Fri Nov  5 14:34:49 2004
+++ tads2/Makefile	Sun Mar 27 19:52:59 2005
@@ -56,7 +56,7 @@
 #
 # DATADIR is where the TADS 2 development libraries (adv.t, std.t and
 # gameinfo.t) will get installed.
-PREFIX=/usr/local
+#PREFIX=/usr/local
 BINDIR=$(PREFIX)/bin
 DATADIR=$(PREFIX)/share/tads2
 
@@ -278,16 +278,18 @@
 # No testing has been done on pre 1.5 or a.out systems
 # HAVE_TPARM is set in osunixt.h
 #
-#CC=gcc
-#OPTIMIZE=
-#UNIXFLAGS=-g -DOSANSI -DUNIX -DHAVE_STRCASECMP
-#SYSFLAGS= -DOS_SYSTEM_NAME=\""NETBSD"\" -DSYSNAME=\""NetBSD"\" -DSYSPL=\"1\" -DPORTER=\""$(DOUGLAS)"\" -DSYSMAINTAINER=\""NetBSD port maintained by $(DOUGLAS)\n"\"
-#CFLAGS= $(UNIXFLAGS) $(SYSFLAGS) -DNETBSD
-#AFLAGS=
-#OVLFLG=
-#MACHDEP=
-#LIBS=-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lncurses
-#MAKEXEC=touch
+.if ${OPSYS} == "NetBSD"
+CC=gcc
+OPTIMIZE=
+UNIXFLAGS=-g -DOSANSI -DUNIX -DHAVE_STRCASECMP
+SYSFLAGS=-DOS_SYSTEM_NAME=\""NETBSD"\" -DSYSNAME=\""NetBSD"\" -DSYSPL=\"1\" -DPORTER=\""$(DOUGLAS)"\" -DSYSMAINTAINER=\""NetBSD port maintained by $(DOUGLAS)\n"\"
+CFLAGS+=$(UNIXFLAGS) $(SYSFLAGS) -DNETBSD
+AFLAGS=
+OVLFLG=
+MACHDEP=
+LIBS=$(LDFLAGS) -lncurses
+MAKEXEC=touch
+.endif
 
 #
 # i386+ running DOS/Windows, using DJGPP 2.X
@@ -382,10 +384,14 @@
 all: tadsr tadsc tdb
 
 install: all
-	install -d $(BINDIR)
-	install -d $(DATADIR)
-	install -s -m755 tadsc tadsr tdb $(BINDIR)
-	install -m644 adv.t std.t gameinfo.t $(DATADIR)
+	#install -d $(BINDIR)
+	${BSD_INSTALL_DATA_DIR} $(DATADIR)
+	${BSD_INSTALL_PROGRAM} tadsc $(BINDIR)
+	${BSD_INSTALL_PROGRAM} tadsr $(BINDIR)
+	${BSD_INSTALL_PROGRAM} tdb $(BINDIR)
+	${BSD_INSTALL_DATA} adv.t $(DATADIR)
+	${BSD_INSTALL_DATA} std.t $(DATADIR)
+	${BSD_INSTALL_DATA} gameinfo.t $(DATADIR)
 
 tadsr: $(TROBJS)
 	$(CC) $(CFLAGS) $(TROBJS) -o tadsr $(LIBS)