[Midnightbsd-cvs] mports: mports/lang: Add pcc, a C compiler under the BSD license.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon May 12 23:24:45 EDT 2008


Log Message:
-----------
Add pcc, a C compiler under the BSD license.  

Based on the FreeBSD port.

Modified Files:
--------------
    mports/lang:
        Makefile (r1.39 -> r1.40)

Added Files:
-----------
    mports/lang/pcc:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
    mports/lang/pcc/files:
        ccconfig.h (r1.1)
        f77config.h (r1.1)

-------------- next part --------------
--- /dev/null
+++ lang/pcc/pkg-descr
@@ -0,0 +1,10 @@
+This compiler is based on the original Portable C Compiler by S. C. Johnson,
+written in the late 70's.  Even though much of the compiler has been
+rewritten, some of the basics still remain.  
+
+The intention is to write a C99 compiler while still keeping it small, simple,
+fast and understandable.  I think of it as if it shall be able to compile and
+run on PDP11 (even if it may not happen in reality).  But with this in mind it
+becomes important to think twice about what algorithms are used.
+
+WWW:	http://www.ludd.ltu.se/~ragge/pcc/
--- /dev/null
+++ lang/pcc/Makefile
@@ -0,0 +1,40 @@
+# ex:ts=8
+# Ports collection makefile for:  pcc
+# Date created:			  May 12, 2008
+# Whom:				  Lucas Holt <luke at midnightbsd.org>
+#
+# $MidnightBSD: mports/lang/pcc/Makefile,v 1.1 2008/05/13 03:24:43 laffer1 Exp $
+#
+
+PORTNAME=	pcc
+DATESPEC=	080213
+PORTVERSION=	0.9.9.${DATESPEC}
+PORTREVISION?=	0
+CATEGORIES=	lang
+MASTER_SITES=	ftp://pcc.ludd.ltu.se/pub/pcc/ \
+		http://pcc.ludd.ltu.se/ftp/pub/pcc/ \
+		ftp://226.net120.skekraft.net/pcc/
+DISTNAME=	pcc-${DATESPEC}
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	S.C.Johnson's Portable C Compiler
+LICENSE=	bsd4
+#it's a mix of several BSD licenses, and we'll go worst case.
+
+ONLY_FOR_ARCHS=	i386
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DATESPEC}
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV+=	YACC=${YACC}
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd6.0
+USE_GMAKE=	yes
+
+PLIST_FILES=	bin/pcc libexec/ccom libexec/cpp \
+		man/man1/pcc.1 man/man1/cpp.1 man/man1/ccom.1
+
+pre-configure:
+	${MKDIR} ${WRKSRC}/os/freebsd
+	${LN} -sf ${FILESDIR}/*.h ${WRKSRC}/os/freebsd
+
+.include <bsd.port.mk>
--- /dev/null
+++ lang/pcc/distinfo
@@ -0,0 +1,3 @@
+MD5 (pcc-080213.tgz) = ee74d9bc9e7bbcdf4d24d4bf678573c0
+SHA256 (pcc-080213.tgz) = ba3e32dcbc5937753165f819ff0c37286017833d49194ff0449052d650f405f4
+SIZE (pcc-080213.tgz) = 429478
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/lang/Makefile,v
retrieving revision 1.39
retrieving revision 1.40
diff -L lang/Makefile -L lang/Makefile -u -r1.39 -r1.40
--- lang/Makefile
+++ lang/Makefile
@@ -1,5 +1,4 @@
 # $MidnightBSD$
-#
 
     COMMENT = Programming languages
 
@@ -30,6 +29,7 @@
     SUBDIR += p5-List-MoreUtils
     SUBDIR += p5-Scalar-List-Utils
     SUBDIR += p5-ePerl
+    SUBDIR += pcc
     SUBDIR += python
     SUBDIR += python21
     SUBDIR += python22
--- /dev/null
+++ lang/pcc/files/f77config.h
@@ -0,0 +1,55 @@
+/* $FreeBSD: ports/lang/pcc/files/f77config.h,v 1.1 2007/09/18 02:48:52 obrien Exp $ */
+/*	$Id: f77config.h,v 1.1 2005/04/17 20:22:18 ragge Exp $	*/
+
+/*
+ * Copyright (c) 2004 Anders Magnusson (ragge at ludd.luth.se).
+ * 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. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
+ */
+
+/*
+ * Various settings that controls how the f77 compiler works.
+ */
+
+#if 0
+/* common cpp predefines */
+#define CPPADD	{ "-D__FreeBSD__", "-D__ELF__", NULL, }
+#define DYNLINKER { "-dynamic-linker", "/libexec/ld-elf.so.1", NULL }
+#define CRT0FILE "/usr/lib/crt0.o"
+#define STARTFILES { "/usr/lib/crti.o", "/usr/lib/crtbegin.o", NULL }
+#define ENDFILES { "/usr/lib/crtend.o", "/usr/lib/crtn.o", NULL }
+#endif
+#define PASS1NAME	"/usr/lib/f77pass1"
+#define PASS2NAME	"/lib/f1"
+#define PASS2OPT	"/lib/c2"
+#define NOFLPASS2	"/lib/fc1"
+
+#define ASMNAME		"/usr/bin/as"
+#define LDNAME		"/usr/bin/ld"
+#define FOOTNAME	"/usr/lib/crt0.o"
+#define PROFFOOT	"/usr/lib/mcrt0.o"
+#define NOFLFOOT	"/usr/lib/fcrt0.o"
+#define NOFLPROFFOOT	"/usr/lib/fmcrt0.o"
+#define LIBLIST		{ "-lF77", "-lI77", "-lm", "-lc", "-l", NULL };
+
--- /dev/null
+++ lang/pcc/files/ccconfig.h
@@ -0,0 +1,50 @@
+/* $FreeBSD: ports/lang/pcc/files/ccconfig.h,v 1.3 2007/12/14 17:36:00 obrien Exp $ */
+/*	$Id: ccconfig.h,v 1.2 2004/12/02 21:32:25 ragge Exp $	*/
+
+/*
+ * Copyright (c) 2007 David O'Brien
+ * Copyright (c) 2004 Anders Magnusson (ragge at ludd.luth.se).
+ * 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. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
+ */
+
+/*
+ * Various settings that controls how the C compiler works.
+ */
+
+/* common cpp predefines */
+#define CPPADD	{ "-D__FreeBSD__", "-D__ELF__", "-D__unix__=1", "-D__unix=1", "-D__STDC__=1", NULL, }
+#define DYNLINKER { "-dynamic-linker", "/libexec/ld-elf.so.1", NULL }
+#define CRT0FILE "/usr/lib/crt1.o"
+#define STARTFILES { "/usr/lib/crti.o", "/usr/lib/crtbegin.o", NULL }
+#define	ENDFILES { "/usr/lib/crtend.o", "/usr/lib/crtn.o", NULL }
+#define STARTLABEL "_start"
+
+#if defined(mach_i386) || defined(mach_x86)
+#define	CPPMDADD { "-D__i386__", "-D__i386", NULL, }
+#else
+#error defines for arch missing
+#endif
+
+#define	STABS


More information about the Midnightbsd-cvs mailing list