diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-12-22 17:19:16 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-12-22 17:19:16 +0000 |
commit | 9605ff64f825e522a5fd46b2d13cbf043573609f (patch) | |
tree | a1a8e94899515b382cb7ffcb05a91d6aabf67214 /converters | |
parent | d407f0f5607bc3785801f71e2ea384590889aa66 (diff) | |
download | ports-9605ff64f825e522a5fd46b2d13cbf043573609f.tar.gz ports-9605ff64f825e522a5fd46b2d13cbf043573609f.zip |
Notes
Diffstat (limited to 'converters')
-rw-r--r-- | converters/Makefile | 1 | ||||
-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 |
6 files changed, 97 insertions, 0 deletions
diff --git a/converters/Makefile b/converters/Makefile index f034910cc577..c076fb811cd9 100644 --- a/converters/Makefile +++ b/converters/Makefile @@ -79,6 +79,7 @@ SUBDIR += shftool SUBDIR += showkey SUBDIR += siconv + SUBDIR += ta2as SUBDIR += tnef SUBDIR += trans SUBDIR += tuc 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 |