diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/tvision/portfile.cmake | 23 | ||||
| -rw-r--r-- | ports/tvision/vcpkg.json | 18 |
2 files changed, 41 insertions, 0 deletions
diff --git a/ports/tvision/portfile.cmake b/ports/tvision/portfile.cmake new file mode 100644 index 000000000..c8f42021d --- /dev/null +++ b/ports/tvision/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_fail_port_install(ON_TARGET "uwp")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO magiblot/tvision
+ REF 638f963fe4f6c84854f60f1e9c5772bf6603e4b2
+ HEAD_REF master
+ SHA512 87c26fed26a332dd4b2a431dfbe0f8629d6565c59f61a3968fc658beda313ee8dad9bb59f53d47b1d664c0494841850b09e5c05533b2a74a372cc03548def2c5
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DTV_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
\ No newline at end of file diff --git a/ports/tvision/vcpkg.json b/ports/tvision/vcpkg.json new file mode 100644 index 000000000..4e1f52a18 --- /dev/null +++ b/ports/tvision/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "tvision", + "version-date": "2021-08-10", + "description": "A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces.", + "homepage": "https://github.com/magiblot/tvision", + "license": "MIT", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |
