diff options
author | agc <agc@pkgsrc.org> | 1999-11-11 12:53:16 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-11-11 12:53:16 +0000 |
commit | 5b28220d73e0c6d0426c4b5022c19799b7efc828 (patch) | |
tree | 748d47b179cf213bd910e27935542ec8cb124515 /devel/cdecl/patches | |
parent | 3f8dffe6a0102b3084411b027f6cdf37819f8e48 (diff) | |
download | pkgsrc-5b28220d73e0c6d0426c4b5022c19799b7efc828.tar.gz |
Import cdecl-2.5, a utility to explain and compose C and C++ declarations,
into the NetBSD packages collection.
The master sites were taken from the FreeBSD port, nothing else.
Diffstat (limited to 'devel/cdecl/patches')
-rw-r--r-- | devel/cdecl/patches/patch-aa | 49 | ||||
-rw-r--r-- | devel/cdecl/patches/patch-ab | 39 |
2 files changed, 88 insertions, 0 deletions
diff --git a/devel/cdecl/patches/patch-aa b/devel/cdecl/patches/patch-aa new file mode 100644 index 00000000000..118bf88ed45 --- /dev/null +++ b/devel/cdecl/patches/patch-aa @@ -0,0 +1,49 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/11/11 12:53:17 agc Exp $ + +Minor portability modifications for NetBSD and Solaris + +--- cdecl.c 1999/11/11 12:16:45 1.1 ++++ cdecl.c 1999/11/11 12:25:39 +@@ -59,7 +59,9 @@ + */ + + char cdeclsccsid[] = "@(#)cdecl.c 2.5 1/15/96"; +- ++ ++#include <sys/param.h> ++ + #include <stdio.h> + #include <ctype.h> + #if __STDC__ || defined(DOS) +@@ -71,8 +73,10 @@ + # ifndef NOVARARGS + # include <varargs.h> + # endif /* ndef NOVARARGS */ ++#if !(defined(__sun__) && defined(__svr4__)) && !(defined(BSD) && (BSD >= 199306)) + char *malloc(); + void free(), exit(), perror(); ++#endif + # ifdef BSD + # include <strings.h> + extern int errno; +@@ -87,6 +91,10 @@ + # endif /* NOVOID */ + #endif /* __STDC__ || DOS */ + ++#if defined(__svr4__) && defined(__sun__) ++#include <errno.h> ++#endif ++ + #ifdef USE_READLINE + # include <readline/readline.h> + /* prototypes for functions related to readline() */ +@@ -124,7 +132,9 @@ + + #if __STDC__ + char *ds(char *), *cat(char *, ...), *visible(int); ++#if !(defined(BSD) && BSD >= 199306) && !(defined(__sun__) && defined(__svr4__)) + int getopt(int,char **,char *); ++#endif + int main(int, char **); + int yywrap(void); + int dostdin(void); diff --git a/devel/cdecl/patches/patch-ab b/devel/cdecl/patches/patch-ab new file mode 100644 index 00000000000..dcd94100033 --- /dev/null +++ b/devel/cdecl/patches/patch-ab @@ -0,0 +1,39 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/11/11 12:53:17 agc Exp $ + +Small portability mods. + +--- Makefile 1999/11/11 12:30:44 1.1 ++++ Makefile 1999/11/11 12:32:11 +@@ -15,15 +15,17 @@ + # + # add -DUSE_READLINE To compile in support for the GNU readline library. + +-CFLAGS= -s -O2 -DUSE_READLINE +-CC= gcc ++CFLAGS+= -I${PREFIX}/include -DUSE_READLINE ++CC= gcc + LIBS= -lreadline -ltermcap + ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++ +-BINDIR= /usr/bin +-MANDIR= /usr/man/man1 +-CATDIR= /usr/man/cat1 +-INSTALL= install -c +-INSTALL_DATA= install -c -m 644 ++BINDIR= ${PREFIX}/bin ++MANDIR= ${PREFIX}/man/man1 ++CATDIR= ${PREFIX}/man/cat1 ++#INSTALL= install -c ++INSTALL_DATA= ${BSD_INSTALL_DATA} ++ ++all: cdecl + + cdecl: c++decl + ln c++decl cdecl +@@ -44,6 +46,7 @@ + + install: cdecl + $(INSTALL) cdecl $(BINDIR) ++ rm -f ${BINDIR}/c++decl + ln $(BINDIR)/cdecl $(BINDIR)/c++decl + $(INSTALL_DATA) cdecl.1 $(MANDIR) + $(INSTALL_DATA) c++decl.1 $(MANDIR) |