package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
750 B
22 lines
750 B
6 years ago
|
package("yasm")
|
||
|
|
||
|
set_kind("binary")
|
||
|
set_homepage("https://yasm.tortall.net/")
|
||
|
set_description("Modular BSD reimplementation of NASM.")
|
||
|
|
||
|
add_urls("https://www.tortall.net/projects/yasm/releases/yasm-$(version).tar.gz",
|
||
|
"https://ftp.openbsd.org/pub/OpenBSD/distfiles/yasm-$(version).tar.gz")
|
||
|
add_versions("1.3.0", "3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f")
|
||
|
|
||
|
on_install("linux", "macosx", function (package)
|
||
|
local configs = {"--disable-python"}
|
||
|
if package:debug() then
|
||
|
table.insert(configs, "--enable-debug")
|
||
|
end
|
||
|
import("package.tools.autoconf").install(package)
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
os.vrun("yasm --version")
|
||
|
end)
|