mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
[libgig] Update to 4.5.2 (#49008)
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://download.linuxsampler.org/packages/libgig-${VERSION}.tar.bz2"
|
||||
FILENAME "libgig-${VERSION}.tar.bz2"
|
||||
SHA512 7844d31acba4bd2f2a499511c3f45ec0a883336193a1422d6d0cd1a8d0c2e97f9f89230176969e5a80b483890914d424eb778338afd583197fdea8bee3c08627
|
||||
SHA512 df7b1146c7326306c052113dd69fe7731127104340818cf939da04eff10a42c88b629121fd15519d5efa211e73a61fb318754bff6d02175ea2b28df2567b59c3
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive(
|
||||
SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
PATCHES
|
||||
replace_cpp23warning.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} dynamic LIBGIG_BUILD_SHARED)
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBGIG_BUILD_SHARED)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
@@ -22,6 +24,7 @@ vcpkg_cmake_configure(
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DLIBGIG_BUILD_SHARED=${LIBGIG_BUILD_SHARED}
|
||||
-DLIBGIG_ENABLE_TESTING=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
15
ports/libgig/replace_cpp23warning.patch
Normal file
15
ports/libgig/replace_cpp23warning.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git "a/src/RIFF.h" "b/src/RIFF.h"
|
||||
index f6e7fc8..7746609 100644
|
||||
--- "a/src/RIFF.h"
|
||||
+++ "b/src/RIFF.h"
|
||||
@@ -24,8 +24,8 @@
|
||||
#ifndef __RIFF_H__
|
||||
#define __RIFF_H__
|
||||
|
||||
-#if __cplusplus < 201103L
|
||||
-# warning C++11 or higher required for libgig
|
||||
+#if __cplusplus < 201103L && !defined(_MSC_VER)
|
||||
+# pragma message("C++11 or higher required for libgig")
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libgig",
|
||||
"version": "4.4.1",
|
||||
"version": "4.5.2",
|
||||
"description": "C++ library for loading Gigasampler files and DLS Level 1/2 files",
|
||||
"homepage": "https://www.linuxsampler.org/libgig/",
|
||||
"license": "GPL-2.0-or-later",
|
||||
@@ -16,12 +16,6 @@
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"tests": {
|
||||
"description": "Build test cases",
|
||||
"dependencies": [
|
||||
"cppunit"
|
||||
]
|
||||
},
|
||||
"tools": {
|
||||
"description": "Build extra tools",
|
||||
"dependencies": [
|
||||
|
||||
@@ -4917,7 +4917,7 @@
|
||||
"port-version": 0
|
||||
},
|
||||
"libgig": {
|
||||
"baseline": "4.4.1",
|
||||
"baseline": "4.5.2",
|
||||
"port-version": 0
|
||||
},
|
||||
"libgit2": {
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b2a2ca46d0591d0ad2be21e3892b379412488451",
|
||||
"version": "4.5.2",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "0e6d75a1433a7c49812af830bee40c2cd54c71ee",
|
||||
"version": "4.4.1",
|
||||
|
||||
Reference in New Issue
Block a user