vcpkg/ports/collada-dom/portfile.cmake
Leonid Pospelov a65000bd39
[collada-dom] fix emscripten build (#29562)
* add patch

* .

* update-hash

* fix

* reformat

* fix hash

* remove-patch-prefix

* upd-hash

* upd

* .

* Update ports/collada-dom/portfile.cmake

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>

* Update ports/collada-dom/portfile.cmake

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>

* Update ports/collada-dom/portfile.cmake

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>

* Update ports/collada-dom/vcpkg.json

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>

* Update collada-dom.json

* Update collada-dom.json

* fix

---------

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
2023-02-10 11:31:29 -08:00

29 lines
866 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO rdiankov/collada-dom
REF d37ae7532e350b87c88712e9f6ab4b1f440d20cd
SHA512 cb923d296219765096f5246cc7a2b69712931f58171ae885dbdbd215fca86d911c34d12748d3304d6a5a350dc737ff0caead2495acac488af5431b437cbacc7d
HEAD_REF v2.5.0
PATCHES
vs-version-detection.patch
use-uriparser.patch
use-vcpkg-minizip.patch
fix-shared-keyword.patch
fix-emscripten.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/collada_dom-2.5)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/licenses/license_e.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig()