QEMU is included in the NetBSD pkgsrc tree. To install, use

# pkgin add qemu

To build from source, download the pkgsrc tree and

# cd /path/to/pkgsrc/emulators/qemu && make update