# -*- coding: ascii; tab-width: 4 -*-
Package: nasm
Version: 2.15.05
Revision: 1
Description: Netwide Assembler for x86
License: BSD
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>
Homepage: http://www.nasm.us/
DescDetail: <<
	The Netwide Assembler, NASM, is an 80x86 and x86-64 assembler designed
	for portability and modularity. It supports a range of object file
	formats, including Linux and *BSD a.out, ELF, COFF, Mach-O, Microsoft
	16-bit OBJ, Win32 and Win64. It will also output plain binary files.
	Its syntax is designed to be simple and easy to understand, similar to
	Intel's but less complex. It supports all currently known x86
	architectural extensions, and has strong support for macros.
	
	This version fully supports i386 and x86_64 code generation.
	The version included with Xcode only does i386.
<<

Source: http://www.nasm.us/pub/nasm/releasebuilds/%v/%n-%v.tar.bz2
Source-Checksum: SHA256(3c4b8339e5ab54b1bcb2316101f8985a5da50a3f9e504d43fa6f35668bee2fd0)
Source2: http://www.nasm.us/pub/nasm/releasebuilds/%v/%n-%v-xdoc.tar.bz2
Source2-Checksum: SHA256(fdfc2c2c19129425c795a47a7d8729f1c15d233dcc4a8a3993777b1c01e0fba4)

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
# rdoff not parallel-safe
UseMaxBuildJobs: false
ConfigureParams: --docdir=%p/share/doc/%n

CompileScript: <<
	./configure %c
	make all manpages rdf
<<

InfoTest: TestScript: make test || exit 2

# Manually install prebuilt docs since it tries to rebuild them otherwise.
InstallScript: <<
	make install install_rdf DESTDIR=%d
	mkdir -p %i/share/doc/%n/html
	install -c -m 644 doc/html/* %i/share/doc/%n/html
	install -c -m 644 doc/nasmdoc.pdf doc/nasmdoc.txt %i/share/doc/%n
<<

DocFiles: AUTHORS ChangeLog CHANGES LICENSE README.md rdoff/README:README.rdoff