Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 02:21:43 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/171981: devel/cc65: Update MASTER_SITES
Message-ID:  <20120926022143.23d5090ee913e7c6ef106ea6@yahoo.com>
Resent-Message-ID: <201209251810.q8PIAGtx018585@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171981
>Category:       ports
>Synopsis:       devel/cc65: Update MASTER_SITES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 25 18:10:16 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES
- Update pkg-descr

Remove file:
files/patch-make_gcc.mak

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/cc65/Makefile devel/cc65/Makefile
--- /usr/ports/devel/cc65/Makefile	2012-09-01 02:36:09.000000000 +0900
+++ devel/cc65/Makefile	2012-09-25 03:19:47.000000000 +0900
@@ -2,52 +2,58 @@
 
 PORTNAME=	cc65
 PORTVERSION=	2.13.3
+DISTVERSIONPREFIX=	sources-
 CATEGORIES=	devel
-MASTER_SITES=	ftp://ftp.musoftware.de/pub/uz/cc65/ \
-		http://www.funet.fi/pub/cbm/programming/cc65/ \
-		http://www.acc.umu.se/~arvid/cc65_mirror/ \
-		http://bj.spline.de/cc65/
-DISTNAME=	${PORTNAME}-sources-${PORTVERSION}
+MASTER_SITES=	http://bj.spline.de/cc65/ \
+		http://cc65.oldos.net/ \
+		ftp://ftp.musoftware.de/pub/uz/cc65/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Cross-compiler for 6502-based systems, includes 65816 assembler
 
-USE_SUBMAKE=	yes
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
 USE_BZIP2=	yes
+USE_PERL5_BUILD=yes
 USE_GMAKE=	yes
-WRKSRC=		${WRKDIR}/cc65-${PORTVERSION}
 MAKEFILE=	${WRKSRC}/make/gcc.mak
-USE_PERL5_BUILD=yes
-MAKE_JOBS_UNSAFE=	yes
+MAKE_JOBS_UNSAFE=yes
 
 SUB_FILES=	pkg-message
 
+.include <bsd.port.options.mk>
+
 post-patch:
