aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/flasm
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2002-01-22 10:05:34 +0800
committerkuriyama <kuriyama@FreeBSD.org>2002-01-22 10:05:34 +0800
commitd0a252e7199b7a43c1fe8e24928047b54642da7d (patch)
treefb331ef9121942f32000d4c12e0481c2f2900d69 /graphics/flasm
parent7d0c7a24b32ad45f7bd9c50efa5b0a901b65c850 (diff)
downloadfreebsd-ports-graphics-d0a252e7199b7a43c1fe8e24928047b54642da7d.tar.gz
freebsd-ports-graphics-d0a252e7199b7a43c1fe8e24928047b54642da7d.tar.zst
freebsd-ports-graphics-d0a252e7199b7a43c1fe8e24928047b54642da7d.zip
Add flasm-1.32; Command line assembler/disassembler of flash actionscript
bytecode.
Diffstat (limited to 'graphics/flasm')
-rw-r--r--graphics/flasm/Makefile25
-rw-r--r--graphics/flasm/distinfo1
-rw-r--r--graphics/flasm/files/patch-assembler.y19
-rw-r--r--graphics/flasm/files/patch-unflasm.c54
-rw-r--r--graphics/flasm/pkg-comment1
-rw-r--r--graphics/flasm/pkg-descr3
-rw-r--r--graphics/flasm/pkg-plist1
7 files changed, 104 insertions, 0 deletions
diff --git a/graphics/flasm/Makefile b/graphics/flasm/Makefile
new file mode 100644
index 00000000000..ca9c42c5a7a
--- /dev/null
+++ b/graphics/flasm/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: flasm
+# Date created: 22 January 2002
+# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= flasm
+PORTVERSION= 1.32
+CATEGORIES= graphics
+MASTER_SITES= http://www.nowrap.de/
+DISTNAME= flasm132src
+
+MAINTAINER= kuriyama@FreeBSD.org
+
+USE_ZIP= YES
+USE_GMAKE= YES
+USE_BISON= YES
+NO_WRKSUBDIR= YES
+MAKE_ARGS= CFLAGS="${CFLAGS}"
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/flasm ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/graphics/flasm/distinfo b/graphics/flasm/distinfo
new file mode 100644
index 00000000000..92307e09757
--- /dev/null
+++ b/graphics/flasm/distinfo
@@ -0,0 +1 @@
+MD5 (flasm132src.zip) = 5bc87b8aebfac885a6d4ce39ad652e77
diff --git a/graphics/flasm/files/patch-assembler.y b/graphics/flasm/files/patch-assembler.y
new file mode 100644
index 00000000000..c1d555d1312
--- /dev/null
+++ b/graphics/flasm/files/patch-assembler.y
@@ -0,0 +1,19 @@
+--- assembler.y.orig Tue Jan 22 10:33:01 2002
++++ assembler.y Tue Jan 22 10:33:09 2002
+@@ -491,16 +491,10 @@
+ : SETTARGET STRING { $$ = writeByte(SWFACTION_SETTARGET);
+ $$ += writeShort(strlen($2)+1);
+ $$ += writeString($2); }
+- statements_opt END { $$ = $4 + writeByte(SWFACTION_SETTARGET);
+- $$ += $<len>3 + writeShort(1);
+- $$ += writeByte(0); }
+ ;
+
+ settargetexpression
+ : SETTARGETEXPR { $$ = writeByte(SWFACTION_SETTARGETEXPRESSION); }
+- statements_opt END { $$ = $3 + writeByte(SWFACTION_SETTARGET);
+- $$ += $<len>2 + writeShort(1);
+- $$ += writeByte(0); }
+ ;
+
+ push_item
diff --git a/graphics/flasm/files/patch-unflasm.c b/graphics/flasm/files/patch-unflasm.c
new file mode 100644
index 00000000000..313fcbf9598
--- /dev/null
+++ b/graphics/flasm/files/patch-unflasm.c
@@ -0,0 +1,54 @@
+--- unflasm.c.orig Thu Nov 22 05:59:32 2001
++++ unflasm.c Tue Jan 22 10:28:58 2002
+@@ -485,15 +485,7 @@
+ println("setVariable");
+ break;
+ case SWFACTION_SETTARGETEXPRESSION:
+- if (targetIndent==1)
+- {
+- --indent;
+- println("end");
+- targetIndent = 0;
+- }
+ println("setTargetExpr");
+- ++indent;
+- targetIndent = 1;
+ break;
+ case SWFACTION_STRINGCONCAT:
+ println("concat");
+@@ -1008,18 +1000,7 @@
+
+ case SWFACTION_SETTARGET:
+ {
+- if (targetIndent==1)
+- {
+- --indent;
+- println("end");
+- targetIndent = 0;
+- }
+- if (strlen(p)>0)
+- {
+- println("setTarget '%s'", p);
+- ++indent;
+- targetIndent = 1;
+- }
++ println("setTarget '%s'", p);
+ break;
+ }
+
+@@ -1338,15 +1319,7 @@
+ if ((mode >= MODE_UPDATE) && (constend>0))
+ rebuildConstantPool();
+
+- if (targetIndent==1)
+- {
+- --indent;
+- println("end");
+- targetIndent = 0;
+- }
+-
+ --indent;
+-
+ if (frameNum!=-1) println("end // of frame %i",frameNum);
+ free(buffer);
+ }
diff --git a/graphics/flasm/pkg-comment b/graphics/flasm/pkg-comment
new file mode 100644
index 00000000000..2c860eda4a6
--- /dev/null
+++ b/graphics/flasm/pkg-comment
@@ -0,0 +1 @@
+Command line assembler/disassembler of flash actionscript bytecode
diff --git a/graphics/flasm/pkg-descr b/graphics/flasm/pkg-descr
new file mode 100644
index 00000000000..dad370b98b2
--- /dev/null
+++ b/graphics/flasm/pkg-descr
@@ -0,0 +1,3 @@
+Command line assembler/disassembler of flash actionscript bytecode.
+
+WWW: http://flasm.sourceforge.net/
diff --git a/graphics/flasm/pkg-plist b/graphics/flasm/pkg-plist
new file mode 100644
index 00000000000..879c9b33387
--- /dev/null
+++ b/graphics/flasm/pkg-plist
@@ -0,0 +1 @@
+bin/flasm