import os from lib import cpp from lib.make import * VERSION = "2026.6.19" version(VERSION) source_url("https://www.crufty.net/ftp/pub/sjg/bmake-20260619.tar.gz") builddep("shortcut/c") builddep("shortcut/autotools") builddep("bc") def build(): cpp.configure( [ "--prefix=/", f"--with-default-sys-path=/pkg/bmake={VERSION}@{arch.get_target()}/share/mk", ] ) cpp.make() cpp.make_install() on_build(build) def pack_bmake(composer): composer.makedir("bin") composer.addfile("bin/bmake", "bin/bmake") composer.makedir("share") composer.add_dir("share/mk", "share/mk") package("bmake") dep("semi-libc @same-arch") on_pack(pack_bmake)