Hide a bunch of own declarations of standard functions; should fix the Solaris build. While here, stop stuffing pointers in ints on 64-bit platforms (other than Alpha, which it already knew about) and therefore bump PKGREVISION to 1.diff -r1.13 -r1.14 pkgsrc/lang/umb-scheme/Makefile
(dholland)
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.13 2008/03/04 16:38:13 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.14 2012/06/23 21:17:17 dholland Exp $ | |
2 | 2 | |||
3 | DISTNAME= umb-scheme-3.2 | 3 | DISTNAME= umb-scheme-3.2 | |
4 | PKGREVISION= 1 | |||
4 | CATEGORIES= lang | 5 | CATEGORIES= lang | |
5 | MASTER_SITES= ftp://ftp.cs.umb.edu/pub/scheme/ | 6 | MASTER_SITES= ftp://ftp.cs.umb.edu/pub/scheme/ | |
6 | EXTRACT_SUFX= .tar.Z | 7 | EXTRACT_SUFX= .tar.Z | |
7 | 8 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | COMMENT= UMB Scheme interpreter | 10 | COMMENT= UMB Scheme interpreter | |
10 | 11 | |||
11 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
12 | 13 | |||
13 | WRKSRC= ${WRKDIR}/scheme-3.2 | 14 | WRKSRC= ${WRKDIR}/scheme-3.2 | |
14 | BUILD_TARGET= default | 15 | BUILD_TARGET= default | |
15 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | 16 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | |
16 | 17 |
@@ -1,12 +1,12 @@ | @@ -1,12 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2006/07/22 00:09:18 minskim Exp $ | 1 | $NetBSD: distinfo,v 1.7 2012/06/23 21:17:17 dholland Exp $ | |
2 | 2 | |||
3 | SHA1 (umb-scheme-3.2.tar.Z) = eebce3a837bd57b1509cf91adab144d6ddb48b44 | 3 | SHA1 (umb-scheme-3.2.tar.Z) = eebce3a837bd57b1509cf91adab144d6ddb48b44 | |
4 | RMD160 (umb-scheme-3.2.tar.Z) = f56954e66568d04d23ff3d535ca72fb1d2f4b1b3 | 4 | RMD160 (umb-scheme-3.2.tar.Z) = f56954e66568d04d23ff3d535ca72fb1d2f4b1b3 | |
5 | Size (umb-scheme-3.2.tar.Z) = 583249 bytes | 5 | Size (umb-scheme-3.2.tar.Z) = 583249 bytes | |
6 | SHA1 (patch-aa) = aae6b46834d5ed4e60ec76badeeb3b7cef169993 | 6 | SHA1 (patch-aa) = aae6b46834d5ed4e60ec76badeeb3b7cef169993 | |
7 | SHA1 (patch-ab) = c2d359e957b4f205bd4728d87c43563bb90b231a | 7 | SHA1 (patch-ab) = c2d359e957b4f205bd4728d87c43563bb90b231a | |
8 | SHA1 (patch-ac) = 77eef2efa0efe5aaff06e3c5fb699628a1f6b857 | 8 | SHA1 (patch-ac) = 77eef2efa0efe5aaff06e3c5fb699628a1f6b857 | |
9 | SHA1 (patch-ad) = 65d047e28ab1323e4bda18e79cd9192878f96edd | 9 | SHA1 (patch-ad) = 65d047e28ab1323e4bda18e79cd9192878f96edd | |
10 | SHA1 (patch-ae) = 3c2c41683253749005c65bb49f07a43f4afddd02 | 10 | SHA1 (patch-ae) = 3c2c41683253749005c65bb49f07a43f4afddd02 | |
11 | SHA1 (patch-af) = c37635da09a3d2926172845fb93f7f3f97e53f7a | 11 | SHA1 (patch-af) = 6b20db6bf5583e3e1acf4506fc81e3c2a15f6f9f | |
12 | SHA1 (patch-ag) = 2fc118318a3615a4cbe21f5ede870f0e7f96586c | 12 | SHA1 (patch-ag) = 2fc118318a3615a4cbe21f5ede870f0e7f96586c |
@@ -1,13 +1,66 @@ | @@ -1,13 +1,66 @@ | |||
1 | $NetBSD: patch-af,v 1.1 2001/04/12 21:06:45 jtb Exp $ | 1 | $NetBSD: patch-af,v 1.2 2012/06/23 21:17:17 dholland Exp $ | |
2 | 2 | |||
3 | --- portable.h.orig Thu Apr 12 20:13:29 2001 | 3 | - use standard headers | |
4 | - remove own declarations of standard/system things | |||
5 | - use intptr_t rather than stuffing pointers into int | |||
6 | ||||
7 | --- portable.h.orig 1996-01-21 22:15:51.000000000 +0000 | |||
4 | +++ portable.h | 8 | +++ portable.h | |
5 | @@ -94,7 +94,7 @@ | 9 | @@ -35,9 +35,11 @@ For additional information about UMB Sch | |
10 | */ | |||
11 | ||||
12 | #include <stdio.h> | |||
13 | +#include <stdlib.h> | |||
14 | #include <ctype.h> | |||
15 | #include <errno.h> | |||
16 | #include <string.h> | |||
17 | +#include <stdint.h> | |||
18 | #include <math.h> | |||
19 | ||||
20 | /* Machine dependencies */ | |||
21 | @@ -60,11 +62,7 @@ For additional information about UMB Sch | |||
22 | /* Processors (eg the Alpha) having 64-bit addresses require special casting | |||
23 | in the architecture module. */ | |||
24 | ||||
25 | -#if defined(__alpha__) | |||
26 | -typedef long int Integral_Pointer; | |||
27 | -#else | |||
28 | -typedef int Integral_Pointer; | |||
29 | -#endif | |||
30 | +typedef intptr_t Integral_Pointer; | |||
31 | ||||
32 | ||||
33 | /* NEGATIVE_ADDRESSES is defined to be 1 iff memory addresses have a 1 in the | |||
34 | @@ -83,27 +81,29 @@ typedef int Integral_Pointer; | |||
35 | /* The following declarations ought not to be necessary for C environments | |||
36 | that support the ANSI C Standard. */ | |||
37 | ||||
38 | +#if 0 | |||
39 | extern void * malloc( /* size_t size */ ); | |||
40 | extern void free( /* char *ptr */ ); | |||
41 | extern char * getenv( /* const char *name */ ); | |||
42 | extern int system( /* const char command */ ); | |||
43 | extern void exit( /* int status */ ); | |||
44 | extern int abs( /* int x */ ); | |||
45 | +#endif | |||
46 | ||||
47 | /* IF YOUR ENVIRONMENT HAS (any standard ANSI C library ought to have) | |||
6 | a float.h defns file then replace the definition of DBL_MIN with | 48 | a float.h defns file then replace the definition of DBL_MIN with | |
7 | an #include <float.h> */ | 49 | an #include <float.h> */ | |
8 | 50 | |||
9 | -#define DBL_MIN 10e-307 | 51 | -#define DBL_MIN 10e-307 | |
10 | +/* #define DBL_MIN 10e-307 */ | 52 | +/* #define DBL_MIN 10e-307 */ | |
11 | 53 | |||
12 | #ifdef sun | 54 | -#ifdef sun | |
55 | +#if 0 | |||
13 | extern int fclose( /* FILE *stream */ ); | 56 | extern int fclose( /* FILE *stream */ ); | |
57 | extern int ungetc( /* int c, FILE *stream */ ); | |||
58 | extern int fprintf( /* FILE *stream, const char *format, ... */ ); | |||
59 | extern int _filbuf(), _flsbuf(); /* Yes, I know; talk to Sun! */ | |||
60 | #endif | |||
61 | ||||
62 | -#ifdef sun386 | |||
63 | +#if 0 | |||
64 | extern int sprintf( /* char *s, const char *format, ... */ ); | |||
65 | extern char * memcpy( /* void *dest, const void *src, size_t len */ ); | |||
66 | #endif |