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
880 B

package("libogg")
set_homepage("https://www.xiph.org/ogg/")
set_description("Ogg Bitstream Library")
set_urls("https://downloads.xiph.org/releases/ogg/libogg-$(version).tar.gz",
"https://gitlab.xiph.org/xiph/ogg.git")
add_versions("1.3.4", "fe5670640bd49e828d64d2879c31cb4dde9758681bb664f9bdbf159a01b0c76e")
on_install("macosx", "linux", "mingw", "iphoneos", "android", "cross", function (package)
local configs = {"--disable-dependency-tracking"}
if package:config("shared") then
table.insert(configs, "--enable-shared=yes")
else
table.insert(configs, "--enable-shared=no")
end
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("ogg_sync_init", {includes = {"stdint.h", "ogg/ogg.h"}}))
end)