blob: 67a80e727d6efc9ccd7901cb5bb2fa565125120b (
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
|
$NetBSD: patch-aa,v 1.2 2004/10/08 23:14:38 mycroft Exp $
--- tads2/Makefile.orig Wed Sep 25 18:43:09 2002
+++ tads2/Makefile
@@ -50,7 +50,7 @@
#
# Install point for the tadsc, tadsr, and tdb executables
-BINDIR=/usr/local/bin
+BINDIR=${PREFIX}/bin
#
# Places to look for include files.
@@ -270,16 +270,18 @@ MATT=Matt Herberg <meherberg@earthlink.n
# 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
@@ -374,8 +376,8 @@ TDBOBJS= $(DBGOBJS) osgen.o osunixt.o tp
all: tadsr tadsc tdb
install: all
- install -d $(BINDIR)
- install -s -m755 tadsc tadsr tdb $(BINDIR)
+ #install -d $(BINDIR)
+ ${BSD_INSTALL_PROGRAM} tadsc tadsr tdb $(BINDIR)
tadsr: $(TROBJS)
$(CC) $(CFLAGS) $(TROBJS) -o tadsr $(LIBS)
|