apotocki/plutovg 1.3.3 (r1, linux)
- Library
- plutovg
- Variant
- linux, target linux
- Channel
- stable
- Published
- 2026-11-07
- Recipe source
- https://github.com/otok-dev/recipes
32756a87cf5bd189ca4c9825159bf0713ea8cf5einrecipes/plutovg/1.3/linux/ - Recipe SHA-256
cc7dabe1ba6f58371ac5d0d4f362deafcbffaa117e884619a09b8eb46fa99e0c
Recipe files changed
Inputs
| source.commit | bbd91f0d06a71491691b36330f29dffa4af87ccf |
|---|---|
| source.git | https://github.com/sammycage/plutovg |
| source.tag | v1.3.3 |
Platforms
linux
Toolchains
cmake { default-recipe = "apotocki/cmake", version = ">= 3.20" }ninja { default-recipe = "apotocki/ninja", version = ">= 1.10" }
Recipe files
build.lua
-- PlutoVG's CMake project without its examples. What it installs: libplutovg.a, or libplutovg.so with
-- its links; the header in include/plutovg/.
function build(slice, options, deps)
otok.cmake{ defines = { PLUTOVG_BUILD_EXAMPLES = false } }
local p = slice.prefix
-- a static library is told by PLUTOVG_BUILD_STATIC, which its CMake config gives its consumers: the
-- header says so itself, as the others have no config
if slice.linkage == "static" then
local header = p .. "/include/plutovg/plutovg.h"
local text, n = otok.read(header):gsub("defined%(PLUTOVG_BUILD_STATIC%)", "1")
assert(n > 0, "plutovg.h no longer tests PLUTOVG_BUILD_STATIC")
otok.write(header, text)
end
local lib = otok.glob(slice.linkage == "static" and "lib/libplutovg.a" or "lib/libplutovg.so", p)[1]
return { libraries = { plutovg = lib }, headers = p .. "/include" }
end
recipe.toml
# The otok recipe of PlutoVG (https://github.com/apotocki/otok): libplutovg for Linux, from the release tag; static
# or dynamic.
[recipe]
api = 1
library = "plutovg"
name = "plutovg"
version = "1.3.3"
revision = 1
license = "MIT"
license-files = ["LICENSE"]
homepage = "https://github.com/sammycage/plutovg"
description = "PlutoVG, a tiny 2D vector graphics library in C."
keywords = ["graphics", "vector", "2d"]
linkage = ["static", "dynamic"]
[source]
git = "https://github.com/sammycage/plutovg"
commit = "bbd91f0d06a71491691b36330f29dffa4af87ccf"
tag = "v1.3.3"
[platforms]
supported = ["linux"]
build-on = ["linux/gcc", "linux/clang"]
[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
[[product]]
name = "PlutoVG"
libraries = ["plutovg"]