Skip to content
Permalink
Browse files

Add cc65, 6502 development environment.

Requested by: bbraun

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4164 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jordan K. Hubbard
Jordan K. Hubbard committed Dec 8, 2003
1 parent 37c0fc9 commit 9b38e50fb235b7ad8bd9446d91256948cf9d99f6
Showing with 61 additions and 0 deletions.
  1. +39 −0 lang/cc65/Portfile
  2. +22 −0 lang/cc65/files/patch-gcc.mak
@@ -0,0 +1,39 @@
# $Id: Portfile,v 1.1 2003/12/08 11:03:08 jkh Exp $

PortSystem 1.0
name cc65
version 2.9.3
categories lang
maintainers jkh@opendarwin.org
description 6502 C compiler
platforms darwin
distfiles cc65-sources-${version}.tar.bz2
use_bzip2 yes
master_sites http://www.funet.fi/pub/cbm/programming/cc65/ \
http://bj.spline.de/cc65/
checksums md5 255a231cd475852545a5bad1d21e867d
worksrcdir ${name}-${version}/src
configure {}
build.args -f make/gcc.mak
build.env PREFIX=${prefix}
patchfiles patch-gcc.mak

post-build {
system "cd ${worksrcpath}/../libsrc && make"
}

destroot {
set _d ${destroot}${prefix}
file delete ${_d}/man
system "mkdir -p ${_d}/lib/cc65/{lib,include/geos}"
system "install -s -m 755 ${worksrcpath}/ar65/ar65 ${_d}/bin"
system "install -s -m 755 ${worksrcpath}/ca65/ca65 ${_d}/bin"
system "install -s -m 755 ${worksrcpath}/cc65/cc65 ${_d}/bin"
system "install -s -m 755 ${worksrcpath}/cl65/cl65 ${_d}/bin"
system "install -s -m 755 ${worksrcpath}/da65/da65 ${_d}/bin"
system "install -s -m 755 ${worksrcpath}/grc/grc ${_d}/bin"
system "install -s -m 755 ${worksrcpath}/ld65/ld65 ${_d}/bin"
system "install -m 644 ${worksrcpath}/../libsrc/*.{o,lib} ${_d}/lib/cc65/lib"
system "install -m 644 ${worksrcpath}/../include/*.h ${_d}/lib/cc65/include"
system "install -m 644 ${worksrcpath}/../include/geos/*.h ${_d}/lib/cc65/include/geos"
}
@@ -0,0 +1,22 @@
--- cc65/make/gcc.mak.orig Mon Dec 8 02:34:23 2003
+++ cc65/make/gcc.mak Mon Dec 8 02:34:49 2003
@@ -13,7 +13,7 @@
COMMON = ../common

# Default for the compiler lib search path as compiler define
-CDEFS=-DCC65_INC=\"/usr/lib/cc65/include/\"
+CDEFS=-DCC65_INC=\"${PREFIX}/lib/cc65/include/\"
CFLAGS = -O2 -g -Wall -W -I$(COMMON) $(CDEFS)
CC=gcc
EBIND=emxbind
--- ld65/make/gcc.mak.orig Mon Dec 8 02:39:36 2003
+++ ld65/make/gcc.mak Mon Dec 8 02:39:56 2003
@@ -6,7 +6,7 @@
COMMON = ../common

# Default for the compiler lib search path as compiler define
-CDEFS=-DCC65_LIB=\"/usr/lib/cc65/lib/\"
+CDEFS=-DCC65_LIB=\"${PREFIX}/lib/cc65/lib/\"
CFLAGS = -g -O2 -Wall -W -I$(COMMON) $(CDEFS)
CC=gcc
EBIND=emxbind

0 comments on commit 9b38e50

Please sign in to comment.
You can’t perform that action at this time.