38 lines
754 B
Python
38 lines
754 B
Python
import os
|
|
|
|
from lib import cpp
|
|
from lib.make import *
|
|
|
|
|
|
version("2026.6.19")
|
|
description("The BSD make utility ported to non-BSD systems")
|
|
maintainer("sisungo <[email protected]>")
|
|
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={get_prefix('bmake')}/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)
|