import pcc; ok sthen@
portable C compiler from Eric Radman
This commit is contained in:
parent
ef9f3e3773
commit
8e12a935be
37
lang/pcc/Makefile
Normal file
37
lang/pcc/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/04/19 14:47:17 okan Exp $
|
||||
|
||||
COMMENT = portable C compiler
|
||||
|
||||
PCCVER = 1.0.0
|
||||
DISTNAME = pcc-${PCCVER}
|
||||
EXTRACT_SUFX = .tgz
|
||||
|
||||
CATEGORIES = lang
|
||||
|
||||
HOMEPAGE = http://pcc.ludd.ltu.se/
|
||||
|
||||
MAINTAINER = Eric Radman <ericshane@eradman.com>
|
||||
|
||||
# Other architectures not fully supported yet
|
||||
ONLY_FOR_ARCHS = i386 amd64
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += c
|
||||
|
||||
MASTER_SITES = http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/ \
|
||||
ftp://pcc.ludd.ltu.se/pub/pcc-releases/
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
CONFIG = ${MACHINE_ARCH:S/amd64/x86_64/}-unknown-openbsd${OSREV}
|
||||
SUBST_VARS = PCCVER CONFIG
|
||||
|
||||
do-regress:
|
||||
cd ${WRKBUILD} && ./cc/cc/pcc --version
|
||||
|
||||
.include <bsd.port.mk>
|
5
lang/pcc/distinfo
Normal file
5
lang/pcc/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (pcc-1.0.0.tgz) = bl2FHuV/5YcC/k6A7NH4Ug==
|
||||
RMD160 (pcc-1.0.0.tgz) = pVnpM0GUXTJXqAPu32SvQiPlk1U=
|
||||
SHA1 (pcc-1.0.0.tgz) = qZTWv3Wuga3XDTVHi1n8p8Y71d8=
|
||||
SHA256 (pcc-1.0.0.tgz) = WALbukbW6j+brapVuQRKBBa7QQAgwkpcKoouqvQRVss=
|
||||
SIZE (pcc-1.0.0.tgz) = 652308
|
19
lang/pcc/pkg/DESCR
Normal file
19
lang/pcc/pkg/DESCR
Normal file
@ -0,0 +1,19 @@
|
||||
The 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. 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.
|
||||
|
||||
The compiler is conceptually structured in two parts; pass1 which is
|
||||
language-dependent, does parsing, typechecking and build trees, and
|
||||
pass2 which is mostly language-independent.
|
||||
|
||||
About 50% of the frontend code and 80% of the backend code has been
|
||||
rewritten. Most stuff is written by Anders Magnusson, with the
|
||||
exception of the data-flow analysis part and the SSA conversion code
|
||||
which is written by Peter A Jonsson, and the Mips port that were written
|
||||
as part of a project by undergraduate students at LTU.
|
12
lang/pcc/pkg/PLIST
Normal file
12
lang/pcc/pkg/PLIST
Normal file
@ -0,0 +1,12 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/04/19 14:47:17 okan Exp $
|
||||
@bin bin/pcc
|
||||
lib/pcc/
|
||||
lib/pcc/${CONFIG}/
|
||||
lib/pcc/${CONFIG}/${PCCVER}.RELEASE/
|
||||
lib/pcc/${CONFIG}/${PCCVER}.RELEASE/include/
|
||||
lib/pcc/${CONFIG}/${PCCVER}.RELEASE/lib/
|
||||
@bin libexec/ccom
|
||||
@bin libexec/cpp
|
||||
@man man/man1/ccom.1
|
||||
@man man/man1/cpp.1
|
||||
@man man/man1/pcc.1
|
Loading…
x
Reference in New Issue
Block a user