aboutsummaryrefslogtreecommitdiff
path: root/ports/libvorbis
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libvorbis')
-rw-r--r--ports/libvorbis/CONTROL1
-rw-r--r--ports/libvorbis/portfile.cmake8
2 files changed, 8 insertions, 1 deletions
diff --git a/ports/libvorbis/CONTROL b/ports/libvorbis/CONTROL
index 8ea6bbc44..13273ff70 100644
--- a/ports/libvorbis/CONTROL
+++ b/ports/libvorbis/CONTROL
@@ -1,5 +1,6 @@
Source: libvorbis
Version: 1.3.6-4d963fe
+Port-Version: 2
Homepage: https://github.com/xiph/vorbis
Description: Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed audio format.
Build-Depends: libogg
diff --git a/ports/libvorbis/portfile.cmake b/ports/libvorbis/portfile.cmake
index cf6b86a5c..fe641f8e8 100644
--- a/ports/libvorbis/portfile.cmake
+++ b/ports/libvorbis/portfile.cmake
@@ -24,4 +24,10 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
-vcpkg_copy_pdbs()
+vcpkg_copy_pdbs()
+
+if(WIN32 AND (NOT MINGW))
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/vorbis.pc" "-lm" "")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/vorbis.pc" "-lm" "")
+endif()
+vcpkg_fixup_pkgconfig()