aboutsummaryrefslogtreecommitdiff
path: root/ports/itpp
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-08-02 08:54:45 +0800
committerPhil Christensen <philc@microsoft.com>2019-08-01 17:54:45 -0700
commitbacbcf3527390ae7d20cd9660d82a180f2c8e065 (patch)
tree1dee3a182b8762b3a31ac6be6b01248b7c422f05 /ports/itpp
parented7822f5af596076143fe0d89bb1dba04ef26c8f (diff)
downloadvcpkg-bacbcf3527390ae7d20cd9660d82a180f2c8e065.tar.gz
vcpkg-bacbcf3527390ae7d20cd9660d82a180f2c8e065.zip
[manyports]Regenerate patches and modify how the patches are used. (#7484)
* [ccfits]Regenerate patches and modify how the patches are used. * [itpp]Regenerate patches and modify how the patches are used. * [mpg123]Regenerate patches and modify how the patches are used. * [qwt]Regenerate patches and modify how the patches are used. * [sdl1]Remove a patche and modify how the patches are used.
Diffstat (limited to 'ports/itpp')
-rw-r--r--ports/itpp/CONTROL2
-rw-r--r--ports/itpp/fix-linux.patch10
-rw-r--r--ports/itpp/fix-uwp.patch11
-rw-r--r--ports/itpp/portfile.cmake14
4 files changed, 17 insertions, 20 deletions
diff --git a/ports/itpp/CONTROL b/ports/itpp/CONTROL
index 623b2fc6b..95a49293b 100644
--- a/ports/itpp/CONTROL
+++ b/ports/itpp/CONTROL
@@ -1,3 +1,3 @@
Source: itpp
-Version: 4.3.1
+Version: 4.3.1-1
Description: IT++ is a C++ library of mathematical, signal processing and communication classes and functions. Its main use is in simulation of communication systems and for performing research in the area of communications. \ No newline at end of file
diff --git a/ports/itpp/fix-linux.patch b/ports/itpp/fix-linux.patch
index 5e7bb64c0..18b66af5f 100644
--- a/ports/itpp/fix-linux.patch
+++ b/ports/itpp/fix-linux.patch
@@ -1,13 +1,17 @@
diff --git a/itpp/base/random_dsfmt.h b/itpp/base/random_dsfmt.h
-index ccbf182..a3d5472 100644
+index ccbf182..de819fb 100644
--- a/itpp/base/random_dsfmt.h
+++ b/itpp/base/random_dsfmt.h
-@@ -299,7 +299,7 @@ private:
+@@ -299,7 +299,12 @@ private:
*/
static void do_recursion(typename Context::w128_t *r, typename Context::w128_t *a, typename Context::w128_t *b, typename Context::w128_t *lung) {
#if defined(__SSE2__)
-- const unsigned int SSE2_SHUFF = 0x1bU;
++
++#ifdef __linux__
+#define SSE2_SHUFF 0x1bU
++#else
+ const unsigned int SSE2_SHUFF = 0x1bU;
++#endif
__m128i x = a->si;
__m128i z = _mm_slli_epi64(x, SL1);
diff --git a/ports/itpp/fix-uwp.patch b/ports/itpp/fix-uwp.patch
index 18e5fe4eb..69805922a 100644
--- a/ports/itpp/fix-uwp.patch
+++ b/ports/itpp/fix-uwp.patch
@@ -1,12 +1,15 @@
diff --git a/itpp/base/timing.cpp b/itpp/base/timing.cpp
-index 58178e4..47d662e 100644
+index 58178e4..6b173d0 100644
--- a/itpp/base/timing.cpp
+++ b/itpp/base/timing.cpp
-@@ -51,6 +51,7 @@
-
+@@ -52,6 +52,10 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <windows.h>
-+#include <Winsock2.h>
++#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
++#include <Winsock2.h>
++#endif
++
int gettimeofday(struct timeval* p, void*)
{
+ union {
diff --git a/ports/itpp/portfile.cmake b/ports/itpp/portfile.cmake
index 10faf4882..84fc651e4 100644
--- a/ports/itpp/portfile.cmake
+++ b/ports/itpp/portfile.cmake
@@ -13,20 +13,10 @@ vcpkg_extract_source_archive_ex(
REF ${ITPP_VERSION}
PATCHES
msvc2013.patch
+ fix-uwp.patch
+ fix-linux.patch
)
-if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
- vcpkg_apply_patches(
- SOURCE_PATH ${SOURCE_PATH}
- PATCHES fix-uwp.patch
- )
-elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
- vcpkg_apply_patches(
- SOURCE_PATH ${SOURCE_PATH}
- PATCHES fix-linux.patch
- )
-endif()
-
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA