diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libudfread | |
Diffstat (limited to 'vcpkg/ports/libudfread')
| -rw-r--r-- | vcpkg/ports/libudfread/msvc.diff | 30 | ||||
| -rw-r--r-- | vcpkg/ports/libudfread/portfile.cmake | 21 | ||||
| -rw-r--r-- | vcpkg/ports/libudfread/vcpkg.json | 13 |
3 files changed, 64 insertions, 0 deletions
diff --git a/vcpkg/ports/libudfread/msvc.diff b/vcpkg/ports/libudfread/msvc.diff new file mode 100644 index 0000000..1619cfa --- /dev/null +++ b/vcpkg/ports/libudfread/msvc.diff @@ -0,0 +1,30 @@ +diff --git a/src/default_blockinput.c b/src/default_blockinput.c +index 3926e65..1be4505 100644 +--- a/src/default_blockinput.c ++++ b/src/default_blockinput.c +@@ -37,6 +37,9 @@ + + #ifdef _WIN32 + #include <windows.h> ++#if !defined(ssize_t) ++#define ssize_t SSIZE_T ++#endif + #ifndef HAVE_UNISTD_H + #include <stdio.h> + #endif +diff --git a/src/udfread.h b/src/udfread.h +index d6fd9ef..94b6cbb 100644 +--- a/src/udfread.h ++++ b/src/udfread.h +@@ -35,6 +35,11 @@ extern "C" { + #define UDF_PUBLIC + #endif + ++#if defined(_WIN32) && !defined(ssize_t) ++#include <windows.h> ++#define ssize_t SSIZE_T ++#endif ++ + /** + * @file udfread/udfread.h + * external API header diff --git a/vcpkg/ports/libudfread/portfile.cmake b/vcpkg/ports/libudfread/portfile.cmake new file mode 100644 index 0000000..1929d4d --- /dev/null +++ b/vcpkg/ports/libudfread/portfile.cmake @@ -0,0 +1,21 @@ +vcpkg_from_gitlab( + OUT_SOURCE_PATH SOURCE_PATH + GITLAB_URL https://code.videolan.org + REPO videolan/libudfread + REF ${VERSION} + SHA512 63cdd8ce9b7525d17f8f685b87d1232334ebfe9ffcd48b3bb189231f4d3c88c11a19d3435be9252058d374b1cbd86eb38a045c969699730cb9729a541582f645 + PATCHES + msvc.diff +) + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Denable_examples=false +) + +vcpkg_install_meson() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/vcpkg/ports/libudfread/vcpkg.json b/vcpkg/ports/libudfread/vcpkg.json new file mode 100644 index 0000000..3f11bcd --- /dev/null +++ b/vcpkg/ports/libudfread/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "libudfread", + "version-semver": "1.2.0", + "description": "UDF filesystem access library", + "homepage": "https://code.videolan.org/videolan/libudfread", + "license": "LGPL-2.1-or-later", + "dependencies": [ + { + "name": "vcpkg-tool-meson", + "host": true + } + ] +} |