-#
-# CFLAGS safety
-#
-	@(${FIND} ${WRKSRC}/ -name gcc.mak -type f|${XARGS} ${REINPLACE_CMD} -E \
-		-e "s,=[[:space:]]*-g -O2 -Wall -W(.*),+=\1," \
-		-e "s,=[[:space:]]*-g -O2 -Wall(.*),+=\1," \
-		-e "s,=[[:space:]]*-O2 -g -Wall -W(.*),+=\1," \
-		-e "s,-std=c89,-std=c99,g" \
-		-e "s,CC[[:space:]]*=.*,#&,")
-.if defined(NOPORTDOCS)
-	@${REINPLACE_CMD} -E -e "s,(install:.*)install-docs(.*)$$,\1\2," \
-		-e '/\(MKDIR\)[[:space:]]+\$$\(CC65DOC\)/d' \
-		${WRKSRC}/make/gcc.mak
-	@${REINPLACE_CMD} -E -e "s,^(docdir[[:space:]]*=).*,\1," \
-		-e "s,^(CC65_DOC[[:space:]]*=).*,\1," ${WRKSRC}/make/gcc.mak
-.endif
+	@${FIND} ${WRKSRC} -name "gcc.mak" | ${XARGS} ${REINPLACE_CMD} -e \
+                '/gcc/s|^CC|#CC| ; \
+                 /-O2/s|^CFLAGS|#CFLAGS|'
+	@${REINPLACE_CMD} -e \
+		'/^prefix/s|=.*|= $${PREFIX}| ; \
+		 /^docdir/s|=.*|=| ; \
+		 /^CC65_DOC/s|=.*|=| ;  \
+		 /^INSTALL_DATA/s|=.*|= $${BSD_INSTALL_DATA}| ; \
+		 /^INSTALL_PROG/s|=.*|= $${BSD_INSTALL_SCRIPT}| ; \
+		 /^INSTALL_STRIP/s|=.*|= $${BSD_INSTALL_PROGRAM}| ; \
+		 /^all:/s|docs|| ; \
+		 /^install:/s|install-docs||' ${WRKSRC}/make/gcc.mak
 
 # XXX: gmake>=3.82 hack:  beats the hell out of me.  Quick fix.
 pre-install:
 	@${MKDIR} -p ${PREFIX}/lib/cc65/tgi
 
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${EXAMPLESDIR}
-	@(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+.for i in BUGS CREDITS compile.txt internal.txt newvers.txt readme.1st
+	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
+.endfor
+	${INSTALL_DATA} ${WRKSRC}/src/ca65/macpack/*.mac ${DOCSDIR}
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	@(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
 .endif
 	@${CAT} ${PKGMESSAGE}
 
diff -urN /usr/ports/devel/cc65/files/patch-make_gcc.mak devel/cc65/files/patch-make_gcc.mak
--- /usr/ports/devel/cc65/files/patch-make_gcc.mak	2008-05-15 19:12:03.000000000 +0900
+++ devel/cc65/files/patch-make_gcc.mak	1970-01-01 09:00:00.000000000 +0900
@@ -1,33 +0,0 @@
---- make/gcc.mak.orig	2007-06-22 00:40:27.000000000 +0400
-+++ make/gcc.mak	2008-05-15 12:55:04.000000000 +0400
-@@ -14,7 +14,7 @@
- MAKEOVERRIDES=
- 
- # The install prefix and directories
--prefix		= /usr/local
-+prefix		= ${PREFIX}
- exec_prefix	= $(prefix)
- 
- bindir		= $(exec_prefix)/bin
-@@ -36,9 +36,9 @@
- # BSD-like install-script/-program
- INSTALL		= make/install-sh
- 
--INSTALL_DATA	= $(INSTALL) -c -m 644
--INSTALL_PROG	= $(INSTALL) -c -m 755
--INSTALL_STRIP	= $(INSTALL_PROG) -s
-+INSTALL_DATA	= ${BSD_INSTALL_DATA}
-+INSTALL_PROG	= ${BSD_INSTALL_SCRIPT}
-+INSTALL_STRIP	= ${BSD_INSTALL_PROGRAM}
- 
- # This file-name extension is needed on DOS/Windows systems.
- ifdef COMSPEC
-@@ -52,7 +52,7 @@
- # a system on the command-line.  (A user can do those rules with their
- # defaults by putting "all samples tests" on the command-line.)
- #
--all:	bins libs docs $(SYS:%=samples tests)
-+all:	bins libs $(SYS:%=samples tests)
- 
- bins:
- 	@$(MAKE) -C src -f make/gcc.mak CC65_INC=\\\"${CC65INC}/\\\" CC65_LIB=\\\"${CC65LIB}/\\\"
diff -urN /usr/ports/devel/cc65/pkg-descr devel/cc65/pkg-descr
--- /usr/ports/devel/cc65/pkg-descr	2003-05-23 06:32:42.000000000 +0900
+++ devel/cc65/pkg-descr	2012-08-02 02:16:42.000000000 +0900
@@ -1,24 +1,21 @@
-CC65 is a C cross-compiler for 6502 and 65C02 systems.  CC65 includes
-a powerful macro assembler, a debugger, an archiver, and a highly
-configurable linker.  The linker supports overlays, ROMable code, and
-split output, among other features.  The compiler supports a large
-subset of ISO C (as per the ISO 9899 specification) and can compile
-the uIP TCP stack.  A 6502 simulator is available in the distribution
-but is not currently installed by the FreeBSD port/package.
+cc65 is a complete cross development package for 65(C)02 systems,
+including a powerful macro assembler, a C compiler, linker, librarian
+and several other tools.
 
-It is easy to write code for standalone 6502 boards (target none).  In
-addition, particular support for the following targets is included:
+Direct library support (that is, startup/initialization code) and
+support libraries for other features are available for...
 
-        - C64 and C128
-        - the GEOS operating system for the C64 and C128
-        - Commodore C16, C116, Plus/4
-        - Commodore VIC20
-        - CBM 600/700 family (programs run in bank 1)
-        - Newer PET machines (not 2001)
-        - The Apple ][
-        - Atari 8bit machines
-        - The Oric Atmos (beta)
-
-The assembler and linker also support 65816 as a target.
+ - the Commodore C64
+ - the GEOS operating system for the Commodore C64
+ - the Commodore C128
+ - the Commodore C16, C116 and Plus/4
+ - the Commodore P500
+ - the Commodore 600/700 family of computers
+ - the Apple ][
+ - the Atari 8bit machines
+ - the Oric Atmos
+ - the Nintendo Entertainment System (NES)
+ - the Supervision Game Console
+ - the Atari Lynx Console
 
 WWW: http://www.cc65.org/
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120926022143.23d5090ee913e7c6ef106ea6>