aboutsummaryrefslogtreecommitdiff
path: root/ports/libwandio
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2020-05-21 19:46:07 +0200
committerGitHub <noreply@github.com>2020-05-21 10:46:07 -0700
commit27c6c9420277c533cc4333bdd880f9862012cb72 (patch)
treeffb9a979edc97e987ebca77590400e3577b93567 /ports/libwandio
parentf6dd5aee5b2ed144a8313a92290771947028e5b6 (diff)
downloadvcpkg-27c6c9420277c533cc4333bdd880f9862012cb72.tar.gz
vcpkg-27c6c9420277c533cc4333bdd880f9862012cb72.zip
[vcpkg] Improve make builds (#10402)
* update all 16 configure_make ports * add make wrappers for msvc * improve make builds * fix relativ path errors on linux (and osx?) * revisit all 16 portfiles again * remove trace from install * fix relative build path issues. * bump control of the 16 configure ports * never forget .... real linux is case sensitive .... * Revert "bump control of the 16 configure ports" This reverts commit 40d6d81c01d2709c4acbdbec503b4787c3fd8282. * Revert "Revert "bump control of the 16 configure ports"" This reverts commit 9c9851ddfcd01bfad604ab9c9aed7379238d619a. * bump control again for real ci rebuild * add copy_source * remove message * pass parameters to vcpkg_build_make * fix healpix build. * fix libmagic regression * fix libwandio regression * pfring changes regression fix? (cannot test in wsl) * ws change to retrigger CI * fix libpq regression * fix libudns regression * add share/pkgconfig to PKG_CONFIG_PATH * cleanup of deprecated options * cleanup docs * Revert "bump control again for real ci rebuild" This reverts commit b4bc18edc2376eba6c3aa3dda52bd82286f23616. * shared binaries on linux should stay in lib. Only dlls are mvoed to bin * move pkgconfig check and add message about missing system packages * added autopoint as a build requirement * fix prerun shell working dir. * a few fixes from the x windows pr - add libpath setting - fixed pkgconfig search on windows platforms - fixed autopoint msys package on windows * fix release prefix * minimal cleanup and ws changes to trigger true CI rebuild * fix tcl by upgrading * remove unnecessary rename * fix pfring? can't test in WSL. Linux kernel headers required. * fix lowercase in patch * fix libwandio * remove x264 from fail list * replace wrappers with wrappers from automake * update make ports * remove unnecessary message * refactor vcpkg_configure_make * [tcl] remove stray ? * [farmhash] fix build * [freexl] ws change to retrigger ci build * [x264] add pthread as a dependency * [vcpkg/scripts] add ignore flag correctly * [sdl] fix vcpkg_fixup_pkgconfig call * [farmhash/freexl] delete configure and recreate it. * [libudns] remove trailing ? * [freexl] use empty build target * [freexl] add system library; remove previous change * Update ports/x264/portfile.cmake Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * [libwandio] remove unncessary comment Co-authored-by: dan-shaw <51385773+dan-shaw@users.noreply.github.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Diffstat (limited to 'ports/libwandio')
-rw-r--r--ports/libwandio/CONTROL5
-rw-r--r--ports/libwandio/configure.lib.patch140
-rw-r--r--ports/libwandio/portfile.cmake6
3 files changed, 145 insertions, 6 deletions
diff --git a/ports/libwandio/CONTROL b/ports/libwandio/CONTROL
index f41bf35ff..5fc36ba35 100644
--- a/ports/libwandio/CONTROL
+++ b/ports/libwandio/CONTROL
@@ -1,4 +1,5 @@
Source: libwandio
-Version: 4.2.1
+Version: 4.2.1-2
Homepage: https://github.com/wanduow/wandio
-Description: C library for simple and efficient file IO. \ No newline at end of file
+Description: C library for simple and efficient file IO.
+Build-Depends: zlib, zstd, liblzma, lz4, curl, pthread, bzip2 \ No newline at end of file
diff --git a/ports/libwandio/configure.lib.patch b/ports/libwandio/configure.lib.patch
new file mode 100644
index 000000000..57719581e
--- /dev/null
+++ b/ports/libwandio/configure.lib.patch
@@ -0,0 +1,140 @@
+diff --git a/configure.ac b/configure.ac
+index 4579fbb3d..f6be008c8 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -112,10 +112,11 @@ AC_HEADER_STDC
+ AC_CHECK_HEADERS(stddef.h inttypes.h sys/prctl.h)
+
+ # Checks for various "optional" libraries
+-AC_CHECK_LIB(pthread, pthread_create, have_pthread=1, have_pthread=0)
++# AC_CHECK_LIB(pthread, pthread_create, have_pthread=1, have_pthread=0)
++AC_SEARCH_LIBS(pthread_create, [pthreadGC pthreadVC pthread], have_pthread=1, have_pthread=0)
+
+ if test "$have_pthread" = 1; then
+- LIBWANDIO_LIBS="$LIBWANDIO_LIBS -lpthread"
++ LIBWANDIO_LIBS="$LIBWANDIO_LIBS $ac_cv_search_pthread_create"
+ AC_DEFINE(HAVE_LIBPTHREAD, 1, [Set to 1 if pthreads are supported])
+ fi
+
+@@ -128,12 +129,13 @@ AC_ARG_WITH([bzip2],
+
+ AS_IF([test "x$with_bzip2" != "xno"],
+ [
+- AC_CHECK_LIB(bz2, BZ2_bzDecompressInit, have_bzip=yes, have_bzip=no)
++ AC_SEARCH_LIBS(BZ2_bzDecompressInit, [bz2 bz2d bzip2 bzip2d], have_bzip=yes, have_bzip=no)
++ # AC_CHECK_LIB(bz2, BZ2_bzDecompressInit, have_bzip=yes, have_bzip=no)
+ ], [have_bzip=no])
+
+ AS_IF([test "x$have_bzip" = "xyes"], [
+- if test "$ac_cv_lib_bz2_BZ2_bzDecompressInit" != "none required"; then
+- LIBWANDIO_LIBS="$LIBWANDIO_LIBS -lbz2"
++ if test "$ac_cv_search_BZ2_bzDecompressInit" != "none required"; then
++ LIBWANDIO_LIBS="$LIBWANDIO_LIBS $ac_cv_search_BZ2_bzDecompressInit"
+ fi
+ with_bzip2=yes
+ AC_DEFINE(HAVE_LIBBZ2, 1, "Compiled with bzip2 support")],
+@@ -149,12 +151,13 @@ AC_ARG_WITH([zlib],
+
+ AS_IF([test "x$with_zlib" != "xno"],
+ [
+- AC_CHECK_LIB(z, deflate, have_zlib=yes, have_zlib=no)
++ AC_SEARCH_LIBS(deflate, [z zlib zlibd zd], have_zlib=yes, have_zlib=no)
++ # AC_CHECK_LIB(z, deflate, have_zlib=yes, have_zlib=no)
+ ], [have_zlib=no])
+
+ AS_IF([test "x$have_zlib" = "xyes"], [
+- if test "$ac_cv_lib_z_deflate" != "none required"; then
+- LIBWANDIO_LIBS="$LIBWANDIO_LIBS -lz"
++ if test "$ac_cv_search_deflate" != "none required"; then
++ LIBWANDIO_LIBS="$LIBWANDIO_LIBS $ac_cv_search_deflate"
+ fi
+ AC_DEFINE(HAVE_LIBZ, 1, "Compiled with zlib support")
+ with_zlib=yes],
+@@ -193,12 +196,13 @@ AC_ARG_WITH([lzma],
+
+ AS_IF([test "x$with_lzma" != "xno"],
+ [
+- AC_CHECK_HEADER(lzma.h, have_lzma=yes, have_lzma=no)
++ # AC_CHECK_HEADER(lzma.h, have_lzma=yes, have_lzma=no)
++ AC_SEARCH_LIBS(lzma_free, [lzma lzmad], have_lzma=yes, have_lzma=no)
+ ], [have_lzma=no])
+
+ AS_IF([test "x$have_lzma" = "xyes"], [
+- if test "$ac_cv_lib_lzma_code" != "none required"; then
+- LIBWANDIO_LIBS="$LIBWANDIO_LIBS -llzma"
++ if test "$ac_cv_search_lzma_free" != "none required"; then
++ LIBWANDIO_LIBS="$LIBWANDIO_LIBS $ac_cv_search_lzma_free"
+ fi
+ AC_DEFINE(HAVE_LIBLZMA, 1, "Compiled with lzma support")
+ with_lzma=yes],
+@@ -215,12 +219,13 @@ AC_ARG_WITH([zstd],
+
+ AS_IF([test "x$with_zstd" != "xno"],
+ [
+- AC_CHECK_LIB(zstd, ZSTD_createDStream, have_zstd=yes, have_zstd=no)
++ AC_SEARCH_LIBS(ZSTD_createDStream, [zstd zstdd], have_zstd=yes, have_zstd=no)
++ # AC_CHECK_LIB(zstd, ZSTD_createDStream, have_zstd=yes, have_zstd=no)
+ ], [have_zstd=no])
+
+ AS_IF([test "x$have_zstd" = "xyes"], [
+- if test "$ac_cv_lib_zstd_code" != "none required"; then
+- LIBWANDIO_LIBS="$LIBWANDIO_LIBS -lzstd"
++ if test "$ac_cv_search_ZSTD_createDStream" != "none required"; then
++ LIBWANDIO_LIBS="$LIBWANDIO_LIBS $ac_cv_search_ZSTD_createDStream"
+ fi
+ AC_DEFINE(HAVE_LIBZSTD, 1, "Compiled with zstd support")
+ with_zstd=yes],
+@@ -259,25 +264,28 @@ AC_ARG_WITH([lz4],
+
+ AS_IF([test "x$with_lz4" != "xno"],
+ [
+- AC_CHECK_LIB(lz4, LZ4F_createDecompressionContext, have_lz4f=yes, have_lz4f=no)
++ AC_SEARCH_LIBS(LZ4F_createDecompressionContext, [lz4 lz4d], have_lz4f=yes, have_lz4f=no)
++ # AC_CHECK_LIB(lz4, LZ4F_createDecompressionContext, have_lz4f=yes, have_lz4f=no)
+ ], [have_zstd=no])
+
+ AS_IF([test "x$have_lz4f" = "xyes"], [
+- if test "$ac_cv_lib_lz4_code" != "none required"; then
+- LIBWANDIO_LIBS="$LIBWANDIO_LIBS -llz4"
++ if test "$ac_cv_search_LZ4F_createDecompressionContext" != "none required"; then
++ LIBWANDIO_LIBS="$LIBWANDIO_LIBS $ac_cv_search_LZ4F_createDecompressionContext"
+ fi
+ AC_DEFINE(HAVE_LIBLZ4F, 1, "Compiled with lz4 frame support")
+- AC_CHECK_LIB(lz4, LZ4F_getVersion, have_lz4_173=yes, have_lz4_173=no)
++ AC_SEARCH_LIBS(LZ4F_getVersion, [lz4 lz4d], have_lz4_173=yes, have_lz4_173=no)
++ # AC_CHECK_LIB(lz4, LZ4F_getVersion, have_lz4_173=yes, have_lz4_173=no)
+ if test "x$have_lz4_173" = "xyes"; then
+ AC_DEFINE(HAVE_LIBLZ4_MOVABLE, 1, "If defined then liblz4 does NOT have the ERROR_srcPtr_wrong bug")
+ fi
+ with_lz4=frameapi],
+ [
+ AC_DEFINE(HAVE_LIBLZ4F, 0, "Compiled with lz4 frame support")
+- AC_CHECK_LIB(lz4, LZ4_decompress_safe_continue, have_lz4s=yes, have_lz4s=no)
++ AC_SEARCH_LIBS(LZ4_decompress_safe_continue, [lz4 lz4d], have_lz4s=yes, have_lz4s=no)
++ # AC_CHECK_LIB(lz4, LZ4_decompress_safe_continue, have_lz4s=yes, have_lz4s=no)
+ AS_IF([test "x$have_lz4s" = "xyes"], [
+- if test "$ac_cv_lib_lz4_code" != "none required"; then
+- LIBWANDIO_LIBS="$LIBWANDIO_LIBS -llz4"
++ if test "$ac_cv_search_LZ4_decompress_safe_continue" != "none required"; then
++ LIBWANDIO_LIBS="$LIBWANDIO_LIBS $ac_cv_search_LZ4_decompress_safe_continue"
+ fi
+ AC_DEFINE(HAVE_LIBLZ4S, 1, "Compiled with lz4 stream support")
+ with_lz4=streamapi
+@@ -296,12 +304,14 @@ AC_ARG_WITH([http],
+ AS_IF([test "x$with_http" != "xno"],
+ [
+ # we need curl_easy_pause which was added in 7.18.0
+- AC_CHECK_LIB(curl, curl_easy_pause, have_curl=yes, have_curl=no)
++ AC_SEARCH_LIBS(curl_easy_pause, [curl curl-d], have_curl=yes, have_curl=no, [-lssl -lcrypto $ac_cv_search_pthread_create -ldl])
++ # AC_CHECK_LIB(curl, curl_easy_pause, have_curl=yes, have_curl=no)
+ ], [have_curl=no])
+
+ AS_IF([test "x$have_curl" = "xyes"], [
+- if test "$ac_cv_lib_curl_curl_easy_pause" != "none required"; then
+- LIBWANDIO_LIBS="$LIBWANDIO_LIBS -lcurl"
++ if test "$ac_cv_search_curl_easy_pause" != "none required"; then
++ LIBWANDIO_LIBS="$LIBWANDIO_LIBS $ac_cv_search_curl_easy_pause -lssl -lcrypto $ac_cv_search_pthread_create -ldl"
++ LIBS="$LIBS -lssl -lcrypto $ac_cv_search_pthread_create -ldl"
+ fi
+ AC_DEFINE(HAVE_HTTP, 1, "Compiled with http support")
+ with_http=yes],
diff --git a/ports/libwandio/portfile.cmake b/ports/libwandio/portfile.cmake
index 20ccce13d..c9be34be6 100644
--- a/ports/libwandio/portfile.cmake
+++ b/ports/libwandio/portfile.cmake
@@ -1,18 +1,16 @@
-vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports Linux and Mac platform" ON_TARGET "Windows")
-
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wanduow/wandio
REF 012b646e7ba7ab191a5a2206488adfac493fcdc6
SHA512 e94a82038902c34933c4256f8bd4d7ef3f2cf32fea46f8e31a25df34cc90d3a275ff56d3bc9892aca0c85e6d875e696f96a836cc1444fe165db8364331e6e77d
HEAD_REF master
+ PATCHES configure.lib.patch # This is how configure.ac files with dependencies get fixed.
)
vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
- AUTOCONFIG
+ COPY_SOURCE
)
-
vcpkg_install_make()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)