mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 09:08:59 +08:00
[rtlsdr] Fix the 'rtlsdr' package when not running from within a git tree. (#11575)
This commit is contained in:
parent
cc4f93f434
commit
0fc90d9f15
@ -1,5 +1,5 @@
|
||||
Source: rtlsdr
|
||||
Version: 2020-04-16
|
||||
Version: 2020-04-16-1
|
||||
Homepage: https://osmocom.org/projects/rtl-sdr
|
||||
Description: rtl-sdr is a library that turns your Realtek RTL2832 based DVB dongle into a SDR receiver
|
||||
Build-Depends: libusb, pthreads (windows)
|
||||
|
15
ports/rtlsdr/fix-version.patch
Normal file
15
ports/rtlsdr/fix-version.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/cmake/modules/Version.cmake b/cmake/modules/Version.cmake
|
||||
index 2d4e76d..6acffe2 100644
|
||||
--- a/cmake/modules/Version.cmake
|
||||
+++ b/cmake/modules/Version.cmake
|
||||
@@ -39,7 +39,9 @@ if(GIT_FOUND)
|
||||
OUTPUT_VARIABLE GIT_DESCRIBE OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
-else()
|
||||
+endif()
|
||||
+
|
||||
+if ("${GIT_DESCRIBE}" STREQUAL "")
|
||||
set(GIT_DESCRIBE "v${MAJOR_VERSION}.${MINOR_VERSION}.x-xxx-xunknown")
|
||||
endif()
|
||||
|
@ -9,7 +9,9 @@ vcpkg_from_github(
|
||||
REF d794155ba65796a76cd0a436f9709f4601509320
|
||||
SHA512 21fe10f1dbecca651650f03d1008560930fac439d220c33b4a23acce98d78d8476ff200765eed8cfa6cddde761d45f7ba36c8b5bc3662aa85819172830ea4938
|
||||
HEAD_REF master
|
||||
PATCHES Compile-with-msvc.patch
|
||||
PATCHES
|
||||
Compile-with-msvc.patch
|
||||
fix-version.patch
|
||||
)
|
||||
|
||||
file(
|
||||
|
Loading…
Reference in New Issue
Block a user