aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libsndfile/mp3lame-static.diff
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/libsndfile/mp3lame-static.diff
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libsndfile/mp3lame-static.diff')
-rw-r--r--vcpkg/ports/libsndfile/mp3lame-static.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/libsndfile/mp3lame-static.diff b/vcpkg/ports/libsndfile/mp3lame-static.diff
new file mode 100644
index 0000000..a77759a
--- /dev/null
+++ b/vcpkg/ports/libsndfile/mp3lame-static.diff
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b501f08..946c321 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -236,6 +236,10 @@ if (INSTALL_PKGCONFIG_MODULE)
+ if (ENABLE_MPEG)
+ set (EXTERNAL_MPEG_REQUIRE "libmpg123")
+ set (EXTERNAL_MPEG_LIBS "-lmp3lame")
++ get_target_property(mp3lame_binary mp3lame::mp3lame IMPORTED_LOCATION_RELEASE)
++ if(mp3lame_binary MATCHES "mp3lame-static")
++ set (EXTERNAL_MPEG_LIBS "-lmp3lame-static -lmpghip-static")
++ endif()
+ endif ()
+
+ configure_file (sndfile.pc.in sndfile.pc @ONLY)