# nasm — ensamblador x86. Herramienta de BUILD de mozjs (algunas rutas de código generan .asm) y de
# varias libs de media más adelante. No está en el rootfs Alpine ni tenía receta. C plano, autotools.
name    = "nasm"
version = "2.16.03"
license = "BSD-2-Clause"

[source]
tarball          = "https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/nasm-2.16.03.tar.xz"
sha256           = "1412a1c760bbd05db026b6c0d1657affd6631cd0a63cddb6f73cc6d4aa616148"
strip_components = 1

[build]
compiler = "gcc"
target   = "x86_64-linux-musl"
link     = "static"     # binario de herramienta: estático, sin runtime que arrastrar

[build.phases]
configure = "./configure --build=$CBUILD --host=$CHOST --prefix=/usr"
compile   = "make -j\"$(nproc)\""
install   = "make DESTDIR=/out install"

[deps]
build = ["make"]
