Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2007 22:59:01 GMT
From:      Pontus Stenetorp <ninjin@kth.se>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/115254: New port: lang devel/nesasm: 6502 assembler with specific NES support
Message-ID:  <200708062259.l76Mx14D058784@www.freebsd.org>
Resent-Message-ID: <200708062300.l76N03h2070938@freefall.freebsd.org>

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

>Number:         115254
>Category:       ports
>Synopsis:       New port: lang devel/nesasm: 6502 assembler with specific NES support
>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:   Mon Aug 06 23:00:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Pontus Stenetorp
>Release:        FreeBSD 6.2-STABLE #2
>Organization:
>Environment:
FreeBSD sanshou.yasai 6.2-STABLE FreeBSD 6.2-STABLE #2: Fri Jun  1 01:10:02 CEST 2007     ninjin@sanshou.yasai:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
nesasm is a 6502 assembler with specific NES support. NES support in this case refers to FamiCOM and Nintendo Entertainment System support.

lang/fasm has been used as a reference on how an assembler should be ported. Feedback is as always welcome, hopefully it will lead to me producing better ports and less work for you committer ;)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./Makefile
#	./distinfo
#	./pkg-plist
#	./files
#	./files/patch-Makefile
#	./pkg-descr
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	nesasm
X# Date created:		6 August 2007
X# Whom:						Pontus Stenetorp <ninjin@kth.se>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	nesasm
XPORTVERSION=	20040314
XCATEGORIES=	lang devel
XMASTER_SITES=	http://bobrost.com/nes/files/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
XDISTFILES=	nbasic_2004_03_14.zip
X
XMAINTAINER=	ninjin@kth.se
XCOMMENT=	The nesasm assembler is a 6502 assembler with specific NES support
X
XWRKSRC=	${WRKDIR}/nbasic_2004_03_14/source/${PORTNAME}/source/
XUSE_ZIP=	yes
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/nesasm ${PREFIX}/bin
X.ifndef(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}../documentation/*.txt ${DOCSDIR}
X	# The next install will overwrite readme.txt with a newer readme.txt
X	${INSTALL_DATA} ${WRKSRC}../readme.txt ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (nbasic_2004_03_14.zip) = ea6e00be9c4f4ec06d1d51947ab6f7d3
XSHA256 (nbasic_2004_03_14.zip) = 23c0106c397aec03ab8401c0dc0072eaeb420401f3c40d69ee1d3bd3e398a7b9
XSIZE (nbasic_2004_03_14.zip) = 585041
END-of-./distinfo
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xbin/nesasm
X%%DOCSDIR%%/cpu_inst.txt
X%%DOCSDIR%%/history.txt
X%%DOCSDIR%%/index.txt
X%%DOCSDIR%%/neshdr20.txt
X%%DOCSDIR%%/readme.txt
X%%DOCSDIR%%/usage.txt
X@dirrm %%DOCSDIR%%
END-of-./pkg-plist
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-Makefile
sed 's/^X//' >./files/patch-Makefile << 'END-of-./files/patch-Makefile'
X--- Makefile.orig	Tue Aug  7 00:04:20 2007
X+++ Makefile	Tue Aug  7 00:04:47 2007
X@@ -1,4 +1,4 @@
X-default:
X+all:
X 	make -f Makefile.unix
X 
X clean:
END-of-./files/patch-Makefile
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XThe nesasm assembler is a 6502 assembler with specific NES support.
X
XWWW: http://bobrost.com/nes/resources.php
END-of-./pkg-descr
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



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