summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2002-04-06 16:49:15 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2002-04-06 16:49:15 +0000
commitc7f77d10289d03692a8679eea527acb84244fa77 (patch)
tree6aac49649d170113f8e059122ede6a4e55ec9313 /devel
parentd1c0c0e0be76d9a75ddb08f078b86f63481de50a (diff)
downloadpkgsrc-c7f77d10289d03692a8679eea527acb84244fa77.tar.gz
fix compilation on alpha. Also add missing header. While here, disable
on non-i386 because lcc appears to emit i386 assembly code even on my alpha. There appears to be some amount of work involved with porting this to non-i386.
Diffstat (limited to 'devel')
-rw-r--r--devel/lcc/Makefile6
-rw-r--r--devel/lcc/distinfo4
-rw-r--r--devel/lcc/patches/patch-ad13
-rw-r--r--devel/lcc/patches/patch-ae8
4 files changed, 29 insertions, 2 deletions
diff --git a/devel/lcc/Makefile b/devel/lcc/Makefile
index 6cdce46a3b5..b07fdcea96a 100644
--- a/devel/lcc/Makefile
+++ b/devel/lcc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2001/07/21 10:22:31 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2002/04/06 16:49:15 dmcmahill Exp $
DISTNAME= lcc-4.1
CATEGORIES= devel lang
@@ -10,6 +10,10 @@ COMMENT= local ANSI C compiler for a variety of platforms
MAKE_ENV+= BUILDDIR=${WRKSRC}/bin HOSTFILE=etc/netbsd.c
+# it builds and runs on others (like alpha) but still
+# seems to emit i386 assembler
+ONLY_FOR_PLATFORM= *-*-i386
+
.include "../../mk/bsd.prefs.mk"
BUILDDIR= ${WRKSRC}/src
diff --git a/devel/lcc/distinfo b/devel/lcc/distinfo
index a21aaeab67f..7ec63572532 100644
--- a/devel/lcc/distinfo
+++ b/devel/lcc/distinfo
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.1.1.1 2001/07/21 02:51:35 gmcgarry Exp $
+$NetBSD: distinfo,v 1.2 2002/04/06 16:49:15 dmcmahill Exp $
SHA1 (lcc-4.1.tar.gz) = aa5a0dd3c5317a8aa176e50d4c8c8799ae61fe8c
Size (lcc-4.1.tar.gz) = 664562 bytes
SHA1 (patch-aa) = d8ccdc999f0afe95154037762890bcce129943b7
SHA1 (patch-ab) = 516d8aa8e48e080b673f1e1a4b6c847ae1906dd4
SHA1 (patch-ac) = ce17a2edf165276869e1ecedd243f331d7420cbb
+SHA1 (patch-ad) = 2a1df81a58999cc4bc1c1e42055be03655cbbd8e
+SHA1 (patch-ae) = 975c42313fb3af4c0e0817c50d8ec652ebef808e
diff --git a/devel/lcc/patches/patch-ad b/devel/lcc/patches/patch-ad
new file mode 100644
index 00000000000..b456736688f
--- /dev/null
+++ b/devel/lcc/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2002/04/06 16:49:16 dmcmahill Exp $
+
+--- cpp/cpp.h.orig Mon May 26 16:19:10 1997
++++ cpp/cpp.h
+@@ -11,7 +11,7 @@
+ #define NULL 0
+ #endif
+
+-#ifndef __alpha
++#if defined(__NetBSD__) || !defined(__alpha)
+ typedef unsigned char uchar;
+ #endif
+
diff --git a/devel/lcc/patches/patch-ae b/devel/lcc/patches/patch-ae
new file mode 100644
index 00000000000..cd103bf44aa
--- /dev/null
+++ b/devel/lcc/patches/patch-ae
@@ -0,0 +1,8 @@
+$NetBSD: patch-ae,v 1.1 2002/04/06 16:49:16 dmcmahill Exp $
+
+--- lburg/gram.y.orig Fri Nov 21 11:59:34 1997
++++ lburg/gram.y
+@@ -2,2 +2,3 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "lburg.h"