aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lunasvg
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lunasvg
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/lunasvg')
-rw-r--r--vcpkg/ports/lunasvg/portfile.cmake28
-rw-r--r--vcpkg/ports/lunasvg/vcpkg.json18
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/lunasvg/portfile.cmake b/vcpkg/ports/lunasvg/portfile.cmake
new file mode 100644
index 0000000..23131d0
--- /dev/null
+++ b/vcpkg/ports/lunasvg/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO sammycage/lunasvg
+ REF "v${VERSION}"
+ SHA512 62cf1433f4d158008ab07c9b6a83dca2322e1adf97a7f30a2021be5610af7b28e2ed54c75292fb382a3dcc6205f0e7b8d815b8a59aa11843a059883203d191c1
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCMAKE_REQUIRE_FIND_PACKAGE_plutovg=1
+ -DUSE_SYSTEM_PLUTOVG=ON
+ -DLUNASVG_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/lunasvg)
+vcpkg_fixup_pkgconfig()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/lunasvg/lunasvg.h" "defined(LUNASVG_BUILD_STATIC)" "1")
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/lunasvg/vcpkg.json b/vcpkg/ports/lunasvg/vcpkg.json
new file mode 100644
index 0000000..aae5601
--- /dev/null
+++ b/vcpkg/ports/lunasvg/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "lunasvg",
+ "version": "3.5.0",
+ "description": "lunasvg is a standalone SVG rendering library in C++",
+ "homepage": "https://github.com/sammycage/lunasvg",
+ "license": "MIT",
+ "dependencies": [
+ "plutovg",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}