forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libmodplug] [ffmpeg] fix libmodplug .pc file for static windows build (
microsoft#18867) * [libmodplug] fix pkg-config file for static builds on windows * [libmodplug] convert CONTROL to vcpkg.json * [libmodplug] bump port version * [ffmpeg] enable modplug feature on static windows builds * [ffmpeg] reformat manifest * [ffmpeg] bump port version * [ffmpeg] [libmodplug] x-add-version * [libmodplug] simplify copyright file install * [libmodplug] x-add-version * [ffmpeg] bump port version * [ffmpeg] x-add-version * [ffmpeg] fix post-merge * [ffmpeg] x-add-version
- Loading branch information
1 parent
eea00aa
commit 5abd47d
Showing
9 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
From 6a3e539ea26eec1bfc2a6e722e923bd5221f8d26 Mon Sep 17 00:00:00 2001 | ||
From: "Matthias C. M. Troffaes" <[email protected]> | ||
Date: Thu, 8 Jul 2021 10:47:30 +0100 | ||
Subject: [PATCH] Fix Libs.private in .pc file. | ||
|
||
--- | ||
CMakeLists.txt | 7 +++++-- | ||
libmodplug.pc.in | 2 +- | ||
2 files changed, 6 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 468f1a3..8e94458 100644 | ||
index 468f1a3..3164fc6 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -142,6 +142,8 @@ if(HAVE_SINF) | ||
@@ -141,7 +141,11 @@ if(HAVE_SINF) | ||
add_definitions(-DHAVE_SINF) | ||
endif(HAVE_SINF) | ||
|
||
if (NOT WIN32) | ||
+ set(UNIXLIBS "-lstdc++ -lm") | ||
+endif (NOT WIN32) | ||
-if (NOT WIN32) | ||
+if(WIN32) | ||
+ set(LIBS_PRIVATE "-luser32") | ||
+else(WIN32) | ||
+ set(LIBS_PRIVATE "-lstdc++ -lm") | ||
+endif(WIN32) | ||
set(prefix "${CMAKE_INSTALL_PREFIX}") | ||
set(exec_prefix "${CMAKE_INSTALL_PREFIX}") | ||
set(libdir "${CMAKE_INSTALL_PREFIX}/lib") | ||
@@ -152,4 +154,3 @@ if (NOT WIN32) | ||
@@ -152,4 +156,3 @@ if (NOT WIN32) | ||
install(FILES "${PROJECT_BINARY_DIR}/libmodplug.pc" | ||
DESTINATION lib/pkgconfig | ||
) | ||
-endif (NOT WIN32) | ||
diff --git a/libmodplug.pc.in b/libmodplug.pc.in | ||
index bbf05f9..1699d76 100644 | ||
index bbf05f9..e4a43cc 100644 | ||
--- a/libmodplug.pc.in | ||
+++ b/libmodplug.pc.in | ||
@@ -8,5 +8,5 @@ Description: The ModPlug mod file playing library. | ||
Version: @VERSION@ | ||
Requires: | ||
Libs: -L${libdir} -lmodplug | ||
-Libs.private: -lstdc++ -lm | ||
+Libs.private: @UNIXLIBS@ | ||
+Libs.private: @LIBS_PRIVATE@ | ||
Cflags: -I${includedir} | ||
-- | ||
2.21.0.windows.1 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "libmodplug", | ||
"version-string": "0.8.9.0", | ||
"port-version": 8, | ||
"description": "The ModPlug mod file playing library.", | ||
"homepage": "https://github.com/Konstanty/libmodplug", | ||
"supports": "!uwp" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters