summaryrefslogtreecommitdiff
path: root/pcr/cc65
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-04-04 23:37:46 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-04-04 23:37:46 -0300
commit4d05f83ddbb340a80684e47d3d6bcc567a8ecff8 (patch)
tree2d830d4fbf44bc35010822e1cc44ef4e9daec318 /pcr/cc65
parent1459ff76309b503167ad9cd76312413f69bfa3d5 (diff)
downloadabslibre-4d05f83ddbb340a80684e47d3d6bcc567a8ecff8.tar.gz
abslibre-4d05f83ddbb340a80684e47d3d6bcc567a8ecff8.tar.bz2
abslibre-4d05f83ddbb340a80684e47d3d6bcc567a8ecff8.zip
cc65: add new package to [pcr]
Diffstat (limited to 'pcr/cc65')
-rw-r--r--pcr/cc65/PKGBUILD32
-rw-r--r--pcr/cc65/license60
-rw-r--r--pcr/cc65/patch-2.13.3.diff127
3 files changed, 219 insertions, 0 deletions
diff --git a/pcr/cc65/PKGBUILD b/pcr/cc65/PKGBUILD
new file mode 100644
index 000000000..e06844017
--- /dev/null
+++ b/pcr/cc65/PKGBUILD
@@ -0,0 +1,32 @@
+# Contributor (Arch): Jaroslaw Rosiek <philosoph@interia.pl>
+pkgname=cc65
+pkgver=2.13.3
+pkgrel=3
+pkgdesc="C compiler for 6502 family microprocessors"
+makedepends=('linuxdoc-tools')
+arch=('i686' 'x86_64')
+license=('custom')
+options=('!makeflags') # Does not build with parallel jobs
+url="http://www.cc65.org/"
+source=("ftp://ftp.musoftware.de/pub/uz/cc65/cc65-sources-$pkgver.tar.bz2"
+ "patch-$pkgver.diff"
+ "license")
+sha256sums=('a98a1b69d3fa15551fe7d53d5bebfc5f9b2aafb9642ee14b735587a421e00468'
+ 'b4bf9bba08ec3a8b6bad8e75be98b136556de72beaee3a99016bb20a1bed929c'
+ '4b1eb4cf61617a78256b5225784a73077c238aea02d6b949ef6f1ea06d9b40d3')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 -i "$srcdir/patch-$pkgver.diff"
+}
+
+build() {
+ cd "$srcdir/cc65-$pkgver"
+ make -f make/gcc.mak
+}
+
+package() {
+ cd "$srcdir/cc65-$pkgver"
+ make -f make/gcc.mak DEST_DIR="$pkgdir/" install
+ install -Dm644 "$srcdir/license" "$pkgdir/usr/share/licenses/$pkgname/license"
+}
diff --git a/pcr/cc65/license b/pcr/cc65/license
new file mode 100644
index 000000000..788142913
--- /dev/null
+++ b/pcr/cc65/license
@@ -0,0 +1,60 @@
+This is the original cc65 compiler copyright:
+
+
+ This is the copyright notice for RA65, LINK65, LIBR65, and other
+ Atari 8-bit programs. Said programs are Copyright 1989, by John R.
+ Dunning. All rights reserved, with the following exceptions:
+
+ Anyone may copy or redistribute these programs, provided that:
+
+ 1: You don't charge anything for the copy. It is permissable to
+ charge a nominal fee for media, etc.
+
+ 2: All source code and documentation for the programs is made
+ available as part of the distribution.
+
+ 3: This copyright notice is preserved verbatim, and included in
+ the distribution.
+
+ You are allowed to modify these programs, and redistribute the
+ modified versions, provided that the modifications are clearly noted.
+
+ There is NO WARRANTY with this software, it comes as is, and is
+ distributed in the hope that it may be useful.
+
+ This copyright notice applies to any program which contains
+ this text, or the refers to this file.
+
+ This copyright notice is based on the one published by the Free
+ Software Foundation, sometimes known as the GNU project. The idea
+ is the same as theirs, ie the software is free, and is intended to
+ stay that way. Everybody has the right to copy, modify, and re-
+ distribute this software. Nobody has the right to prevent anyone
+ else from copying, modifying or redistributing it.
+
+
+
+In acknowledgment of this copyright, I will place my own changes to
+the compiler under the same copyright. The library and the binary utils
+are a complete rewrite done by me and covered by the following license:
+
+
+ This software is provided 'as-is', without any express or implied warranty.
+ In no event will the authors be held liable for any damages arising from the
+ use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it freely,
+ subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not claim
+ that you wrote the original software. If you use this software in a product,
+ an acknowledgment in the product documentation would be appreciated but is
+ not required.
+
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+
+ 3. This notice may not be removed or altered from any source distribution.
+
+
diff --git a/pcr/cc65/patch-2.13.3.diff b/pcr/cc65/patch-2.13.3.diff
new file mode 100644
index 000000000..3e35a2a46
--- /dev/null
+++ b/pcr/cc65/patch-2.13.3.diff
@@ -0,0 +1,127 @@
+diff -ur cc65-2.13.2-orig//make/gcc.mak cc65-2.13.2-new//make/gcc.mak
+--- cc65-2.13.2-orig//make/gcc.mak 2010-04-06 21:05:59.659188896 +0200
++++ cc65-2.13.2-new//make/gcc.mak 2010-04-06 21:26:31.323885004 +0200
+@@ -15,7 +15,8 @@
+ # (That trick has been disabled.)
+
+ # The install prefix and directories
+-prefix = /usr/local
++D=$(DEST_DIR)
++prefix = /usr
+ exec_prefix = $(prefix)
+
+ bindir = $(exec_prefix)/bin
+@@ -34,7 +35,7 @@
+
+ # Programs
+
+-MKDIR = mkdir -m 755
++MKDIR = mkdir -m 755 -p
+
+ # BSD-like install-script/-program
+ INSTALL = make/install-sh
+@@ -119,76 +120,76 @@
+ fi 2>/dev/null
+
+ .PHONY: install-dirs
+-install-dirs: $(bindir) $(datadir) $(docdir) $(libdir) \
+- $(CC65_DOC) $(CC65_HOME) \
+- $(CA65_INC) $(CC65_INC) \
+- $(CC65_INC)/em $(CC65_INC)/geos $(CC65_INC)/joystick \
+- $(CC65_INC)/mouse $(CC65_INC)/sys $(CC65_INC)/tgi \
+- $(LD65_CFG) $(LD65_LIB) $(LD65_OBJ) \
+- $(CC65_HOME)/emd $(CC65_HOME)/joy $(CC65_HOME)/mou \
+- $(CC65_HOME)/ser $(CC65_HOME)/tgi
+-
+-$(bindir) $(datadir) $(docdir) $(libdir) \
+-$(CC65_DOC) $(CC65_HOME) \
+-$(CA65_INC) $(CC65_INC) \
+-$(LD65_CFG) $(LD65_LIB) $(LD65_OBJ):
++install-dirs: $(D)/$(bindir) $(D)/$(datadir) $(D)/$(docdir) $(D)/$(libdir) \
++ $(D)/$(CC65_DOC) $(D)/$(CC65_HOME) \
++ $(D)/$(CA65_INC) $(D)/$(CC65_INC) \
++ $(D)/$(CC65_INC)/em $(D)/$(CC65_INC)/geos $(D)/$(CC65_INC)/joystick \
++ $(D)/$(CC65_INC)/mouse $(D)/$(CC65_INC)/sys $(D)/$(CC65_INC)/tgi \
++ $(D)/$(LD65_CFG) $(D)/$(LD65_LIB) $(D)/$(LD65_OBJ) \
++ $(D)/$(CC65_HOME)/emd $(D)/$(CC65_HOME)/joy $(D)/$(CC65_HOME)/mou \
++ $(D)/$(CC65_HOME)/ser $(D)/$(CC65_HOME)/tgi
++
++$(D)/$(bindir) $(D)/$(datadir) $(D)/$(docdir) $(D)/$(libdir) \
++$(D)/$(CC65_DOC) $(D)/$(CC65_HOME) \
++$(D)/$(CA65_INC) $(D)/$(CC65_INC) \
++$(D)/$(LD65_CFG) $(D)/$(LD65_LIB) $(D)/$(LD65_OBJ):
+ $(MKDIR) $@
+
+-$(CC65_HOME)/% $(CC65_INC)/% $(CC65_DOC)/%:
++$(D)/$(CC65_HOME)/% $(D)/$(CC65_INC)/% $(D)/$(CC65_DOC)/%:
+ $(MKDIR) $@
+
+ install-bins:
+ for f in ar65 ca65 cc65 cl65 co65 da65 ld65 od65 grc; \
+- do $(INSTALL_STRIP) src/$$f/$$f${EXT} $(bindir) || exit $$?; \
++ do $(INSTALL_STRIP) src/$$f/$$f${EXT} $(D)/$(bindir) || exit $$?; \
+ done
+- $(INSTALL_PROG) src/ca65html/ca65html $(bindir)
++ $(INSTALL_PROG) src/ca65html/ca65html $(D)/$(bindir)
+
+ install-libs:
+ for f in asminc/*.inc; \
+- do $(INSTALL_DATA) $$f $(CA65_INC) || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(CA65_INC) || exit $$?; \
+ done
+ for f in include/*.h; \
+- do $(INSTALL_DATA) $$f $(CC65_INC) || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(CC65_INC) || exit $$?; \
+ done
+ for d in em geos joystick mouse sys tgi; \
+ do for f in include/$$d/*.h; \
+- do $(INSTALL_DATA) $$f $(CC65_INC)/$$d || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(CC65_INC)/$$d || exit $$?; \
+ done || exit $$?; \
+ done
+ for f in libsrc/*.lib; \
+- do $(INSTALL_DATA) $$f $(LD65_LIB) || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(LD65_LIB) || exit $$?; \
+ done
+ for f in libsrc/*-*.o; \
+- do $(INSTALL_DATA) $$f $(LD65_OBJ) || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(LD65_OBJ) || exit $$?; \
+ done
+ for d in emd joy mou ser tgi; \
+ do for f in libsrc/*.$$d; \
+- do $(INSTALL_DATA) $$f $(CC65_HOME)/$$d || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(CC65_HOME)/$$d || exit $$?; \
+ done || exit $$?; \
+ done
+ for f in src/ld65/cfg/*-*.cfg; \
+- do $(INSTALL_DATA) $$f $(LD65_CFG) || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(LD65_CFG) || exit $$?; \
+ done
+
+ install-docs:
+ for f in src/ca65/macpack/*.mac; \
+- do $(INSTALL_DATA) $$f $(CC65_DOC) || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(CC65_DOC) || exit $$?; \
+ done
+ for f in readme.1st compile.txt CREDITS BUGS internal.txt newvers.txt; \
+- do $(INSTALL_DATA) doc/$$f $(CC65_DOC) || exit $$?; \
++ do $(INSTALL_DATA) doc/$$f $(D)/$(CC65_DOC) || exit $$?; \
+ done
+ if [ -f doc/index.htm* ]; \
+ then for f in doc/*.htm*; \
+- do $(INSTALL_DATA) $$f $(CC65_DOC) || exit $$?; \
++ do $(INSTALL_DATA) $$f $(D)/$(CC65_DOC) || exit $$?; \
+ done; \
+ fi
+
+-install-samps: ${addprefix $(CC65_DOC)/, $(shell find samples -type d)}
++install-samps: ${addprefix $(D)/$(CC65_DOC)/, $(shell find samples -type d)}
+ @$(MAKE) -C samples zap
+ for d in `find samples -type d`; \
+ do for f in $$d/*; \
+ do if [ -f $$f ]; \
+- then $(INSTALL_DATA) $$f $(CC65_DOC)/$$d || exit $$?; \
++ then $(INSTALL_DATA) $$f $(D)/$(CC65_DOC)/$$d || exit $$?; \
+ fi; \
+ done || exit $$?; \
+ done