pkgsrc/lang/bwbasic/patches/patch-aa

49 lines
1.4 KiB
Text
Raw Normal View History

$NetBSD: patch-aa,v 1.6 2017/01/19 06:48:46 wen Exp $
2015-12-30 00:34:43 +01:00
Configure for pkgsrc.
DESTDIR support.
2000-02-15 20:43:22 +01:00
--- Makefile.in.orig 2015-05-12 12:10:34.000000000 +0000
+++ Makefile.in
@@ -16,9 +16,10 @@ INSTALL_DATA = @INSTALL_DATA@
2000-02-15 20:43:22 +01:00
DEFS = @DEFS@
-# Revised by JBV
-#CFLAGS = -O
-CFLAGS = -g -ansi
+# Re-revised by MJS
+CFLAGS ?= -O
+CFLAGS += -ansi
+#CFLAGS = -g -ansi
# Revised by JBV
#LDFLAGS = -s
@@ -29,13 +30,13 @@ bindir = $(exec_prefix)/bin
SHELL = /bin/sh
-CFILES= bwbasic.c bwb_cmd.c bwb_cnd.c bwb_dio.c bwb_elx.c\
- bwb_exp.c bwb_fnc.c bwb_inp.c bwb_int.c bwb_ops.c\
+CFILES= bwbasic.c bwb_cmd.c bwb_cnd.c bwb_dio.c \
+ bwb_exp.c bwb_fnc.c bwb_inp.c bwb_int.c \
bwb_prn.c bwb_stc.c bwb_str.c bwb_tbl.c bwb_var.c\
bwd_cmd.c bwd_fun.c bwx_tty.c
-OFILES= bwbasic.o bwb_cmd.o bwb_cnd.o bwb_dio.o bwb_elx.o\
- bwb_exp.o bwb_fnc.o bwb_inp.o bwb_int.o bwb_ops.o\
+OFILES= bwbasic.o bwb_cmd.o bwb_cnd.o bwb_dio.o \
+ bwb_exp.o bwb_fnc.o bwb_inp.o bwb_int.o \
bwb_prn.o bwb_stc.o bwb_str.o bwb_tbl.o bwb_var.o\
bwd_cmd.o bwd_fun.o bwx_tty.o
2009-03-02 15:27:11 +01:00
@@ -75,7 +76,7 @@ $(OFILES): $(HFILES)
$(CC) -c $(CPPFLAGS) -I$(srcdir) $(DEFS) $(CFLAGS) $<
install: all
- $(INSTALL_PROGRAM) bwbasic $(bindir)/bwbasic
+ $(INSTALL_PROGRAM) bwbasic ${DESTDIR}$(bindir)/bwbasic
uninstall:
rm -f $(bindir)/bwbasic