summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorminoura <minoura>2000-11-06 05:31:42 +0000
committerminoura <minoura>2000-11-06 05:31:42 +0000
commite2458d43c10cb094de4fd9a164b581ff2ea9e3a0 (patch)
tree54e337c3647ade0d7a4dab0e736b830e158acdcc /cross
parent39c868ff934b78752a31b8de05c5592f45c1e5ff (diff)
downloadpkgsrc-e2458d43c10cb094de4fd9a164b581ff2ea9e3a0.tar.gz
Make this package work.
From i386-netbsdpe.
Diffstat (limited to 'cross')
-rw-r--r--cross/i386-cygwin32/Makefile15
-rw-r--r--cross/i386-cygwin32/files/featuretest.h21
-rw-r--r--cross/i386-cygwin32/files/i386_limits.h98
-rw-r--r--cross/i386-cygwin32/files/limits.h87
-rw-r--r--cross/i386-cygwin32/files/syslimits.h85
-rw-r--r--cross/i386-cygwin32/pkg/PLIST7
6 files changed, 305 insertions, 8 deletions
diff --git a/cross/i386-cygwin32/Makefile b/cross/i386-cygwin32/Makefile
index 715be5d7754..16240601f24 100644
--- a/cross/i386-cygwin32/Makefile
+++ b/cross/i386-cygwin32/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.2 2000/10/13 13:02:02 fredb Exp $
+# $NetBSD: Makefile,v 1.3 2000/11/06 05:31:42 minoura Exp $
#
DISTVERSION= 1.0.0.0
DISTFILES= # none
-#MAINTAINER= packages@netbsd.org
-#HOMEPAGE= http://www.netbsd.org/
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.netbsd.org/
WRKSRC= ${WRKDIR}/${EGCS_DISTNAME}
@@ -19,9 +19,10 @@ TARGET_ARCH= i386-cygwin32
BINUTILS_EXTRAS= dlltool windres
-# XXX "fixincludes" needs to know about NetBSD's
-# XXX <sys/syslimits.h> and <sys/featuretest.h>.
-# XXX See PR pkg/11187"
-BROKEN= "fixincludes" needs fixing
+post-configure:
+ ${CP} ${FILESDIR}/i386_limits.h ${SYS_INCLUDE}/machine/limits.h
+ ${CP} ${FILESDIR}/syslimits.h ${SYS_INCLUDE}/sys/
+ ${CP} ${FILESDIR}/featuretest.h ${SYS_INCLUDE}/sys/
+ ${CP} ${FILESDIR}/limits.h ${SYS_INCLUDE}/
.include "../COMMON/cross.mk"
diff --git a/cross/i386-cygwin32/files/featuretest.h b/cross/i386-cygwin32/files/featuretest.h
new file mode 100644
index 00000000000..c88c8b5dd82
--- /dev/null
+++ b/cross/i386-cygwin32/files/featuretest.h
@@ -0,0 +1,21 @@
+/* $NetBSD: featuretest.h,v 1.1 2000/11/06 05:31:43 minoura Exp $ /*
+/* from: NetBSD: featuretest.h,v 1.2 1998/10/24 16:30:56 kleink Exp */
+
+/*
+ * Written by Klaus Klein <kleink@NetBSD.ORG>, February 2, 1998.
+ * Public domain.
+ */
+
+#ifndef _SYS_FEATURETEST_H_
+#define _SYS_FEATURETEST_H_
+
+#if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE)
+#define _POSIX_C_SOURCE 1L
+#endif
+
+#if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \
+ !defined(_REENTRANT)
+#define _REENTRANT
+#endif
+
+#endif /* !defined(_SYS_FEATURETEST_H_) */
diff --git a/cross/i386-cygwin32/files/i386_limits.h b/cross/i386-cygwin32/files/i386_limits.h
new file mode 100644
index 00000000000..88437fa114c
--- /dev/null
+++ b/cross/i386-cygwin32/files/i386_limits.h
@@ -0,0 +1,98 @@
+/* $NetBSD: i386_limits.h,v 1.1 2000/11/06 05:31:43 minoura Exp $ */
+/* from: NetBSD: limits.h,v 1.15 2000/08/08 22:31:13 tshiozak Exp */
+
+/*
+ * Copyright (c) 1988 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * @(#)limits.h 7.2 (Berkeley) 6/28/90
+ */
+
+#ifndef _MACHINE_LIMITS_H_
+#define _MACHINE_LIMITS_H_
+
+#define CHAR_BIT 8 /* number of bits in a char */
+#define MB_LEN_MAX 32 /* no multibyte characters */
+
+#define SCHAR_MAX 0x7f /* max value for a signed char */
+#define SCHAR_MIN (-0x7f-1) /* min value for a signed char */
+
+#define UCHAR_MAX 0xffU /* max value for an unsigned char */
+#define CHAR_MAX 0x7f /* max value for a char */
+#define CHAR_MIN (-0x7f-1) /* min value for a char */
+
+#define USHRT_MAX 0xffffU /* max value for an unsigned short */
+#define SHRT_MAX 0x7fff /* max value for a short */
+#define SHRT_MIN (-0x7fff-1) /* min value for a short */
+
+#define UINT_MAX 0xffffffffU /* max value for an unsigned int */
+#define INT_MAX 0x7fffffff /* max value for an int */
+#define INT_MIN (-0x7fffffff-1) /* min value for an int */
+
+#define ULONG_MAX 0xffffffffUL /* max value for an unsigned long */
+#define LONG_MAX 0x7fffffffL /* max value for a long */
+#define LONG_MIN (-0x7fffffffL-1) /* min value for a long */
+
+#if !defined(_ANSI_SOURCE)
+#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
+
+#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+ defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L
+#define ULLONG_MAX 0xffffffffffffffffULL /* max unsigned long long */
+#define LLONG_MAX 0x7fffffffffffffffLL /* max signed long long */
+#define LLONG_MIN (-0x7fffffffffffffffLL-1) /* min signed long long */
+#endif
+
+#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
+#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
+
+#define UQUAD_MAX 0xffffffffffffffffULL /* max unsigned quad */
+#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */
+#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */
+
+#endif /* !_POSIX_C_SOURCE && !_XOPEN_SOURCE */
+#endif /* !_ANSI_SOURCE */
+
+#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \
+ defined(_XOPEN_SOURCE)
+#define LONG_BIT 32
+#define WORD_BIT 32
+
+#define DBL_DIG 15
+#define DBL_MAX 1.7976931348623157E+308
+#define DBL_MIN 2.2250738585072014E-308
+
+#define FLT_DIG 6
+#define FLT_MAX 3.40282347E+38F
+#define FLT_MIN 1.17549435E-38F
+#endif
+
+#endif /* _MACHINE_LIMITS_H_ */
diff --git a/cross/i386-cygwin32/files/limits.h b/cross/i386-cygwin32/files/limits.h
new file mode 100644
index 00000000000..9e68fcae787
--- /dev/null
+++ b/cross/i386-cygwin32/files/limits.h
@@ -0,0 +1,87 @@
+/* $NetBSD: limits.h,v 1.1 2000/11/06 05:31:43 minoura Exp $ */
+/* from: NetBSD: limits.h,v 1.13 1999/09/27 16:24:39 kleink Exp */
+
+/*
+ * Copyright (c) 1988, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * @(#)limits.h 8.2 (Berkeley) 1/4/94
+ */
+
+#ifndef _LIMITS_H_
+#define _LIMITS_H_
+
+#if !defined(_ANSI_SOURCE)
+#define _POSIX_ARG_MAX 4096
+#define _POSIX_CHILD_MAX 6
+#define _POSIX_LINK_MAX 8
+#define _POSIX_LOGIN_NAME_MAX 9
+#define _POSIX_MAX_CANON 255
+#define _POSIX_MAX_INPUT 255
+#define _POSIX_NAME_MAX 14
+#define _POSIX_NGROUPS_MAX 0
+#define _POSIX_OPEN_MAX 16
+#define _POSIX_PATH_MAX 255
+#define _POSIX_PIPE_BUF 512
+#define _POSIX_SSIZE_MAX 32767
+#define _POSIX_STREAM_MAX 8
+#define _POSIX_TZNAME_MAX 3
+
+#define _POSIX2_BC_BASE_MAX 99
+#define _POSIX2_BC_DIM_MAX 2048
+#define _POSIX2_BC_SCALE_MAX 99
+#define _POSIX2_BC_STRING_MAX 1000
+#define _POSIX2_COLL_WEIGHTS_MAX 2
+#define _POSIX2_EXPR_NEST_MAX 32
+#define _POSIX2_LINE_MAX 2048
+#define _POSIX2_RE_DUP_MAX 255
+
+#if !defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
+#define _XOPEN_IOV_MAX 16
+
+#define PASS_MAX 128
+
+#define NL_ARGMAX 9
+#define NL_LANGMAX 14
+#define NL_MSGMAX 32767
+#define NL_NMAX 1
+#define NL_SETMAX 255
+#define NL_TEXTMAX 2048
+
+#define TMP_MAX 308915776
+#endif /* !_POSIX_C_SOURCE || _XOPEN_SOURCE */
+
+#endif /* !_ANSI_SOURCE */
+
+#include <machine/limits.h>
+#include <sys/syslimits.h>
+
+#endif /* !_LIMITS_H_ */
diff --git a/cross/i386-cygwin32/files/syslimits.h b/cross/i386-cygwin32/files/syslimits.h
new file mode 100644
index 00000000000..c87d73a8025
--- /dev/null
+++ b/cross/i386-cygwin32/files/syslimits.h
@@ -0,0 +1,85 @@
+/* $NetBSD: syslimits.h,v 1.1 2000/11/06 05:31:43 minoura Exp $ */
+/* from: NetBSD: syslimits.h,v 1.18 1999/09/27 16:24:40 kleink Exp */
+
+/*
+ * Copyright (c) 1988, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * @(#)syslimits.h 8.1 (Berkeley) 6/2/93
+ */
+
+#ifndef _SYS_SYSLIMITS_H_
+#define _SYS_SYSLIMITS_H_
+
+#include <sys/featuretest.h>
+
+#if !defined(_ANSI_SOURCE)
+#define ARG_MAX (256 * 1024) /* max bytes for an exec function */
+#define CHILD_MAX 80 /* max simultaneous processes */
+#define GID_MAX 2147483647U /* max value for a gid_t (2^31-2) */
+#define LINK_MAX 32767 /* max file link count */
+#define MAX_CANON 255 /* max bytes in term canon input line */
+#define MAX_INPUT 255 /* max bytes in terminal input */
+#define NAME_MAX 255 /* max bytes in a file name */
+#define NGROUPS_MAX 16 /* max supplemental group id's */
+#define UID_MAX 2147483647U /* max value for a uid_t (2^31-2) */
+#define OPEN_MAX 64 /* max open files per process */
+#define PATH_MAX 1024 /* max bytes in pathname */
+#define PIPE_BUF 512 /* max bytes for atomic pipe writes */
+
+#define BC_BASE_MAX INT_MAX /* max ibase/obase values in bc(1) */
+#define BC_DIM_MAX 65535 /* max array elements in bc(1) */
+#define BC_SCALE_MAX INT_MAX /* max scale value in bc(1) */
+#define BC_STRING_MAX INT_MAX /* max const string length in bc(1) */
+#define COLL_WEIGHTS_MAX 2 /* max weights for order keyword */
+#define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */
+#define LINE_MAX 2048 /* max bytes in an input line */
+#define RE_DUP_MAX 255 /* max RE's in interval notation */
+
+/*
+ * IEEE Std 1003.1c-95, adopted in X/Open CAE Specification Issue 5 Version 2
+ */
+#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \
+ (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500
+#define LOGIN_NAME_MAX 17 /* max login name length incl. NUL */
+#endif
+
+/*
+ * X/Open CAE Specification Issue 5 Version 2
+ */
+#if !defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
+#define IOV_MAX 1024 /* max # of iovec's for readv(2) etc. */
+#define NZERO 20 /* default "nice" */
+#endif /* !_POSIX_C_SOURCE || _XOPEN_SOURCE */
+
+#endif /* !_ANSI_SOURCE */
+
+#endif /* !_SYS_SYSLIMITS_H_ */
diff --git a/cross/i386-cygwin32/pkg/PLIST b/cross/i386-cygwin32/pkg/PLIST
index 1711981dc69..4a3dcdfcf21 100644
--- a/cross/i386-cygwin32/pkg/PLIST
+++ b/cross/i386-cygwin32/pkg/PLIST
@@ -1 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1 2000/05/31 17:54:28 oki Exp $
+@comment $NetBSD: PLIST,v 1.2 2000/11/06 05:31:44 minoura Exp $
+bin/${TARGET_ARCH}-dlltool
+bin/${TARGET_ARCH}-windres
+${TARGET_ARCH}/bin/dlltool
+${TARGET_ARCH}/bin/windres
+${TARGET_ARCH}/include/assert.h