vcpkg/ports/openctm/portfile.cmake
Dennis 68c6835c82
[new port] Add openctm (#24680)
* New port: openctm

* Change openctm from "version-semver" to "version"

Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>

* Update openctm versions file

* Use ${PORT} instead of openctm directly

* Put CMake configs in the unofficial namespace.

* dos2unix

Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-05-17 23:06:15 -07:00

22 lines
695 B
CMake

vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
REPO openctm
REF OpenCTM-1.0.3
SHA512 fdfa08d19ecbfea99ba01aa2032e941ed6313394a96bd69f8984c2d2d079d836c616471d2bdf6f40175e75659f3ad0ba41502bc3d8224091472f40893ea8746e
FILENAME "OpenCTM-1.0.3-src.tar.bz2"
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-openctm)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)