summaryrefslogtreecommitdiff
path: root/devel/cc65
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>2000-05-09 18:32:04 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>2000-05-09 18:32:04 +0000
commit0cb59f9721e40290fa999adb32ac4d440603ebca (patch)
treec27918d95a0d56377d8cad4a9744223d2e891199 /devel/cc65
parentupdate to 2.53. (diff)
Add cc65, a C cross-compiler for 6502-based systems (C64, Apple ][, etc).
Includes a 65816 assembler and linker.
Notes
Notes: svn path=/head/; revision=28384
Diffstat (limited to 'devel/cc65')
-rw-r--r--devel/cc65/Makefile65
-rw-r--r--devel/cc65/distinfo1
-rw-r--r--devel/cc65/files/patch-a12
-rw-r--r--devel/cc65/pkg-comment1
-rw-r--r--devel/cc65/pkg-descr19
-rw-r--r--devel/cc65/pkg-plist79
6 files changed, 177 insertions, 0 deletions
diff --git a/devel/cc65/Makefile b/devel/cc65/Makefile
new file mode 100644
index 000000000000..0e6bbfa38225
--- /dev/null
+++ b/devel/cc65/Makefile
@@ -0,0 +1,65 @@
+# Ports collection makefile for: cc65
+# Date created: 8 May 2000
+# Whom: Tim Vanderhoek <hoek@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cc65
+PORTVERSION= 2.4.1
+CATEGORIES= devel
+MASTER_SITES= http://people.FreeBSD.org/~hoek/dists/ \
+ ftp://ftp.musoftware.de/pub/uz/cc65/
+# ftp://ftp.us.musoftware.de/pub/uz/cc65/
+# US musoftware mirror down; main site doesn't like fetch(1)
+WRKSRC= ${WRKDIR}/cc65-2.4.1
+DISTNAME= cc65-sources-2.4.1
+
+MAINTAINER= hoek@FreeBSD.org
+
+CFLAGS+= -DCC65_INC=\\\"${PREFIX}/lib/cc65/include\\\" \
+ -DCC65_LIB=\\\"${PREFIX}/lib/cc65/lib\\\"
+
+DOCFILES= doc/ar65.txt doc/ca65.txt doc/cc65.txt doc/cl65.txt doc/coding.txt \
+ doc/compile.txt doc/debugging.txt doc/internal.doc doc/intro.txt \
+ doc/ld65.txt doc/library.txt doc/newvers.txt doc/readme.txt BUGS \
+ CREDITS announce.txt
+
+BINFILES= binutils/ar65/ar65 binutils/ca65/ca65 binutils/ld65/ld65 \
+ cc65/cc65 cl65/cl65
+
+CC65INCFILES= 6502.h _6525.h _6526.h _6545.h _6551.h _sid.h _vdc.h _vic.h \
+ ace.h apple2.h assert.h c128.h c64.h cbm.h cbm610.h conio.h ctype.h \
+ dbg.h errno.h fcntl.h iso646.h joystick.h limits.h locale.h mouse.h \
+ nes.h pet.h plus4.h rs232.h setjmp.h stdarg.h stddef.h stdio.h \
+ stdlib.h string.h time.h
+
+CC65LIBFILES= apple2.lib apple2.o c128.lib c128.o c64.lib c64.o cbm610.lib \
+ cbm610.o pet.lib pet.o plus4.lib plus4.o
+
+SAMPLES= Makefile c1541.rsp hello.c nachtm.c sieve.c
+
+do-build:
+ cd ${WRKSRC}/cc65 && ${SETENV} ${MAKE_ENV} ${GMAKE} -ef make/gcc.mak
+ cd ${WRKSRC}/cc65 && ${SETENV} ${MAKE_ENV} ${GMAKE} -ef make/gcc.mak
+ cd ${WRKSRC}/binutils && ${SETENV} ${MAKE_ENV} ${GMAKE} -ef make/gcc.mak
+ cd ${WRKSRC}/binutils && ${SETENV} ${MAKE_ENV} ${GMAKE} -ef make/gcc.mak
+ cd ${WRKSRC}/cl65 && ${SETENV} ${MAKE_ENV} ${GMAKE} -ef make/gcc.mak
+ cd ${WRKSRC}/cl65 && ${SETENV} ${MAKE_ENV} ${GMAKE} -ef make/gcc.mak
+ cd ${WRKSRC}/lib && ${GMAKE} all
+
+do-install:
+ ${MKDIR} ${PREFIX}/share/doc/cc65
+ ${MKDIR} ${PREFIX}/lib/cc65/include
+ ${MKDIR} ${PREFIX}/lib/cc65/lib
+ ${MKDIR} ${PREFIX}/share/doc/cc65/samples
+ ${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${PREFIX}/share/doc/cc65
+ ${INSTALL_DATA} ${SAMPLES:S,^,${WRKSRC}/samples/,} \
+ ${PREFIX}/share/doc/cc65/samples
+ ${INSTALL_PROGRAM} ${BINFILES:S,^,${WRKSRC}/,} ${PREFIX}/bin
+ ${INSTALL_DATA} ${CC65INCFILES:S,^,${WRKSRC}/include/,} \
+ ${PREFIX}/lib/cc65/include
+ ${INSTALL_DATA} ${CC65LIBFILES:S,^,${WRKSRC}/lib/,} \
+ ${PREFIX}/lib/cc65/lib
+
+.include <bsd.port.mk>
diff --git a/devel/cc65/distinfo b/devel/cc65/distinfo
new file mode 100644
index 000000000000..a74aa1e51b75
--- /dev/null
+++ b/devel/cc65/distinfo
@@ -0,0 +1 @@
+MD5 (cc65-sources-2.4.1.tar.gz) = 5bcc8bcbf367bc94d004da142fae110b
diff --git a/devel/cc65/files/patch-a b/devel/cc65/files/patch-a
new file mode 100644
index 000000000000..57fdbecd824a
--- /dev/null
+++ b/devel/cc65/files/patch-a
@@ -0,0 +1,12 @@
+diff -ur3 samples/Makefile samples/Makefile
+--- samples/Makefile Mon May 8 18:07:09 2000
++++ samples/Makefile Mon May 8 18:08:49 2000
+@@ -1,6 +1,8 @@
+ #
+ # Makefile for cc65 samples
+ #
++# This Makefile requires GNU make
++#
+
+ # Enter the target system here
+ SYS = c64
diff --git a/devel/cc65/pkg-comment b/devel/cc65/pkg-comment
new file mode 100644
index 000000000000..7d035bcf1064
--- /dev/null
+++ b/devel/cc65/pkg-comment
@@ -0,0 +1 @@
+Cross-compiler for 6502-based systems, includes 65816 assembler
diff --git a/devel/cc65/pkg-descr b/devel/cc65/pkg-descr
new file mode 100644
index 000000000000..119726d8d0d1
--- /dev/null
+++ b/devel/cc65/pkg-descr
@@ -0,0 +1,19 @@
+CC65 is a C cross-compiler for 6502 systems. CC65 includes a
+powerful macro assembler, a debugger, an archiver, and a highly
+configurable linker. The linker supports overlays, ROMable code,
+split output, among other features. The compiler supports a large
+subset of ISO C (as per the ISO 9899 specification).
+
+It is easy to write code for standalone 6502 boards (target none). In
+addition, particular support for the following targets is included:
+
+ - C64
+ - C128
+ - C16, C116, Plus/4
+ - CBM 600/700 family (programs run in bank 1)
+ - Newer PET machines (not 2001)
+ - The Apple ][
+
+The assembler and linker also support 65816 as a target.
+
+WWW: http://www.von-bassewitz.de/uz/cc65/
diff --git a/devel/cc65/pkg-plist b/devel/cc65/pkg-plist
new file mode 100644
index 000000000000..6a8dfff46df2
--- /dev/null
+++ b/devel/cc65/pkg-plist
@@ -0,0 +1,79 @@
+share/doc/cc65/ar65.txt
+share/doc/cc65/ca65.txt
+share/doc/cc65/cc65.txt
+share/doc/cc65/cl65.txt
+share/doc/cc65/coding.txt
+share/doc/cc65/compile.txt
+share/doc/cc65/debugging.txt
+share/doc/cc65/internal.doc
+share/doc/cc65/intro.txt
+share/doc/cc65/ld65.txt
+share/doc/cc65/library.txt
+share/doc/cc65/newvers.txt
+share/doc/cc65/readme.txt
+share/doc/cc65/BUGS
+share/doc/cc65/CREDITS
+share/doc/cc65/announce.txt
+bin/ar65
+bin/ca65
+bin/ld65
+bin/cc65
+bin/cl65
+lib/cc65/include/6502.h
+lib/cc65/include/_6525.h
+lib/cc65/include/_6526.h
+lib/cc65/include/_6545.h
+lib/cc65/include/_6551.h
+lib/cc65/include/_sid.h
+lib/cc65/include/_vdc.h
+lib/cc65/include/_vic.h
+lib/cc65/include/ace.h
+lib/cc65/include/apple2.h
+lib/cc65/include/assert.h
+lib/cc65/include/c128.h
+lib/cc65/include/c64.h
+lib/cc65/include/cbm.h
+lib/cc65/include/cbm610.h
+lib/cc65/include/conio.h
+lib/cc65/include/ctype.h
+lib/cc65/include/dbg.h
+lib/cc65/include/errno.h
+lib/cc65/include/fcntl.h
+lib/cc65/include/iso646.h
+lib/cc65/include/joystick.h
+lib/cc65/include/limits.h
+lib/cc65/include/locale.h
+lib/cc65/include/mouse.h
+lib/cc65/include/nes.h
+lib/cc65/include/pet.h
+lib/cc65/include/plus4.h
+lib/cc65/include/rs232.h
+lib/cc65/include/setjmp.h
+lib/cc65/include/stdarg.h
+lib/cc65/include/stddef.h
+lib/cc65/include/stdio.h
+lib/cc65/include/stdlib.h
+lib/cc65/include/string.h
+lib/cc65/include/time.h
+lib/cc65/lib/apple2.lib
+lib/cc65/lib/apple2.o
+lib/cc65/lib/c128.lib
+lib/cc65/lib/c128.o
+lib/cc65/lib/c64.lib
+lib/cc65/lib/c64.o
+lib/cc65/lib/cbm610.lib
+lib/cc65/lib/cbm610.o
+lib/cc65/lib/pet.lib
+lib/cc65/lib/pet.o
+lib/cc65/lib/plus4.lib
+lib/cc65/lib/plus4.o
+share/doc/cc65/samples/Makefile
+share/doc/cc65/samples/c1541.rsp
+share/doc/cc65/samples/hello.c
+share/doc/cc65/samples/nachtm.c
+share/doc/cc65/samples/sieve.c
+@dirrm share/doc/cc65/samples
+@dirrm share/doc/cc65
+@dirrm lib/cc65/lib
+@dirrm lib/cc65/include
+@dirrm lib/cc65