diff --git a/packages/c/cairo/xmake.lua b/packages/c/cairo/xmake.lua new file mode 100644 index 000000000..6a4b86d86 --- /dev/null +++ b/packages/c/cairo/xmake.lua @@ -0,0 +1,26 @@ +package("cairo") + + set_homepage("https://cairographics.org/") + set_description("Vector graphics library with cross-device output support.") + + set_urls("https://cairographics.org/releases/cairo-$(version).tar.xz") + add_versions("1.16.0", "5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331") + + if not is_plat("windows") then + add_deps("pkg-config", "fontconfig", "freetype", "libpng", "pixman") + end + + on_install("macosx", "linux", function (package) + local configs = {"--disable-dependency-tracking"} +-- table.insert(configs, "--enable-gobject=yes") + table.insert(configs, "--enable-svg=yes") + table.insert(configs, "--enable-tee=yes") + table.insert(configs, "--enable-quartz-image") + table.insert(configs, "--enable-xlib=no") + table.insert(configs, "--enable-xlib-xrender=no") + import("package.tools.autoconf").install(package, configs) + end) + + on_test(function (package) + assert(package:has_cfuncs("cairo_create", {includes = "cairo.h"})) + end) diff --git a/packages/p/pkg-config/xmake.lua b/packages/p/pkg-config/xmake.lua index 036bc9407..73e0c0c8e 100644 --- a/packages/p/pkg-config/xmake.lua +++ b/packages/p/pkg-config/xmake.lua @@ -7,7 +7,7 @@ package("pkg-config") if is_host("macosx", "linux") then add_urls("https://pkgconfig.freedesktop.org/releases/pkg-config-$(version).tar.gz", "http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/pkgconfig/pkg-config-$(version).tar.gz", - "git://anongit.freedesktop.org/pkg-config") + "https://gitlab.freedesktop.org/pkg-config/pkg-config.git") add_versions("0.29.2", "6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591") end