aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-09-14 15:51:49 -0700
committerGitHub <noreply@github.com>2020-09-14 15:51:49 -0700
commita9a1dac8c6996e67551e686441b2d61a77418eb1 (patch)
tree5c85b760ba08e9aee61b1b9f522ea978d03b6f57
parent998ecbc9d7e10e3fc7227847afe7c910a52df6e1 (diff)
downloadvcpkg-a9a1dac8c6996e67551e686441b2d61a77418eb1.tar.gz
vcpkg-a9a1dac8c6996e67551e686441b2d61a77418eb1.zip
[sdl2] Fix pkgconfig: missing system lib dbus-1 (#13520)
-rw-r--r--ports/sdl2/CONTROL2
-rw-r--r--ports/sdl2/portfile.cmake5
2 files changed, 5 insertions, 2 deletions
diff --git a/ports/sdl2/CONTROL b/ports/sdl2/CONTROL
index 7ea632935..5aa62903a 100644
--- a/ports/sdl2/CONTROL
+++ b/ports/sdl2/CONTROL
@@ -1,6 +1,6 @@
Source: sdl2
Version: 2.0.12
-Port-Version: 3
+Port-Version: 4
Homepage: https://www.libsdl.org/download-2.0.php
Description: Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
diff --git a/ports/sdl2/portfile.cmake b/ports/sdl2/portfile.cmake
index ef287e301..d9ed365f4 100644
--- a/ports/sdl2/portfile.cmake
+++ b/ports/sdl2/portfile.cmake
@@ -94,4 +94,7 @@ string(REGEX REPLACE ${DYLIB_CURRENT_VERSION_REGEX} "\\1" DYLIB_CURRENT_VERSION
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2" "-lSDL2d")
-vcpkg_fixup_pkgconfig(IGNORE_FLAGS "-Wl,-rpath,${CURRENT_PACKAGES_DIR}/lib/pkgconfig/../../lib" "-Wl,-rpath,${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/../../lib" "-Wl,--enable-new-dtags" "-Wl,--no-undefined" "-Wl,-undefined,error" "-Wl,-compatibility_version,${DYLIB_COMPATIBILITY_VERSION}" "-Wl,-current_version,${DYLIB_CURRENT_VERSION}" "-Wl,-weak_framework,Metal" "-Wl,-weak_framework,QuartzCore")
+vcpkg_fixup_pkgconfig(
+ IGNORE_FLAGS "-Wl,-rpath,${CURRENT_PACKAGES_DIR}/lib/pkgconfig/../../lib" "-Wl,-rpath,${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/../../lib" "-Wl,--enable-new-dtags" "-Wl,--no-undefined" "-Wl,-undefined,error" "-Wl,-compatibility_version,${DYLIB_COMPATIBILITY_VERSION}" "-Wl,-current_version,${DYLIB_CURRENT_VERSION}" "-Wl,-weak_framework,Metal" "-Wl,-weak_framework,QuartzCore"
+ SYSTEM_LIBRARIES dbus-1
+)