Advertisement
h3xx

devil-1.7.8_link_to_libpng14.so.patch

Aug 2nd, 2011
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.38 KB | None | 0 0
  1. diff -ru devil-1.7.8.orig/configure devil-1.7.8/configure
  2. --- devil-1.7.8.orig/configure  2009-03-08 15:43:20.000000000 -0500
  3. +++ devil-1.7.8/configure   2011-08-02 18:57:15.000000000 -0500
  4. @@ -19489,13 +19489,13 @@
  5.  
  6.  fi
  7.  if test $ac_cv_header_png_h = yes; then
  8. -  { echo "$as_me:$LINENO: checking for main in -lpng12" >&5
  9. -echo $ECHO_N "checking for main in -lpng12... $ECHO_C" >&6; }
  10. -if test "${ac_cv_lib_png12_main+set}" = set; then
  11. +  { echo "$as_me:$LINENO: checking for main in -lpng14" >&5
  12. +echo $ECHO_N "checking for main in -lpng14... $ECHO_C" >&6; }
  13. +if test "${ac_cv_lib_png14_main+set}" = set; then
  14.    echo $ECHO_N "(cached) $ECHO_C" >&6
  15.  else
  16.    ac_check_lib_save_LIBS=$LIBS
  17. -LIBS="-lpng12  $LIBS"
  18. +LIBS="-lpng14  $LIBS"
  19.  cat >conftest.$ac_ext <<_ACEOF
  20.  /* confdefs.h.  */
  21.  _ACEOF
  22. @@ -19530,33 +19530,33 @@
  23.      test ! -s conftest.err
  24.         } && test -s conftest$ac_exeext &&
  25.         $as_test_x conftest$ac_exeext; then
  26. -  ac_cv_lib_png12_main=yes
  27. +  ac_cv_lib_png14_main=yes
  28.  else
  29.    echo "$as_me: failed program was:" >&5
  30.  sed 's/^/| /' conftest.$ac_ext >&5
  31.  
  32. -   ac_cv_lib_png12_main=no
  33. +   ac_cv_lib_png14_main=no
  34.  fi
  35.  
  36.  rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37.        conftest$ac_exeext conftest.$ac_ext
  38.  LIBS=$ac_check_lib_save_LIBS
  39.  fi
  40. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_png12_main" >&5
  41. -echo "${ECHO_T}$ac_cv_lib_png12_main" >&6; }
  42. -if test $ac_cv_lib_png12_main = yes; then
  43. -  IL_LIBS="-lpng12 $IL_LIBS"
  44. -                                         have_png12="yes"
  45. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_png14_main" >&5
  46. +echo "${ECHO_T}$ac_cv_lib_png14_main" >&6; }
  47. +if test $ac_cv_lib_png14_main = yes; then
  48. +  IL_LIBS="-lpng14 $IL_LIBS"
  49. +                                         have_png14="yes"
  50.  else
  51. -  have_png12="no"
  52. +  have_png14="no"
  53.  fi
  54.  
  55.  else
  56. -  have_png12="no"
  57. +  have_png14="no"
  58.  fi
  59.  
  60.  
  61. -          if test "x$have_png12" = "xno"; then
  62. +          if test "x$have_png14" = "xno"; then
  63.    if test "${ac_cv_header_png_h+set}" = set; then
  64.    { echo "$as_me:$LINENO: checking for png.h" >&5
  65.  echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
  66. @@ -19757,7 +19757,7 @@
  67.  
  68.                   lib_test_result="$have_png"
  69.  else
  70. -  lib_test_result="$have_png12"
  71. +  lib_test_result="$have_png14"
  72.  fi
  73.  
  74.            if test "x$lib_test_result" = "xyes"; then
  75. diff -ru devil-1.7.8.orig/src-IL/src/il_icon.c devil-1.7.8/src-IL/src/il_icon.c
  76. --- devil-1.7.8.orig/src-IL/src/il_icon.c   2009-03-08 01:10:09.000000000 -0600
  77. +++ devil-1.7.8/src-IL/src/il_icon.c    2011-08-02 18:56:58.000000000 -0500
  78. @@ -525,7 +525,7 @@
  79.  
  80.     // Expand low-bit-depth grayscale images to 8 bits
  81.     if (ico_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
  82. -       png_set_gray_1_2_4_to_8(ico_png_ptr);
  83. +       png_set_expand_gray_1_2_4_to_8(ico_png_ptr);
  84.     }
  85.  
  86.     // Expand RGB images with transparency to full alpha channels
  87. diff -ru devil-1.7.8.orig/src-IL/src/il_png.c devil-1.7.8/src-IL/src/il_png.c
  88. --- devil-1.7.8.orig/src-IL/src/il_png.c    2009-03-08 01:10:09.000000000 -0600
  89. +++ devil-1.7.8/src-IL/src/il_png.c 2011-08-02 18:56:54.000000000 -0500
  90. @@ -278,7 +278,7 @@
  91.  
  92.     // Expand low-bit-depth grayscale images to 8 bits
  93.     if (png_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
  94. -       png_set_gray_1_2_4_to_8(png_ptr);
  95. +       png_set_expand_gray_1_2_4_to_8(png_ptr);
  96.     }
  97.  
  98.     // Expand RGB images with transparency to full alpha channels
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement