Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 1999 12:48:25 -0500 (CDT)
From:      adam@whizkidtech.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11672: New port intel2gas-1.2
Message-ID:  <199905121748.MAA17454@whizkidtech.net>

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

>Number:         11672
>Category:       ports
>Synopsis:       New port: intel2gas-1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 12 10:50:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     G. Adam Stanislav
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Whiz Kid Technomagic
>Environment:

Assembly language programming

>Description:

Intel2gas converts assembly language source code from Intel (nasm) to AT&T
synatx (gas), and vice-versa.

>How-To-Repeat:

	

>Fix:

# 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:
#
#	intel2gas
#	intel2gas/pkg
#	intel2gas/pkg/COMMENT
#	intel2gas/pkg/DESCR
#	intel2gas/pkg/PLIST
#	intel2gas/patches
#	intel2gas/patches/patch-aa
#	intel2gas/patches/patch-ab
#	intel2gas/patches/patch-ac
#	intel2gas/patches/patch-ad
#	intel2gas/Makefile
#	intel2gas/files
#	intel2gas/files/md5
#
echo c - intel2gas
mkdir -p intel2gas > /dev/null 2>&1
echo c - intel2gas/pkg
mkdir -p intel2gas/pkg > /dev/null 2>&1
echo x - intel2gas/pkg/COMMENT
sed 's/^X//' >intel2gas/pkg/COMMENT << 'END-of-intel2gas/pkg/COMMENT'
XConverts Intel assembly language (nasm) to AT&T syntax (gas).
END-of-intel2gas/pkg/COMMENT
echo x - intel2gas/pkg/DESCR
sed 's/^X//' >intel2gas/pkg/DESCR << 'END-of-intel2gas/pkg/DESCR'
Xintel2gas 1.2 (c)1999 Mikko Tiihonen (mikko.tiihonen@hut.fi)
X
XThis program converts assembler source from intel (NASM), to AT&T (gas) 
Xsyntax. It is FREE SOFTWARE under the terms of the GNU General Public 
XLicense (GPL), enclosed in the file 'COPYING'.
X----------------------------------------------------------------------------
XIntel2gas is a small text parser that can convert assembler source
Xwritten in intel syntax to at&t syntax. And nowadays more often also
Xthe other way.
X
XThe program does minimal error checking and does not understand the
Xtext it's converting. It just tries to find matches from its syntax
Xdatabase.
XYou are encouraged to send any bug reports, suggestions and comments to
Xthe author.
X
XFreeBSD port by G. Adam Stanislav <adam@whizkidtech.net>
END-of-intel2gas/pkg/DESCR
echo x - intel2gas/pkg/PLIST
sed 's/^X//' >intel2gas/pkg/PLIST << 'END-of-intel2gas/pkg/PLIST'
Xbin/intel2gas
Xshare/intel2gas/g2i/+-.01.list
Xshare/intel2gas/g2i/+-.02.list
Xshare/intel2gas/g2i/addr.syntax
Xshare/intel2gas/g2i/address.syntax
Xshare/intel2gas/g2i/data.01.list
Xshare/intel2gas/g2i/data.02.list
Xshare/intel2gas/g2i/data.04.list
Xshare/intel2gas/g2i/main.syntax
Xshare/intel2gas/g2i/mathnum.syntax
Xshare/intel2gas/g2i/num.syntax
Xshare/intel2gas/g2i/op.01.list
Xshare/intel2gas/g2i/op.02.list
Xshare/intel2gas/g2i/op.04.list
Xshare/intel2gas/g2i/op.08.list
Xshare/intel2gas/g2i/op.10.list
Xshare/intel2gas/g2i/op.20.list
Xshare/intel2gas/g2i/reg.01.list
Xshare/intel2gas/g2i/reg.02.list
Xshare/intel2gas/g2i/reg.04.list
Xshare/intel2gas/g2i/reg.08.list
Xshare/intel2gas/g2i/reg.10.list
Xshare/intel2gas/g2i/reg.20.list
Xshare/intel2gas/g2i/section.01.list
Xshare/intel2gas/g2i/size.01.list
Xshare/intel2gas/g2i/size.02.list
Xshare/intel2gas/g2i/size.04.list
Xshare/intel2gas/i2g/+-.01.list
Xshare/intel2gas/i2g/+-.02.list
Xshare/intel2gas/i2g/address.syntax
Xshare/intel2gas/i2g/data.01.list
Xshare/intel2gas/i2g/data.02.list
Xshare/intel2gas/i2g/data.04.list
Xshare/intel2gas/i2g/discard.01.list
Xshare/intel2gas/i2g/main.syntax
Xshare/intel2gas/i2g/mathnum.syntax
Xshare/intel2gas/i2g/num.syntax
Xshare/intel2gas/i2g/op.01.list
Xshare/intel2gas/i2g/op.02.list
Xshare/intel2gas/i2g/op.04.list
Xshare/intel2gas/i2g/op.08.list
Xshare/intel2gas/i2g/op.10.list
Xshare/intel2gas/i2g/op.20.list
Xshare/intel2gas/i2g/reg.01.list
Xshare/intel2gas/i2g/reg.02.list
Xshare/intel2gas/i2g/reg.04.list
Xshare/intel2gas/i2g/reg.08.list
Xshare/intel2gas/i2g/reg.10.list
Xshare/intel2gas/i2g/reg.20.list
Xshare/intel2gas/i2g/section.01.list
Xshare/intel2gas/i2g/size.01.list
Xshare/intel2gas/i2g/size.02.list
Xshare/intel2gas/i2g/size.04.list
Xshare/intel2gas/i2g/size.08.list
Xshare/doc/intel2gas/BUGS
Xshare/doc/intel2gas/CHANGES
Xshare/doc/intel2gas/DATAFILES
Xshare/doc/intel2gas/DATAFILES.html
Xshare/doc/intel2gas/README
Xshare/doc/intel2gas/README.html
Xshare/doc/intel2gas/TODO
X@dirrm share/doc/intel2gas
X@dirrm share/intel2gas/i2g
X@dirrm share/intel2gas/g2i
X@dirrm share/intel2gas
END-of-intel2gas/pkg/PLIST
echo c - intel2gas/patches
mkdir -p intel2gas/patches > /dev/null 2>&1
echo x - intel2gas/patches/patch-aa
sed 's/^X//' >intel2gas/patches/patch-aa << 'END-of-intel2gas/patches/patch-aa'
X--- Makefile.in.orig	Tue May  4 11:56:19 1999
X+++ Makefile.in	Wed May 12 10:03:30 1999
X@@ -9,11 +9,6 @@
X CXXFLAGS = @CXXFLAGS@
X OFILES = strhandle.o loaddata.o intel2gas.o
X HFILES = strhandle.h loaddata.h intel2gas.h
X-DATADIRS = i2g g2i
X-
X-prefix = @prefix@
X-exec_prefix = @exec_prefix@
X-data_prefix = $(prefix)/share/intel2gas
X 
X all: warning intel2gas
X 
X@@ -30,24 +25,3 @@
X .cc.o:
X 	$(CXX) -c $(CXXFLAGS) $<
X 
X-clean:
X-	rm -f *.o *~ core
X-
X-distclean: clean
X-	rm -f intel2gas config.status config.log config.cache Makefile i2gconf.h
X-
X-
X-install:
X-	install -m 755 -d $(data_prefix)
X-	for datadir in $(DATADIRS); do \
X-  	  install -m 755 -d $(data_prefix)/$$datadir; \
X-  install -m 0644 $$datadir/* $(data_prefix)/$$datadir; \
X-	done
X-	install -m 755 intel2gas $(exec_prefix)/bin
X-
X-uninstall:
X-	for datadir in $(DATADIRS); do \
X-  	  rm -rf $(data_prefix)/$$datadir; \
X-	done
X-	rm -f $(exec_prefix)/bin/intel2gas
X-	rmdir $(data_prefix)
END-of-intel2gas/patches/patch-aa
echo x - intel2gas/patches/patch-ab
sed 's/^X//' >intel2gas/patches/patch-ab << 'END-of-intel2gas/patches/patch-ab'
X--- README.html.orig	Wed May  5 11:23:12 1999
X+++ README.html	Wed May 12 11:03:47 1999
X@@ -1,13 +1,12 @@
X+<html><head><title>
X intel2gas 1.2 (c)1999 Mikko Tiihonen (mikko.tiihonen@hut.fi)
X-
X+</title></head><body bgcolor="#FFFFFF"><pre>
X This program converts assembler source from intel (NASM), to AT&T (gas) 
X syntax. It is FREE SOFTWARE under the terms of the GNU General Public 
X License (GPL), enclosed in the file 'COPYING'.
X-----------------------------------------------------------------------------
X-
X+</pre><h2>
X 1. What's this?
X----------------
X-
X+</h2><pre>
X Intel2gas is a small text parser that can convert assembler source
X written in intel syntax to at&t syntax. And nowadays more often also
X the other way.
X@@ -15,15 +14,14 @@
X The program does minimal error checking and does not understand the
X text it's converting. It's just tries to find matches from its syntax
X database.
X-
X-
X+</pre><h2>
X 2. Bug reports:
X----------------
X+</h2><pre>
X You are encouraged to send any bug reports, suggestions and comments to
X the author.
X-
X-
X+</pre><h2>
X 3. Thanks:
X-----------
X+</h2><pre>
X brn                     for creating a need for this tool
X G. Adam Stanislav       for helpping with the commandline
X+</pre></body></html>
END-of-intel2gas/patches/patch-ab
echo x - intel2gas/patches/patch-ac
sed 's/^X//' >intel2gas/patches/patch-ac << 'END-of-intel2gas/patches/patch-ac'
X--- DATAFILES.html.orig	Wed May  5 11:24:59 1999
X+++ DATAFILES.html	Wed May 12 11:18:51 1999
X@@ -1,9 +1,10 @@
X+<html><head><title>Intel2gas data files</title></head><body bgcolor="#FFFFFF"><pre>
X This document tries to explain how the syntax matching works. You propably
X don't want to know, but it's became so complex that I keep forgetting how
X it works. 
X-
X+</pre><h1>
X 1.  How it Works(tm)
X---------------------
X+</h1><pre>
X Before parsing the program reads all .syntax files for parsing 
X information, and .list files for list of registers etc. There 
X is no limit for number of files, or syntaxes in them.
X@@ -16,7 +17,7 @@
X Parsing rules:
X - Normal characters are matched exactly.
X - Space in parse description matches any amount of space in input line.
X-- `text´ inside '<>' is considered a special tag and parsed accordingly, 
X+- `text´ inside '&lt;&gt;' is considered a special tag and parsed accordingly, 
X   after successfull match it's value is stored into a variable of the 
X   same name (`text´).
X 
X@@ -25,12 +26,10 @@
X 
X Output rules:
X - Normal characters (including space) are copied to output.
X-- `text´ inside '<>' is replaced with value of a variable called `text´.
X-
X-
X-
X+- `text´ inside '&lt;&gt;' is replaced with value of a variable called `text´.
X+</pre><h1>
X 2. Files
X---------
X+</h1><pre>
X .syntax file syntax:
X -
X parse rule
X@@ -44,12 +43,10 @@
X val1
X val2
X ...
X-
X-
X-
X+</pre><h1>
X 4. Tags
X--------
X-Format of a tag is following: <tagnameN:hh>c, where
X+</h1><pre>
X+Format of a tag is following: &lt;tagnameN:hh&gt;c, where
X - tagname is the name of the tag and the variable where the result is stored.
X - N	  an optional number (0-9) to store the result in different variable.
X - hh	  an optional hex bitmask (00-ff) for list matches, defaults to ff.
X@@ -66,12 +63,11 @@
X   *  the output of amatching rule is stored in the variable.
X 
X Special tags:
X-<nl>	output a new line character
X-<cm>    matches a '#'
X-
X-
X+&lt;nl&gt;	output a new line character
X+&lt;cm&gt;    matches a '#'
X+</pre><h1>
X 5. Current set of files
X------------------------
X+</h1><pre>
X Syntax files:
X main.syntax	the basic syntax file
X num.syntax	converts hex,dec,oct,bin numbers
X@@ -85,3 +81,4 @@
X size.nn.list	byte,dword... memory sizes, sets 'm' to match the proper b/w/l
X data.nn.list	dd, db... sizes used in variable creation
X discard.nn.list	short... discarded
X+</pre></body></html>
END-of-intel2gas/patches/patch-ac
echo x - intel2gas/patches/patch-ad
sed 's/^X//' >intel2gas/patches/patch-ad << 'END-of-intel2gas/patches/patch-ad'
X--- intel2gas.cc.orig	Wed May  5 10:53:34 1999
X+++ intel2gas.cc	Wed May 12 12:26:47 1999
X@@ -428,7 +428,7 @@
X static void printHelp(char const *infostr)
X {
X     fprintf(stderr,"%s\n"\
X-	   "usage: intel2gas [options] [infile] [-o outfile]\n"\
X+	   "usage: intel2gas [options] [-o outfile] [infile]\n"\
X 	   "where options include:\n"\
X 	   "\t-h\t\tthis help\n"\
X 	   "\t-i\t\tconvert from intel to at&t format (default)\n"\
END-of-intel2gas/patches/patch-ad
echo x - intel2gas/Makefile
sed 's/^X//' >intel2gas/Makefile << 'END-of-intel2gas/Makefile'
X# New ports collection makefile for:	intel2gas
X# Version required:     1.2
X# Date created:		12 May 1999
X# Whom:			G. Adam Stanislav
X#
X# $Id:$
X#
X
XDISTNAME=       intel2gas-1.2
XCATEGORIES=	devel
XMASTER_SITES=	http://hermes.terminal.at/intel2gas/
X
XMAINTAINER=	adam@whizkidtech.net
X
XGNU_CONFIGURE=	yes
X
XI2G=	+-.01.list +-.02.list address.syntax data.01.list data.02.list \
X	data.04.list discard.01.list main.syntax mathnum.syntax num.syntax \
X	op.01.list op.02.list op.04.list op.08.list op.10.list op.20.list \
X	reg.01.list reg.02.list reg.04.list reg.08.list reg.10.list \
X	reg.20.list section.01.list size.01.list size.02.list size.04.list \
X	size.08.list
X
XG2I=	addr.syntax address.syntax data.01.list data.02.list data.04.list \
X	main.syntax mathnum.syntax num.syntax section.01.list size.01.list \
X	size.02.list size.04.list
X
XI2G2I=	+-.01.list +-.02.list op.01.list op.02.list op.04.list op.08.list \
X	op.10.list op.20.list reg.01.list reg.02.list reg.04.list \
X	reg.08.list reg.10.list reg.20.list
X
XDOCFILES=	BUGS CHANGES DATAFILES DATAFILES.html README README.html TODO
X
Xpre-patch:
X	${CP} ${WRKSRC}/README ${WRKSRC}/README.html
X	${CP} ${WRKSRC}/DATAFILES ${WRKSRC}/DATAFILES.html
X
Xpre-install:
X	${MKDIR} ${PREFIX}/share/intel2gas
X	${MKDIR} ${PREFIX}/share/intel2gas/i2g
X	${MKDIR} ${PREFIX}/share/intel2gas/g2i
X	${INSTALL_PROGRAM} ${WRKSRC}/intel2gas ${PREFIX}/bin
X
Xdo-install:
X.for f in ${I2G}
X	${INSTALL_DATA} ${WRKSRC}/i2g/${f} ${PREFIX}/share/intel2gas/i2g
X.endfor
X.for f in ${G2I}
X	${INSTALL_DATA} ${WRKSRC}/g2i/${f} ${PREFIX}/share/intel2gas/g2i
X.endfor
X.for f in ${I2G2I}
X	ln -fs ${PREFIX}/share/intel2gas/i2g/${f} \
X		${PREFIX}/share/intel2gas/g2i/${f}
X.endfor
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/intel2gas
X.for f in ${DOCFILES}
X	${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/share/doc/intel2gas
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-intel2gas/Makefile
echo c - intel2gas/files
mkdir -p intel2gas/files > /dev/null 2>&1
echo x - intel2gas/files/md5
sed 's/^X//' >intel2gas/files/md5 << 'END-of-intel2gas/files/md5'
XMD5 (intel2gas-1.2.tar.gz) = 4346c1dd19daac94221c0d984e2b1c67
END-of-intel2gas/files/md5
exit


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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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