diff options
Diffstat (limited to 'misc/dialog/patches/patch-aa')
-rw-r--r-- | misc/dialog/patches/patch-aa | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/misc/dialog/patches/patch-aa b/misc/dialog/patches/patch-aa new file mode 100644 index 00000000000..ca5cb6c8586 --- /dev/null +++ b/misc/dialog/patches/patch-aa @@ -0,0 +1,59 @@ +--- Makefile.orig Thu Jan 9 07:19:34 1997 ++++ Makefile Tue May 26 23:53:37 1998 +@@ -17,8 +17,8 @@ + # can be disabled to make dialog a bit smaller (could be done for more things) + HAVE_GUAGE=true + +-BINDIR = /usr/bin +-MANDIR = /usr/man/man1/ ++BINDIR = ${PREFIX}/bin ++MANDIR = ${PREFIX}/man/man1 + + CC = gcc + CPP = gcc -E +@@ -30,7 +30,7 @@ + # do not edit below this line + + CFLAGS = $(OPTIM) -DLOCALE -DVERSION=\"0.6z\" +-LDFLAGS = -L . ++LDFLAGS = -L . -L${PREFIX}/lib + LDLIBS = -ldialog + + OBJS = checklist.o inputbox.o menubox.o msgbox.o \ +@@ -42,7 +42,8 @@ + OBJS+=mouse.o + endif + ifeq ($(HAVE_NCURSES), true) +-CFLAGS+=-DHAVE_NCURSES -I/usr/include/ncurses ++#CFLAGS+=-DHAVE_NCURSES -I/usr/include/ncurses ++CFLAGS+=-DHAVE_NCURSES -I/usr/pkg/include + LDLIBS+=-lncurses + endif + ifeq ($(HAVE_RC_FILE), true) +@@ -59,7 +60,7 @@ + all: libdialog.a dialog + + libdialog.a: $(OBJS) +- ar rcs libdialog.a $(OBJS) ++ ar rc libdialog.a $(OBJS) + + dialog: dialog.o + +@@ -70,7 +71,7 @@ + include .depend + + install: dialog libdialog.a +- install -s dialog $(BINDIR) ++ ${BSD_INSTALL_PROGRAM} dialog $(BINDIR) + cp dialog.man dialog.1 + ifeq ($(HAVE_RC_FILE),false) + mv dialog.1 dialog.in +@@ -82,7 +83,7 @@ + endif + mv dialog.1 dialog.in + sed -e "/COMMENTSTART/,/COMMENTEND/d" dialog.in >dialog.1 +- install -m 644 dialog.1 $(MANDIR) ++ ${BSD_INSTALL_MAN} dialog.1 $(MANDIR) + # install -m 644 libdialog.a /usr/lib/ + + depend: |