aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libmagic/0017-Change-bzlib-name-to-match-CMake-output.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libmagic/0017-Change-bzlib-name-to-match-CMake-output.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libmagic/0017-Change-bzlib-name-to-match-CMake-output.patch')
-rw-r--r--vcpkg/ports/libmagic/0017-Change-bzlib-name-to-match-CMake-output.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/libmagic/0017-Change-bzlib-name-to-match-CMake-output.patch b/vcpkg/ports/libmagic/0017-Change-bzlib-name-to-match-CMake-output.patch
new file mode 100644
index 0000000..ba26f6c
--- /dev/null
+++ b/vcpkg/ports/libmagic/0017-Change-bzlib-name-to-match-CMake-output.patch
@@ -0,0 +1,27 @@
+diff --git a/configure.ac b/configure.ac
+index 8b54efda..d043fb06 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -191,7 +191,7 @@ if test "$enable_zlib" != "no"; then
+ AC_SEARCH_LIBS(gzopen, [z zlib zlibd], have_zlib="yes", have_zlib="no")
+ fi
+ if test "$enable_bzlib" != "no"; then
+- AC_CHECK_LIB(bz2, BZ2_bzCompressInit)
++ AC_SEARCH_LIBS(BZ2_bzCompressInit, [bz2 bz2d], have_bzlib="yes", have_bzlib="no")
+ fi
+ if test "$enable_xzlib" != "no"; then
+ AC_CHECK_LIB(lzma, lzma_stream_decoder)
+@@ -222,11 +222,11 @@ if test "$ac_cv_header_zlib_h$have_zlib" = "yesyes"; then
+ AC_DEFINE([ZLIBSUPPORT], 1, [Enable zlib compression support])
+ fi
+ if test "$enable_bzlib" = "yes"; then
+- if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
++ if test "$ac_cv_header_bzlib_h$have_bzlib" != "yesyes"; then
+ AC_MSG_ERROR([bzlib support requested but not found])
+ fi
+ fi
+-if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
++if test "$ac_cv_header_bzlib_h$have_bzlib" = "yesyes"; then
+ AC_DEFINE([BZLIBSUPPORT], 1, [Enable bzlib compression support])
+ fi
+ if test "$enable_xzlib" = "yes"; then