aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/minifb
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/minifb')
-rw-r--r--vcpkg/ports/minifb/portfile.cmake23
-rw-r--r--vcpkg/ports/minifb/usage4
-rw-r--r--vcpkg/ports/minifb/vcpkg.json18
3 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/minifb/portfile.cmake b/vcpkg/ports/minifb/portfile.cmake
new file mode 100644
index 0000000..3389c2a
--- /dev/null
+++ b/vcpkg/ports/minifb/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO emoon/minifb
+ REF 2ce2449b1bc8d7c6d20c31b86244f1e540f2e788 # 2023-09-21
+ SHA512 cbadc06df99f833fedcd9eb9d5afab4572272a9dfd0f4084a2b79a64dc98f19bcddbb6f43992b16f005d26054c454e3cfc34e3e210cdd93ad1adb89e19463a4d
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DMINIFB_BUILD_EXAMPLES=FALSE
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/minifb/usage b/vcpkg/ports/minifb/usage
new file mode 100644
index 0000000..68bc6ab
--- /dev/null
+++ b/vcpkg/ports/minifb/usage
@@ -0,0 +1,4 @@
+minifb provides CMake targets:
+
+ find_package(minifb CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE minifb::minifb)
diff --git a/vcpkg/ports/minifb/vcpkg.json b/vcpkg/ports/minifb/vcpkg.json
new file mode 100644
index 0000000..07ef620
--- /dev/null
+++ b/vcpkg/ports/minifb/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "minifb",
+ "version-date": "2023-09-21",
+ "description": "MiniFB (Mini FrameBuffer) is a small cross platform library that makes it easy to render (32-bit) pixels in a window.",
+ "homepage": "https://github.com/emoon/minifb",
+ "license": "MIT",
+ "supports": "!uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}