aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libbluray
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libbluray
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libbluray')
-rw-r--r--vcpkg/ports/libbluray/msvc.diff15
-rw-r--r--vcpkg/ports/libbluray/portfile.cmake31
-rw-r--r--vcpkg/ports/libbluray/vcpkg.json21
3 files changed, 67 insertions, 0 deletions
diff --git a/vcpkg/ports/libbluray/msvc.diff b/vcpkg/ports/libbluray/msvc.diff
new file mode 100644
index 0000000..d450bb2
--- /dev/null
+++ b/vcpkg/ports/libbluray/msvc.diff
@@ -0,0 +1,15 @@
+diff --git a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
+index d45be33c..20e1ec47 100644
+--- a/src/libbluray/bdnav/meta_parse.c
++++ b/src/libbluray/bdnav/meta_parse.c
+@@ -40,6 +40,10 @@
+ #include <strings.h>
+ #endif
+
++#ifdef _WIN32
++#define strncasecmp _strnicmp
++#endif
++
+ #ifdef HAVE_LIBXML2
+ #include <libxml/parser.h>
+ #include <libxml/xmlmemory.h>
diff --git a/vcpkg/ports/libbluray/portfile.cmake b/vcpkg/ports/libbluray/portfile.cmake
new file mode 100644
index 0000000..e2197a8
--- /dev/null
+++ b/vcpkg/ports/libbluray/portfile.cmake
@@ -0,0 +1,31 @@
+vcpkg_from_gitlab(
+ GITLAB_URL https://code.videolan.org
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO videolan/libbluray
+ REF ${VERSION}
+ SHA512 e728f8d93b311d540a3883ba869fdc2c10e91b4009bf1796947b510d3646088dfd7aeabaebb3a1dcbf49d5afee48743bfa620fd93aa54bf948238510e7e7719f
+ PATCHES
+ msvc.diff
+)
+
+if(NOT VCPKG_TARGET_IS_WINDOWS)
+ list(APPEND options -Dfontconfig=enabled)
+else()
+ list(APPEND options -Dfontconfig=disabled)
+endif()
+
+vcpkg_configure_meson(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Denable_tools=false
+ -Dbdj_jar=disabled
+ -Dfreetype=enabled
+ -Dlibxml2=enabled
+ ${options}
+)
+
+vcpkg_install_meson()
+vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/libbluray/vcpkg.json b/vcpkg/ports/libbluray/vcpkg.json
new file mode 100644
index 0000000..5f3aef8
--- /dev/null
+++ b/vcpkg/ports/libbluray/vcpkg.json
@@ -0,0 +1,21 @@
+{
+ "name": "libbluray",
+ "version-semver": "1.4.0",
+ "description": "Library to access Blu-Ray disks",
+ "homepage": "https://www.videolan.org/developers/libbluray.html",
+ "license": "LGPL-2.1-or-later",
+ "supports": "!uwp & !xbox",
+ "dependencies": [
+ {
+ "name": "fontconfig",
+ "platform": "!uwp & !windows"
+ },
+ "freetype",
+ "libudfread",
+ "libxml2",
+ {
+ "name": "vcpkg-tool-meson",
+ "host": true
+ }
+ ]
+}