aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/avra/Makefile33
-rw-r--r--devel/avra/distinfo2
-rw-r--r--devel/avra/files/patch-SOURCE-Makefile13
-rw-r--r--devel/avra/files/patch-SOURCE-expr.c20
-rw-r--r--devel/avra/pkg-descr4
-rw-r--r--devel/avra/pkg-plist1
7 files changed, 74 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 52606ca2f180..275fe4f21031 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -69,6 +69,7 @@
SUBDIR += avr-gcc
SUBDIR += avr-gdb
SUBDIR += avr-libc
+ SUBDIR += avra
SUBDIR += avrdude
SUBDIR += bcc
SUBDIR += bcpp
diff --git a/devel/avra/Makefile b/devel/avra/Makefile
new file mode 100644
index 000000000000..abcb7a048801
--- /dev/null
+++ b/devel/avra/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: tavrasm
+# Date created: 12 December 2003
+# Whom: Wes Peters <wes@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= avra
+PORTVERSION= 1.0.1
+DISTVERSIONSUFFIX= -src
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=${PORTNAME}
+
+MAINTAINER= wes@FreeBSD.org
+COMMENT= Macro Assembler for Atmel AVR microcontrollers
+
+USE_GMAKE= yes
+WRKSRC= ${WRKDIR}
+BUILD_WRKSRC= ${WRKSRC}/SOURCE
+INSTALL_WRKSRC= ${WRKSRC}/SOURCE
+
+PORTDOCS= README
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/avra/distinfo b/devel/avra/distinfo
new file mode 100644
index 000000000000..27cd9ad422a8
--- /dev/null
+++ b/devel/avra/distinfo
@@ -0,0 +1,2 @@
+MD5 (avra-1.0.1-src.tar.gz) = 002a810e12d6b64f0079a7508a5b8066
+SIZE (avra-1.0.1-src.tar.gz) = 90993
diff --git a/devel/avra/files/patch-SOURCE-Makefile b/devel/avra/files/patch-SOURCE-Makefile
new file mode 100644
index 000000000000..74bab38c1623
--- /dev/null
+++ b/devel/avra/files/patch-SOURCE-Makefile
@@ -0,0 +1,13 @@
+--- SOURCE/Makefile.orig Tue Feb 15 07:40:36 2005
++++ SOURCE/Makefile Tue Feb 15 07:40:58 2005
+@@ -27,8 +27,8 @@
+
+ install: avra
+ cp avra /usr/local/bin
+- cp avra.1 /usr/local/man/man1
+- chmod +r /usr/local/man/man1/avra.1
++# cp avra.1 /usr/local/man/man1
++# chmod +r /usr/local/man/man1/avra.1
+
+ clean:
+ rm -f avra *.o *.p *~ avra.exe
diff --git a/devel/avra/files/patch-SOURCE-expr.c b/devel/avra/files/patch-SOURCE-expr.c
new file mode 100644
index 000000000000..edffbedca9fc
--- /dev/null
+++ b/devel/avra/files/patch-SOURCE-expr.c
@@ -0,0 +1,20 @@
+--- SOURCE/expr.c.orig Thu Jun 10 21:01:40 2004
++++ SOURCE/expr.c Mon Feb 14 21:30:15 2005
+@@ -241,7 +241,7 @@
+ }
+
+
+-int log2(int value)
++int do_log2(int value)
+ {
+ int i = 0;
+
+@@ -271,7 +271,7 @@
+ case FUNCTION_EXP2:
+ return(1 << value);
+ case FUNCTION_LOG2:
+- return(log2(value));
++ return(do_log2(value));
+ default:
+ return(0);
+ }
diff --git a/devel/avra/pkg-descr b/devel/avra/pkg-descr
new file mode 100644
index 000000000000..b25f5c833d33
--- /dev/null
+++ b/devel/avra/pkg-descr
@@ -0,0 +1,4 @@
+avra is an GNU GPL'ed assembler for the Atmel AVR microcontrollers.
+See the file COPYING for more information regarding the license.
+
+WWW: http://avra.sourceforge.net/
diff --git a/devel/avra/pkg-plist b/devel/avra/pkg-plist
new file mode 100644
index 000000000000..af07e42003b0
--- /dev/null
+++ b/devel/avra/pkg-plist
@@ -0,0 +1 @@
+bin/avra