vcpkg/ports/lunasvg/portfile.cmake
Leonid Pospelov 6dff39f134
[lunasvg] Add new port (#23867)
* [lunasvg] Add new port

* Run x-add-version

* Update portfile.cmake

* Add license to vcpkg.json

* Update lunasvg.json

* Replace tabs with spaces

* Run x-add-version

* Update vcpkg.json

* Update lunasvg.json
2022-04-05 11:07:47 -07:00

25 lines
701 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sammycage/lunasvg
REF e612abda858b53160041381a23422cd2b4f42fbd #2.3.1
SHA512 44f5d013d918cb5af90114a12857bdd2c204caff761516ef98b12b08d8b6215e91f6d963c281500c386f287b9d0ecd5b3d986d4c8c33423c0c34d539d744e09d
HEAD_REF master
PATCHES
fix-install.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DLUNASVG_BUILD_EXAMPLES=OFF
-DBUILD_SHARED_LIBS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)