1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

Add Tom's AVR Assembler, compatible with the Atmel DOS Assembler.

This port also fetches the Atmel distribution and extracts the
include files and HTML documentation.
This commit is contained in:
Wes Peters 2003-12-14 04:20:32 +00:00
parent e4471a8b57
commit 999ef4c5bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95767
16 changed files with 215 additions and 0 deletions

View File

@ -1087,6 +1087,7 @@
SUBDIR += syntax_tools
SUBDIR += sysconftool
SUBDIR += t1lib
SUBDIR += tavrasm
SUBDIR += tcl-memchan
SUBDIR += tcl-neo
SUBDIR += tcl-trf

51
devel/tavrasm/Makefile Normal file
View File

@ -0,0 +1,51 @@
# New ports collection makefile for: tavrasm
# Date created: 12 December 2003
# Whom: Wes Peters <wes@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tavrasm
PORTVERSION= 1.19
CATEGORIES= devel
MASTER_SITES= http://www.tavrasm.org/:0
DISTFILES= ${PORTNAME}${EXTRACT_SUFX}:0
MAINTAINER= wes@FreeBSD.org
COMMENT= Tom's AVR Assembler
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
WRKSRC= ${WRKDIR}/tavrasm.119
BUILD_WRKSRC= ${WRKSRC}/src
AVR_INCLUDE= ${PREFIX}/include/avr
MAKEFILE= makefile
USE_GMAKE= yes
ALL_TARGET= tavrasm
# Also get the include files and documentation from Atmel
MASTER_SITES+= http://www.atmel.com/dyn/resources/prod_documents/:1
DISTFILES+= ASM.ZIP:1
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
@if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}${PORTNAME}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS});\
then \
exit 1; \
fi
@if ! (unzip -qoLa ${_DISTDIR}ASM.ZIP 'appnotes/*.inc' 'doc/*' -d ${WRKSRC});\
then \
exit 1; \
fi
do-install:
${MKDIR} ${DOCSDIR} ${AVR_INCLUDE}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/* ${DOCSDIR}
${INSTALL_DATA} ${INSTALL_WRKSRC}/appnotes/*.inc ${AVR_INCLUDE}
.include <bsd.port.mk>

2
devel/tavrasm/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (tavrasm.tar.gz) = 90077f183fc7c4e030bd909d0d5bde04
MD5 (ASM.ZIP) = 5e7e125b807fbdb621bc1d796a04b31d

View File

@ -0,0 +1,11 @@
--- appnotes/2313def.inc.orig Thu Dec 11 23:51:26 2003
+++ appnotes/2313def.inc Thu Dec 11 23:51:56 2003
@@ -187,7 +187,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ RXCIE =7
.equ TXCIE =6

View File

@ -0,0 +1,11 @@
--- appnotes/2333def.inc.orig Thu Dec 11 23:51:26 2003
+++ appnotes/2333def.inc Thu Dec 11 23:52:08 2003
@@ -161,7 +161,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ MPCM =0
.equ RXCIE =7

View File

@ -0,0 +1,11 @@
--- appnotes/4414def.inc.orig Thu Dec 11 23:51:26 2003
+++ appnotes/4414def.inc Thu Dec 11 23:52:40 2003
@@ -262,7 +262,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ SPIE =7
.equ SPE =6

View File

@ -0,0 +1,11 @@
--- appnotes/4433def.inc.orig Thu Dec 11 23:51:26 2003
+++ appnotes/4433def.inc Thu Dec 11 23:52:53 2003
@@ -161,7 +161,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ MPCM =0
.equ RXCIE =7

View File

@ -0,0 +1,11 @@
--- appnotes/4434def.inc.orig Thu Dec 11 23:57:23 2003
+++ appnotes/4434def.inc Thu Dec 11 23:53:00 2003
@@ -302,7 +302,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ RXCIE =7
.equ TXCIE =6

View File

@ -0,0 +1,11 @@
--- appnotes/8515def.inc.orig Thu Dec 11 23:51:26 2003
+++ appnotes/8515def.inc Thu Dec 11 23:53:06 2003
@@ -274,7 +274,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ RXCIE =7
.equ TXCIE =6

View File

@ -0,0 +1,11 @@
--- appnotes/8535def.inc.orig Thu Dec 11 23:56:34 2003
+++ appnotes/8535def.inc Thu Dec 11 23:53:13 2003
@@ -303,7 +303,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ RXCIE =7
.equ TXCIE =6

View File

@ -0,0 +1,14 @@
--- src/avrasm.cc.orig Fri Dec 12 13:50:49 2003
+++ src/avrasm.cc Fri Dec 12 13:56:40 2003
@@ -861,6 +861,11 @@
strcpy(type_start,".");
}
+ /// Append default search path /////////////////////////////////////////////
+
+ if (yyIncPathCount < MAX_INCPATH_QTY)
+ yyIncludePaths[yyIncPathCount++] = "/usr/local/include/avr";
+
return ok;
}

View File

@ -0,0 +1,11 @@
--- src/avrparse.y.orig Sat Dec 6 21:09:01 2003
+++ src/avrparse.y Sat Dec 6 21:09:14 2003
@@ -46,7 +46,7 @@
#include <string.h>
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "avrasm.hh"
#include "symbol.hh"
#include "semantic.hh"

View File

@ -0,0 +1,11 @@
--- appnotes/m103def.inc.orig Thu Dec 11 23:51:26 2003
+++ appnotes/m103def.inc Thu Dec 11 23:53:19 2003
@@ -359,7 +359,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ RXCIE =7
.equ TXCIE =6

View File

@ -0,0 +1,11 @@
--- appnotes/m603def.inc.orig Thu Dec 11 23:51:26 2003
+++ appnotes/m603def.inc Thu Dec 11 23:53:29 2003
@@ -359,7 +359,7 @@
.equ TXC =6
.equ UDRE =5
.equ FE =4
-.equ OR =3
+.equ ORB =3
.equ RXCIE =7
.equ TXCIE =6

8
devel/tavrasm/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
tavarsm is Toms (Linux) AVR Assembler. It compiles source code
developed for the Atmel-provided DOS assembler. It is a compatible
superset of the Atmel assembler.
WWW: http://www.tavrasm.org/
This port also fetches the DOS AVR assembler from Atmel and installs
the include files and assembler documentation (in HTML) for reference.

29
devel/tavrasm/pkg-plist Normal file
View File

@ -0,0 +1,29 @@
bin/tavrasm
share/doc/tavrasm/avrasm.htm
share/doc/tavrasm/copy.jpg
share/doc/tavrasm/cut.jpg
share/doc/tavrasm/new.jpg
share/doc/tavrasm/objfiles.htm
share/doc/tavrasm/open.jpg
share/doc/tavrasm/options.jpg
share/doc/tavrasm/paste.jpg
share/doc/tavrasm/regform.htm
share/doc/tavrasm/undo.jpg
include/avr/1200def.inc
include/avr/2313def.inc
include/avr/2323def.inc
include/avr/2333def.inc
include/avr/2343def.inc
include/avr/4414def.inc
include/avr/4433def.inc
include/avr/4434def.inc
include/avr/8515def.inc
include/avr/8534def.inc
include/avr/8535def.inc
include/avr/m103def.inc
include/avr/m603def.inc
include/avr/tn11def.inc
include/avr/tn12def.inc
include/avr/tn22def.inc
@dirrm share/doc/tavrasm
@dirrm include/avr