Skip to content

Commit

Permalink
[opus] Fix version "unknown" returned by version API
Browse files Browse the repository at this point in the history
  • Loading branch information
evpobr committed Jan 12, 2019
1 parent ce7c229 commit 68dd6cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ports/opus/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: opus
Version: 1.3
Version: 1.3-1
Description: Totally open, royalty-free, highly versatile audio codec
1 change: 1 addition & 0 deletions ports/opus/package_version.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PACKAGE_VERSION="@OPUS_VERSION@"
8 changes: 8 additions & 0 deletions ports/opus/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
endif()

include(vcpkg_common_functions)

set(OPUS_VERSION "1.3")

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xiph/opus
Expand All @@ -12,6 +15,11 @@ vcpkg_from_github(
PATCHES "${CMAKE_CURRENT_LIST_DIR}/no-main.patch"
)

configure_file(
${CMAKE_CURRENT_LIST_DIR}/package_version.in
${SOURCE_PATH}/package_version
)

# Ensure proper crt linkage
file(READ ${SOURCE_PATH}/win32/VS2015/common.props OPUS_PROPS)
if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
Expand Down

0 comments on commit 68dd6cd

Please sign in to comment.