vcpkg/ports/libtcod/portfile.cmake
Kyle Benesch cda58bef39
[libtcod] Add new port. (#16408)
* [libtcod] Add new port.

* [lodepng-c] Add port lodepng-c, conflict with lodepng

* [libtcode] Fix dependencies

* [libtcod] Re-fix dependency utf8proc

* update version record

* [lodepng-c/lodepng] Add conflict message

* add baseline

* remove port-version

* update port-version

* update version record

* [libtcod] Update to 1.16.6.

Patches applied upstream.

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
2021-03-29 10:11:07 -07:00

35 lines
889 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libtcod/libtcod
REF 1.16.6
SHA512 88777acd89d5ab2541d8b5d2f6db966059b76501b591d6e1d782d0d39b0adbcb38be25c49716b6e581b4b0488bf2dbfc5b07452b80495365861cee97e5279bfd
HEAD_REF develop
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
${FEATURE_OPTIONS}
-DCMAKE_INSTALL_INCLUDEDIR=${CURRENT_PACKAGES_DIR}/include
-DCMAKE_INSTALL_CONFIGDIR=share/libtcod
-DLIBTCOD_SDL2=find_package
-DLIBTCOD_ZLIB=find_package
-DLIBTCOD_GLAD=find_package
-DLIBTCOD_LODEPNG=find_package
-DLIBTCOD_UTF8PROC=vcpkg
-DLIBTCOD_STB=vcpkg
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets()
file(
INSTALL "${SOURCE_PATH}/LICENSE.txt"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)