diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-05-15 02:45:13 +0800 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-05-14 11:45:13 -0700 |
| commit | e73d6251f99a091d3e8bac848dd47c64603293bc (patch) | |
| tree | c79b238c86f9018f7bdcf859c7549c3d1d21faee | |
| parent | e4129a259e030c9fb2da10700e66a638099e7116 (diff) | |
| download | vcpkg-e73d6251f99a091d3e8bac848dd47c64603293bc.tar.gz vcpkg-e73d6251f99a091d3e8bac848dd47c64603293bc.zip | |
[libmaxminddb]fix build error in linux. (#6435)
| -rw-r--r-- | ports/libmaxminddb/CONTROL | 2 | ||||
| -rw-r--r-- | ports/libmaxminddb/fix-linux-build.patch | 19 | ||||
| -rw-r--r-- | ports/libmaxminddb/portfile.cmake | 1 |
3 files changed, 21 insertions, 1 deletions
diff --git a/ports/libmaxminddb/CONTROL b/ports/libmaxminddb/CONTROL index a075cdb55..f8b7f85be 100644 --- a/ports/libmaxminddb/CONTROL +++ b/ports/libmaxminddb/CONTROL @@ -1,3 +1,3 @@ Source: libmaxminddb
-Version: 1.3.2-1
+Version: 1.3.2-2
Description: C library for the MaxMind DB file format
\ No newline at end of file diff --git a/ports/libmaxminddb/fix-linux-build.patch b/ports/libmaxminddb/fix-linux-build.patch new file mode 100644 index 000000000..334b0f64c --- /dev/null +++ b/ports/libmaxminddb/fix-linux-build.patch @@ -0,0 +1,19 @@ +diff --git a/include/maxminddb.h b/include/maxminddb.h +index de1fdf8..1d17bc3 100644 +--- a/include/maxminddb.h ++++ b/include/maxminddb.h +@@ -24,11 +24,12 @@ extern "C" { + #include <stdio.h> + #include <sys/types.h> + ++/* libmaxminddb package version from configure */ ++#define PACKAGE_VERSION "1.3.2" ++ + #ifdef _WIN32 + #include <winsock2.h> + #include <ws2tcpip.h> +-/* libmaxminddb package version from configure */ +-#define PACKAGE_VERSION "1.3.2" + + typedef ADDRESS_FAMILY sa_family_t; + diff --git a/ports/libmaxminddb/portfile.cmake b/ports/libmaxminddb/portfile.cmake index f2b17342f..bbc13472e 100644 --- a/ports/libmaxminddb/portfile.cmake +++ b/ports/libmaxminddb/portfile.cmake @@ -8,6 +8,7 @@ vcpkg_from_github( REF 1.3.2
SHA512 43ff5f4e3a413772cd315412afc1070fb80280405d8845dc9d94a795265a71007c6c182dc01da8e14bf7b8ab8defe05714bec543faa956e7fb0f0a7756e7df48
HEAD_REF master
+ PATCHES fix-linux-build.patch
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
