aboutsummaryrefslogtreecommitdiff
path: root/devel/nasm
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2008-04-11 21:50:06 +0000
committerPav Lucistnik <pav@FreeBSD.org>2008-04-11 21:50:06 +0000
commit89200be14eb1f8f3bf92bde44b5c2d4deda92668 (patch)
tree8140caa3f130e1529a9a27f3636f5411c0663c0a /devel/nasm
parent4c56261c42781cfbef7a63ff29d6cf52d926a7f4 (diff)
downloadports-89200be14eb1f8f3bf92bde44b5c2d4deda92668.tar.gz
ports-89200be14eb1f8f3bf92bde44b5c2d4deda92668.zip
Notes
Diffstat (limited to 'devel/nasm')
-rw-r--r--devel/nasm/Makefile21
-rw-r--r--devel/nasm/distinfo9
-rw-r--r--devel/nasm/files/patch-output+outelf32.c11
-rw-r--r--devel/nasm/files/patch-output+outelf64.c11
-rw-r--r--devel/nasm/files/patch-output::outelf.c14
-rw-r--r--devel/nasm/pkg-descr15
-rw-r--r--devel/nasm/pkg-plist11
7 files changed, 58 insertions, 34 deletions
diff --git a/devel/nasm/Makefile b/devel/nasm/Makefile
index 6239511bc36a..e6b20676abe3 100644
--- a/devel/nasm/Makefile
+++ b/devel/nasm/Makefile
@@ -6,28 +6,27 @@
#
PORTNAME= nasm
-PORTVERSION= 0.98.39
+PORTVERSION= 2.02
PORTEPOCH= 1
CATEGORIES= devel lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nasm
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-xdoc${EXTRACT_SUFX}
MAINTAINER= krion@FreeBSD.org
-COMMENT= General-purpose multi-platform x86 assembler
+COMMENT= General-purpose multi-platform x86 and x86-64 assembler
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-PLIST_SUB= VERSION=${PORTVERSION}
+INSTALL_TARGET= install install_rdf
-PLIST_FILES= bin/nasm bin/nasm-%%VERSION%% bin/ndisasm
-
-MAN1= nasm.1 ndisasm.1
-
-post-patch:
- @${REINPLACE_CMD} -e 's|-std=c99||' ${WRKSRC}/configure
+MAN1= nasm.1 ndisasm.1 \
+ ldrdf.1 rdf2bin.1 rdf2com.1 rdfdump.1 rdflib.1 rdx.1
post-install:
- ${LN} -sf nasm ${PREFIX}/bin/${DISTNAME}
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/doc/nasmdoc.txt ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/devel/nasm/distinfo b/devel/nasm/distinfo
index 645c76671641..6a3b01eeb319 100644
--- a/devel/nasm/distinfo
+++ b/devel/nasm/distinfo
@@ -1,3 +1,6 @@
-MD5 (nasm-0.98.39.tar.bz2) = 2032ad44c7359f7a9a166a40a633e772
-SHA256 (nasm-0.98.39.tar.bz2) = 7865f74acac6b7dccb58eda9164a86da40968eea8aa650926594e0083eaaed77
-SIZE (nasm-0.98.39.tar.bz2) = 543976
+MD5 (nasm-2.02.tar.bz2) = 2662a090fb0d31ae27334a2393ef5240
+SHA256 (nasm-2.02.tar.bz2) = 1746c4d0fbe6f1f37c54459143f3a03875c372896ed823e3fa826f14fe72fbd2
+SIZE (nasm-2.02.tar.bz2) = 729602
+MD5 (nasm-2.02-xdoc.tar.bz2) = e9db57c13a76bb588ced26b76db3705e
+SHA256 (nasm-2.02-xdoc.tar.bz2) = a4a58d06b97cb5a6a4878668006a53fd0b40d8be4b6418b2252cf4ff0babea05
+SIZE (nasm-2.02-xdoc.tar.bz2) = 581772
diff --git a/devel/nasm/files/patch-output+outelf32.c b/devel/nasm/files/patch-output+outelf32.c
new file mode 100644
index 000000000000..94f72f3d1398
--- /dev/null
+++ b/devel/nasm/files/patch-output+outelf32.c
@@ -0,0 +1,11 @@
+--- output/outelf32.c.orig 2008-03-03 16:15:43.564355152 -0500
++++ output/outelf32.c 2008-03-03 16:21:02.242598895 -0500
+@@ -1605,7 +1605,7 @@
+ the source-file, the n_desc field should be set to the number
+ of remaining stabs
+ */
+- WRITE_STAB(sptr, fileidx[0], 0, 0, 0, strlen(allfiles[0] + 12));
++ WRITE_STAB(sptr, fileidx[0], 0, 0, 0, stabstrlen);
+
+ /* this is the stab for the main source file */
+ WRITE_STAB(sptr, fileidx[mainfileindex], N_SO, 0, 0, 0);
diff --git a/devel/nasm/files/patch-output+outelf64.c b/devel/nasm/files/patch-output+outelf64.c
new file mode 100644
index 000000000000..148b4aa7f1bb
--- /dev/null
+++ b/devel/nasm/files/patch-output+outelf64.c
@@ -0,0 +1,11 @@
+--- output/outelf64.c.orig 2008-03-03 16:15:57.373145096 -0500
++++ output/outelf64.c 2008-03-03 16:23:30.075070061 -0500
+@@ -1841,7 +1841,7 @@
+ the source-file, the n_desc field should be set to the number
+ of remaining stabs
+ */
+- WRITE_STAB(sptr, fileidx[0], 0, 0, 0, strlen(allfiles[0] + 12));
++ WRITE_STAB(sptr, fileidx[0], 0, 0, 0, stabstrlen);
+
+ /* this is the stab for the main source file */
+ WRITE_STAB(sptr, fileidx[mainfileindex], N_SO, 0, 0, 0);
diff --git a/devel/nasm/files/patch-output::outelf.c b/devel/nasm/files/patch-output::outelf.c
deleted file mode 100644
index 58a9e0fe8ffd..000000000000
--- a/devel/nasm/files/patch-output::outelf.c
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- output/outelf.c.orig
-+++ output/outelf.c
-@@ -1431,7 +1431,7 @@
- the source-file, the n_desc field should be set to the number
- of remaining stabs
- */
-- WRITE_STAB(sptr, fileidx[0], 0, 0, 0, strlen(allfiles[0] + 12));
-+ WRITE_STAB(sptr, fileidx[0], 0, 0, 0, stabstrlen);
-
- ptr = stabslines;
- numstabs = 0;
diff --git a/devel/nasm/pkg-descr b/devel/nasm/pkg-descr
index bfd514207e88..8276e0e3978d 100644
--- a/devel/nasm/pkg-descr
+++ b/devel/nasm/pkg-descr
@@ -1,10 +1,13 @@
-This is a distribution of NASM, the Netwide Assembler. NASM is a
-prototype general-purpose x86 assembler. It will currently output
-flat-form binary files, a.out, COFF and ELF Unix object files,
-Microsoft Win32 and 16-bit DOS object files, OS/2 object files, the
-as86 object format, and a home-grown format called RDF.
+The Netwide Assembler, NASM, is an x86 and x86-64 assembler
+designed for portability and modularity. It will output flat-form
+binary files, a.out (Linux and *BSD), COFF, ELF32, ELF64, Mach-O,
+Microsoft OMF (OBJ), Win32, Win64, as86 (Minix/Linux bin86 v0.3),
+LADsoft IEEE-695, and a home-grown format called RDOFF. NASM syntax
+is similar to Intel's but less complex. It supports Pentium, P6,
+MMX, 3DNow!, SSE, SSE2, SSE3 and x64 opcodes, among others. It
+has strong support for macro conventions.
-Also included is NDISASM, a prototype x86 binary-file disassembler
+Also included is NDISASM, binary-file disassembler
which uses the same instruction table as NASM.
WWW: http://nasm.sourceforge.net/
diff --git a/devel/nasm/pkg-plist b/devel/nasm/pkg-plist
new file mode 100644
index 000000000000..b551b74b4902
--- /dev/null
+++ b/devel/nasm/pkg-plist
@@ -0,0 +1,11 @@
+bin/nasm
+bin/ndisasm
+bin/rdfdump
+bin/ldrdf
+bin/rdx
+bin/rdflib
+bin/rdf2bin
+bin/rdf2ihx
+bin/rdf2com
+%%PORTDOCS%%%%DOCSDIR%%/nasmdoc.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%