vcpkg/ports/otl/portfile.cmake
2020-04-20 16:07:26 -07:00

22 lines
680 B
CMake

set(OTL_VERSION 40451)
vcpkg_download_distfile(ARCHIVE
URLS "http://otl.sourceforge.net/otlv4_${OTL_VERSION}.zip"
FILENAME "otlv4_${OTL_VERSION}.zip"
SHA512 74499b79a756c1ecc16d6bd9b277b91add55249d2e1cb65a31786e9750ff607da1222797f318954599efc5153cecee2d3a7fd1e994c09e7ddb2507c8e5ce5c55
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
NO_REMOVE_ONE_LEVEL
)
file(INSTALL "${SOURCE_PATH}/otlv${OTL_VERSION}.h"
DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}"
RENAME otlv4.h)
file(INSTALL "${SOURCE_PATH}/otlv${OTL_VERSION}.h"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright)