mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[Basisu] Fix MinGW build failure (#27760)
* Patch Basisu to include <libgen.h> for MinGW * Bump Basisu port version * Fix unescaped backslash in path to gperf * Use || instead of or, honestly I don't know why this worked * Revert "Fix unescaped backslash in path to gperf" Will make the change to fontconfig in another branch This reverts commit 6894e4583acef89c96f29b2705d5a90e5f38d6b4. * Put portfile patches on separate lines * Update basisu.json * Update basisu.json Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
This commit is contained in:
parent
6a7131cac4
commit
46690e2ea5
13
ports/basisu/fix-add-libgen-mingw.patch
Normal file
13
ports/basisu/fix-add-libgen-mingw.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/encoder/basisu_enc.h b/src/encoder/basisu_enc.h
|
||||
index 468f43b..02ec3c4 100644
|
||||
--- a/src/encoder/basisu_enc.h
|
||||
+++ b/src/encoder/basisu_enc.h
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <unordered_map>
|
||||
#include <ostream>
|
||||
|
||||
-#ifndef _WIN32
|
||||
+#if !defined(_WIN32) || defined(__MINGW32__)
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
@ -4,7 +4,9 @@ vcpkg_from_github(
|
||||
REF 497875f756ed0e3eb62e0ff08d55c62242f4be74
|
||||
SHA512 2293b78620a7ed510dbecf48bcae5f4b8524fe9020f864c8e79cf94ea9d95d51dddf83a5b4ea29cc95db19f87137bfef1cb68b7fbc6387e08bb42898d81c9303
|
||||
HEAD_REF master
|
||||
PATCHES fix-addostream.patch
|
||||
PATCHES
|
||||
fix-addostream.patch
|
||||
fix-add-libgen-mingw.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "basisu",
|
||||
"version": "1.11",
|
||||
"port-version": 6,
|
||||
"port-version": 7,
|
||||
"description": "Basis Universal is a supercompressed GPU texture and video compression format that outputs a highly compressed intermediate file format (.basis) that can be quickly transcoded to a wide variety of GPU texture compression formats.",
|
||||
"homepage": "https://github.com/BinomialLLC/basis_universal",
|
||||
"license": "Apache-2.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "31adec97dda19e99a5745f46a5d2031981206bb1",
|
||||
"version": "1.11",
|
||||
"port-version": 7
|
||||
},
|
||||
{
|
||||
"git-tree": "8552deb382fab18170488ffdf05fdd50dd3e2d99",
|
||||
"version": "1.11",
|
||||
|
@ -426,7 +426,7 @@
|
||||
},
|
||||
"basisu": {
|
||||
"baseline": "1.11",
|
||||
"port-version": 6
|
||||
"port-version": 7
|
||||
},
|
||||
"bcg729": {
|
||||
"baseline": "1.1.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user