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.
39 lines
2.0 KiB
39 lines
2.0 KiB
package("nasm") |
|
|
|
set_kind("binary") |
|
set_homepage("https://www.nasm.us/") |
|
set_description("Netwide Assembler (NASM) is an 80x86 assembler.") |
|
set_license("BSD-2-Clause") |
|
|
|
if is_host("windows") then |
|
if os.arch() == "x64" then |
|
add_urls("https://www.nasm.us/pub/nasm/releasebuilds/$(version)/win64/nasm-$(version)-win64.zip") |
|
add_urls("https://github.com/xmake-mirror/nasm/releases/download/nasm-$(version)/nasm-$(version)-win64.zip") |
|
add_versions("2.15.05", "f5c93c146f52b4f1664fa3ce6579f961a910e869ab0dae431bd871bdd2584ef2") |
|
add_versions("2.16.01", "029eed31faf0d2c5f95783294432cbea6c15bf633430f254bb3c1f195c67ca3a") |
|
else |
|
add_urls("https://www.nasm.us/pub/nasm/releasebuilds/$(version)/win32/nasm-$(version)-win32.zip") |
|
add_urls("https://github.com/xmake-mirror/nasm/releases/download/nasm-$(version)/nasm-$(version)-win32.zip") |
|
add_versions("2.15.05", "258c7d1076e435511cf2fdf94e2281eadbdb9e3003fd57f356f446e2bce3119e") |
|
add_versions("2.16.01", "e289fa70c88594b092c916344bb8bfcd6896b604bfab284ab57b1372997c820c") |
|
end |
|
else |
|
add_urls("https://www.nasm.us/pub/nasm/releasebuilds/$(version)/nasm-$(version).tar.xz") |
|
add_urls("https://github.com/xmake-mirror/nasm/releases/download/nasm-$(version)/nasm-$(version).tar.xz") |
|
add_versions("2.13.03", "812ecfb0dcbc5bd409aaa8f61c7de94c5b8752a7b00c632883d15b2ed6452573") |
|
add_versions("2.15.05", "3caf6729c1073bf96629b57cee31eeb54f4f8129b01902c73428836550b30a3f") |
|
add_versions("2.16.01", "c77745f4802375efeee2ec5c0ad6b7f037ea9c87c92b149a9637ff099f162558") |
|
end |
|
|
|
on_install("@windows", "@mingw", "@msys", function (package) |
|
os.cp("*.exe", package:installdir("bin")) |
|
os.cp(path.join("rdoff", "*.exe"), package:installdir("bin")) |
|
end) |
|
|
|
on_install("@linux", "@macosx", "@bsd", function (package) |
|
import("package.tools.autoconf").install(package) |
|
end) |
|
|
|
on_test(function (package) |
|
os.vrun("nasm --version") |
|
end)
|
|
|