diff options
author | garbled <garbled@pkgsrc.org> | 1998-12-01 23:27:36 +0000 |
---|---|---|
committer | garbled <garbled@pkgsrc.org> | 1998-12-01 23:27:36 +0000 |
commit | 461e0155724ce58529fadc08ca928489328f79f0 (patch) | |
tree | 5e307229ff355fd86eb14060d984270c7a4ca8ec /devel/cdk/patches | |
parent | 1c151468caac0728a710d94af6d6d30725e90b62 (diff) | |
download | pkgsrc-461e0155724ce58529fadc08ca928489328f79f0.tar.gz |
Initial import of cdk-4.9.6
the Curses Development Kit
Diffstat (limited to 'devel/cdk/patches')
-rw-r--r-- | devel/cdk/patches/patch-aa | 82 | ||||
-rw-r--r-- | devel/cdk/patches/patch-ab | 26 | ||||
-rw-r--r-- | devel/cdk/patches/patch-ac | 24 | ||||
-rw-r--r-- | devel/cdk/patches/patch-ad | 12 | ||||
-rw-r--r-- | devel/cdk/patches/patch-ae | 12 | ||||
-rw-r--r-- | devel/cdk/patches/patch-af | 11 | ||||
-rw-r--r-- | devel/cdk/patches/patch-ag | 12 | ||||
-rw-r--r-- | devel/cdk/patches/patch-ah | 26 |
8 files changed, 205 insertions, 0 deletions
diff --git a/devel/cdk/patches/patch-aa b/devel/cdk/patches/patch-aa new file mode 100644 index 00000000000..aec57d3d270 --- /dev/null +++ b/devel/cdk/patches/patch-aa @@ -0,0 +1,82 @@ +$NetBSD: patch-aa,v 1.1.1.1 1998/12/01 23:27:36 garbled Exp $ +--- Makefile.orig Wed Jul 15 13:27:08 1998 ++++ Makefile Tue Dec 1 14:39:56 1998 +@@ -9,14 +9,14 @@ + # AIX, Alpha, FreeBSD, HPUX, Linux, Linux-xcurses, + # Solaris, Sun, and Irix (SGI) + # +-OS = Solaris ++OS = NetBSD + + # + # These reflect where CDK will be installed from and to + # on your system. + # +-SRCDIR = $(HOME)/cdk-$(VERSION) +-INST_ROOTDIR = $(HOME)/local ++SRCDIR = $(WRKSRC) ++INST_ROOTDIR = $(PREFIX) + + # + # Set some informational variables. +@@ -51,7 +51,7 @@ + INST_LIBDIR = ${INST_ROOTDIR}/lib + INST_INCDIR = ${INST_ROOTDIR}/include + INST_MANDIR = ${INST_ROOTDIR}/man/man3 +-INST_SRCDIR = ${INST_ROOTDIR}/src/cdk ++INST_SRCDIR = ${INST_ROOTDIR}/share/examples/cdk + + # + # Add what ever flags you need for the CFLAGS. The following lists all of +@@ -80,7 +80,7 @@ + # NOSTRERR Your library does not have Sun + # the library function strerr. + # +-EXTRA_CFLAGS = -g -Wall ++EXTRA_CFLAGS = -Wall -I. + + ############################################################### + # Do Not Change Anything Below This Line +@@ -143,9 +143,9 @@ + # + # Standard library directive. + # +-cdklib $(CDKLIB): $(CDKOBJS) +- @ar r $(CDKLIB) $(CDKOBJS) +- @$(RANLIB) ++#cdklib $(CDKLIB): $(CDKOBJS) ++# @ar r $(CDKLIB) $(CDKOBJS) ++# @$(RANLIB) + + # + # Shared library directive. +@@ -214,7 +214,7 @@ + mkdir -p $(INST_SRCDIR); \ + fi; + @echo "Installing source example files..."; +- @$(RM) $(INST_SRCDIR)/Makefile; ++ @-$(RM) $(INST_SRCDIR)/Makefile; + @cp $(EXAMDIR)/examples.make $(INST_SRCDIR)/Makefile; + @(cd $(EXAMDIR); for i in $(EXAMSRC); do \ + echo " $(INST_SRCDIR)/$$i" ; \ +@@ -364,13 +364,13 @@ + # + # Clean up after ourselves... + # +-clean:: +- @echo "Cleaning files up..." +- $(RM) *.o $(CDKLIB) $(CDKSLIB) inst/*.o +- $(RM) core tst inst/vinstall inst/*.list +- (cd $(EXAMDIR); make clean) +- (cd $(CLIDIR); make clean) +- (cd $(DEMODIR); make clean) ++#clean:: ++# @echo "Cleaning files up..." ++# $(RM) *.o $(CDKLIB) $(CDKSLIB) inst/*.o ++# $(RM) core tst inst/vinstall inst/*.list ++# (cd $(EXAMDIR); make clean) ++# (cd $(CLIDIR); make clean) ++# (cd $(DEMODIR); make clean) + + # + # This makes the test program. diff --git a/devel/cdk/patches/patch-ab b/devel/cdk/patches/patch-ab new file mode 100644 index 00000000000..fc3f28020eb --- /dev/null +++ b/devel/cdk/patches/patch-ab @@ -0,0 +1,26 @@ +$NetBSD: patch-ab,v 1.1.1.1 1998/12/01 23:27:36 garbled Exp $ +--- /dev/null Tue Dec 1 15:41:34 1998 ++++ makefiles/Makefile.NetBSD Tue Dec 1 16:06:16 1998 +@@ -0,0 +1,22 @@ ++# ++# BSD style makefile for Cdk. ++# ++ ++# ++# Define all needed variables. ++# ++COMPILE_OS = "NetBSD" ++LIB = cdk ++SHLIB_MAJOR = 4 ++SHLIB_MINOR = 8 ++SRCS = $(CDKSRC) ++MAN3 = $(CDKSRC:%=man/%) ++ ++# ++# Include the global FreeBSD makefile def's ++# ++NOLINT = 1 ++MANZ = 0 ++LIBDIR = ${PREFIX}/lib ++.include <bsd.lib.mk> ++CFLAGS += -I. -DNCURSES -I${PREFIX}/include diff --git a/devel/cdk/patches/patch-ac b/devel/cdk/patches/patch-ac new file mode 100644 index 00000000000..21c1d5225f1 --- /dev/null +++ b/devel/cdk/patches/patch-ac @@ -0,0 +1,24 @@ +--- cdk.h.orig Tue Apr 7 09:24:54 1998 ++++ cdk.h Tue Dec 1 16:08:34 1998 +@@ -34,11 +34,20 @@ + * SUCH DAMAGE. + */ + ++/*#ifdef __NetBSD__ ++#define _maxx maxx ++#define _maxy maxy ++#define _begx begx ++#define _begy begy ++#define _curx curx ++#define _cury cury ++#endif*/ ++ + #ifdef CDK_PERL_EXT + #undef instr + #endif + +-#include <curses.h> ++#include <ncurses.h> + + #include <stdlib.h> + #include <string.h> diff --git a/devel/cdk/patches/patch-ad b/devel/cdk/patches/patch-ad new file mode 100644 index 00000000000..87e617b50e8 --- /dev/null +++ b/devel/cdk/patches/patch-ad @@ -0,0 +1,12 @@ +$NetBSD: patch-ad,v 1.1.1.1 1998/12/01 23:27:36 garbled Exp $ +--- entry.c.orig Tue Dec 1 14:09:46 1998 ++++ entry.c Tue Dec 1 14:10:02 1998 +@@ -371,7 +371,7 @@ + } + break; + +- case DELETE : case '' : case KEY_BACKSPACE : case KEY_DC : ++ case DELETE : case '' : case KEY_BACKSPACE : /* case KEY_DC : */ + if (entry->dispType == vVIEWONLY) + { + Beep(); diff --git a/devel/cdk/patches/patch-ae b/devel/cdk/patches/patch-ae new file mode 100644 index 00000000000..e58137a1bf4 --- /dev/null +++ b/devel/cdk/patches/patch-ae @@ -0,0 +1,12 @@ +$NetBSD: patch-ae,v 1.1.1.1 1998/12/01 23:27:36 garbled Exp $ +--- matrix.c.orig Tue Dec 1 14:10:31 1998 ++++ matrix.c Tue Dec 1 14:10:45 1998 +@@ -469,7 +470,7 @@ + case CDK_ENDOFLINE : + break; + +- case KEY_BACKSPACE : case DELETE : case '' : case KEY_DC : ++ case KEY_BACKSPACE : case DELETE : case '' : /*case KEY_DC : */ + if (matrix->colvalues[matrix->col] == vVIEWONLY) + { + Beep(); diff --git a/devel/cdk/patches/patch-af b/devel/cdk/patches/patch-af new file mode 100644 index 00000000000..7c198e73396 --- /dev/null +++ b/devel/cdk/patches/patch-af @@ -0,0 +1,11 @@ +$NetBSD: patch-af,v 1.1.1.1 1998/12/01 23:27:36 garbled Exp $ +--- cdk/curdefs.h.orig Tue Dec 1 14:11:18 1998 ++++ cdk/curdefs.h Tue Dec 1 14:11:41 1998 +@@ -518,4 +518,7 @@ + #ifndef ACS_S2 + #define ACS_S2 '2' + #endif ++#ifndef ACS_S9 ++#define ACS_S9 '9' ++#endif + #endif /* CURDEF_H */ diff --git a/devel/cdk/patches/patch-ag b/devel/cdk/patches/patch-ag new file mode 100644 index 00000000000..891e2544d08 --- /dev/null +++ b/devel/cdk/patches/patch-ag @@ -0,0 +1,12 @@ +$NetBSD: patch-ag,v 1.1.1.1 1998/12/01 23:27:36 garbled Exp $ +--- mentry.c.orig Tue Dec 1 14:12:57 1998 ++++ mentry.c Tue Dec 1 14:13:09 1998 +@@ -442,7 +442,7 @@ + } + break; + +- case DELETE : case KEY_BACKSPACE : case '' : case KEY_DC : ++ case DELETE : case KEY_BACKSPACE : case '' : /*case KEY_DC :*/ + if (mentry->dispType == vVIEWONLY) + { + Beep(); diff --git a/devel/cdk/patches/patch-ah b/devel/cdk/patches/patch-ah new file mode 100644 index 00000000000..a5dcea4b5bb --- /dev/null +++ b/devel/cdk/patches/patch-ah @@ -0,0 +1,26 @@ +$NetBSD: patch-ah,v 1.1.1.1 1998/12/01 23:27:36 garbled Exp $ +--- exam/Makefile.orig Tue Apr 7 09:25:04 1998 ++++ exam/Makefile Tue Dec 1 16:12:44 1998 +@@ -5,17 +5,17 @@ + # + # Change these as needed. + # +-ROOTDIR = /export/local +-INCDIR = -I/usr/include/ncurses -I$(ROOTDIR)/include +-LIBDIR = -L$(ROOTDIR)/lib +-LIBS = -lcdk -lcurses -lm ++ROOTDIR = /usr/pkg ++INCDIR = -I$(ROOTDIR)/include ++LIBDIR = -Wl,-R$(ROOTDIR)/lib -L$(ROOTDIR)/lib ++LIBS = -lcdk -lncurses -lm + BINS = alphalist_ex bind_ex calendar_ex cdkscreen_ex dialog_ex\ + entry_ex fselect_ex graph_ex hello_ex histogram_ex\ + itemlist_ex label_ex marquee_ex matrix_ex mentry_ex\ + menu_ex position_ex preprocess_ex radio_ex scale_ex\ + scroll_ex selection_ex slider_ex subwindow_ex\ + swindow_ex template_ex viewer_ex vinstall +-CFLAGS = -g -Wall ++CFLAGS = -O -DNCURSES + CC = gcc + default: all + all: $(BINS) |