aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libgig
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/libgig
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libgig')
-rw-r--r--vcpkg/ports/libgig/portfile.cmake36
-rw-r--r--vcpkg/ports/libgig/vcpkg.json32
2 files changed, 68 insertions, 0 deletions
diff --git a/vcpkg/ports/libgig/portfile.cmake b/vcpkg/ports/libgig/portfile.cmake
new file mode 100644
index 0000000..28504a0
--- /dev/null
+++ b/vcpkg/ports/libgig/portfile.cmake
@@ -0,0 +1,36 @@
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://download.linuxsampler.org/packages/libgig-${VERSION}.tar.bz2"
+ FILENAME "libgig-${VERSION}.tar.bz2"
+ SHA512 7844d31acba4bd2f2a499511c3f45ec0a883336193a1422d6d0cd1a8d0c2e97f9f89230176969e5a80b483890914d424eb778338afd583197fdea8bee3c08627
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+)
+
+string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} dynamic LIBGIG_BUILD_SHARED)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ tools LIBGIG_BUILD_TOOLS
+ tests LIBGIG_ENABLE_TESTING
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DLIBGIG_BUILD_SHARED=${LIBGIG_BUILD_SHARED}
+)
+
+vcpkg_cmake_install()
+if("tools" IN_LIST FEATURES)
+ vcpkg_copy_tools(TOOL_NAMES dlsdump gigdump gigmerge korg2gig korgdump rifftree sf2dump
+ SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin")
+endif()
+vcpkg_cmake_config_fixup()
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
diff --git a/vcpkg/ports/libgig/vcpkg.json b/vcpkg/ports/libgig/vcpkg.json
new file mode 100644
index 0000000..637ec6e
--- /dev/null
+++ b/vcpkg/ports/libgig/vcpkg.json
@@ -0,0 +1,32 @@
+{
+ "name": "libgig",
+ "version": "4.4.1",
+ "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",
+ "supports": "windows & !uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "tests": {
+ "description": "Build test cases",
+ "dependencies": [
+ "cppunit"
+ ]
+ },
+ "tools": {
+ "description": "Build extra tools",
+ "dependencies": [
+ "libsndfile"
+ ]
+ }
+ }
+}