diff options
author | lioux <lioux@FreeBSD.org> | 2005-12-23 01:19:16 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2005-12-23 01:19:16 +0800 |
commit | 4bce12b760a734d0aa563d7ab17f42cd092fd9d9 (patch) | |
tree | 9c78aaafcfaa7aa1a36521753f2a018e2433a9cb /converters/ta2as | |
parent | f5a6ccee209611816637c21c3a95399d0537393a (diff) | |
download | freebsd-ports-gnome-4bce12b760a734d0aa563d7ab17f42cd092fd9d9.tar.gz freebsd-ports-gnome-4bce12b760a734d0aa563d7ab17f42cd092fd9d9.tar.zst freebsd-ports-gnome-4bce12b760a734d0aa563d7ab17f42cd092fd9d9.zip |
New port ta2as version 0.8: TASM to AT&T asm syntax converter
(GNU AS)
Diffstat (limited to 'converters/ta2as')
-rw-r--r-- | converters/ta2as/Makefile | 54 | ||||
-rw-r--r-- | converters/ta2as/distinfo | 3 | ||||
-rw-r--r-- | converters/ta2as/files/patch-ta2as.c | 10 | ||||
-rw-r--r-- | converters/ta2as/files/strtolower.c | 12 | ||||
-rw-r--r-- | converters/ta2as/pkg-descr | 17 |
5 files changed, 96 insertions, 0 deletions
diff --git a/converters/ta2as/Makefile b/converters/ta2as/Makefile new file mode 100644 index 000000000000..e24f6d55dbf9 --- /dev/null +++ b/converters/ta2as/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: TASM TO AT&T asm +# Date created: Thu Dec 22 14:46:11 UTC 2005 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= ta2as +PORTVERSION= 0.8 +CATEGORIES= converters devel +MASTER_SITES= ftp://ftp.delorie.com/pub/djgpp/contrib/ \ + ftp://x2ftp.oulu.fi/pub/msdos/programming/convert/ +DISTNAME= ta2asv${PORTVERSION:S/.//} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= TASM to AT&T asm syntax converter (GNU AS) + +USE_ZIP= yes +USE_REINPLACE= yes +NO_WRKSUBDIR= yes + +EXTRACT_BEFORE_ARGS= -q -a -L + +PLIST_FILES= bin/${PORTNAME} + +.ifndef(NOPORTDOCS) +PORTDOCS= readme.doc +.endif + +post-extract: + @${CP} ${FILESDIR}/strtolower.c ${WRKSRC} + +post-patch: + @${REINPLACE_CMD} -E \ + -e 's|stricmp|strcasecmp|' \ + -e 's|strnicmp|strncasecmp|' \ + -e 's|strlwr|strtolower|' \ + ${WRKSRC}/${PORTNAME}.c + +do-build: + @cd ${WRKSRC} && \ + ${CC} ${CFLAGS} \ + -s meen.c strtolower.c ta2as.c \ + -o ${PORTNAME} + +do-install: +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/readme.doc ${DOCSDIR} +.endif + @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \ + ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/converters/ta2as/distinfo b/converters/ta2as/distinfo new file mode 100644 index 000000000000..46238766d25f --- /dev/null +++ b/converters/ta2as/distinfo @@ -0,0 +1,3 @@ +MD5 (ta2asv08.zip) = d6996109f025faa2c9b6b53c6dfaa179 +SHA256 (ta2asv08.zip) = fa2362b464ced0ace0bc6eeee17e822fd009e5896d791982fc16308b5266543f +SIZE (ta2asv08.zip) = 27208 diff --git a/converters/ta2as/files/patch-ta2as.c b/converters/ta2as/files/patch-ta2as.c new file mode 100644 index 000000000000..0e59e4077742 --- /dev/null +++ b/converters/ta2as/files/patch-ta2as.c @@ -0,0 +1,10 @@ +--- ta2as.c.orig Thu Dec 22 14:30:47 2005 ++++ ta2as.c Thu Dec 22 14:29:17 2005 +@@ -5,6 +5,7 @@ + #include "ta2as.h" + #include <stdlib.h> + #include <string.h> ++#include <strings.h> + + char rarray[38][4]= + { diff --git a/converters/ta2as/files/strtolower.c b/converters/ta2as/files/strtolower.c new file mode 100644 index 000000000000..979bce68913b --- /dev/null +++ b/converters/ta2as/files/strtolower.c @@ -0,0 +1,12 @@ +#include <ctype.h> + +char * +strtolower(char *str) +{ + char *s; + + for (s = str; *s; ++s); + *s = tolower(*s); + + return(str); +} diff --git a/converters/ta2as/pkg-descr b/converters/ta2as/pkg-descr new file mode 100644 index 000000000000..87ccd1f178b2 --- /dev/null +++ b/converters/ta2as/pkg-descr @@ -0,0 +1,17 @@ +[ excerpt from distfile's README with modifications ] + +This is the first version of TASM to AT&T converter (TA2AS). Frank +van Dijk, member of SPiRiT!, wrote this utility. It reads in a +source file with TASM syntax and tries(first version remember? :)) +to convert it to AT&T syntax. It hasn't been tested very well. So +email all your bugreports to one of the SPiRiT emailaddresses (see +below). Also for wanted features! But the sourcefile is included +so why don't you try first :) + +This is one of the utilities we wrote, to make life easier when +working with DJGPP! :) + + +WWW: http://udrecsuite.sourceforge.net/ + +-- lioux@FreeBSD.org |