New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82822


Ignore:
Timestamp:
08/20/11 18:02:14 (4 years ago)
Author:
jmr@…
Message:

magicpoint: fix build with libpng 1.4

Location:
trunk/dports/graphics/magicpoint
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/magicpoint/Portfile

    r75159 r82822  
    1919 
    2020patchfiles      patch-config.guess patch-image.h patch-new.c patch-parse.c \ 
    21                 patch-default.mgp patch-configure patch-freetype.patch 
     21                patch-default.mgp patch-configure patch-freetype.patch \ 
     22                patch-image_png.c 
    2223 
    2324depends_build   port:pkgconfig \ 
  • trunk/dports/graphics/magicpoint/files/patch-configure

    r21483 r82822  
    1 --- configure.orig      Wed Jan 21 18:25:37 2004 
    2 +++ configure   Wed Jan 21 18:27:07 2004 
     1--- configure.orig      2003-05-28 15:34:23.000000000 +1000 
     2+++ configure   2011-08-21 10:57:46.000000000 +1000 
     3@@ -4940,9 +4940,9 @@ 
     4 _ACEOF 
     5  
     6 else 
     7-  echo "$as_me:$LINENO: checking for png_set_gray_1_2_4_to_8 in -lpng" >&5 
     8-echo $ECHO_N "checking for png_set_gray_1_2_4_to_8 in -lpng... $ECHO_C" >&6 
     9-if test "${ac_cv_lib_png_png_set_gray_1_2_4_to_8+set}" = set; then 
     10+  echo "$as_me:$LINENO: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 
     11+echo $ECHO_N "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... $ECHO_C" >&6 
     12+if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then 
     13   echo $ECHO_N "(cached) $ECHO_C" >&6 
     14 else 
     15   ac_check_lib_save_LIBS=$LIBS 
     16@@ -4957,7 +4957,7 @@ 
     17 #endif 
     18 /* We use char because int might match the return type of a gcc2 
     19    builtin and then its argument prototype would still apply.  */ 
     20-char png_set_gray_1_2_4_to_8 (); 
     21+char png_set_expand_gray_1_2_4_to_8 (); 
     22 #ifdef F77_DUMMY_MAIN 
     23 #  ifdef __cplusplus 
     24      extern "C" 
     25@@ -4967,7 +4967,7 @@ 
     26 int 
     27 main () 
     28 { 
     29-png_set_gray_1_2_4_to_8 (); 
     30+png_set_expand_gray_1_2_4_to_8 (); 
     31   ; 
     32   return 0; 
     33 } 
     34@@ -4984,18 +4984,18 @@ 
     35   ac_status=$? 
     36   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     37   (exit $ac_status); }; }; then 
     38-  ac_cv_lib_png_png_set_gray_1_2_4_to_8=yes 
     39+  ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes 
     40 else 
     41   echo "$as_me: failed program was:" >&5 
     42 cat conftest.$ac_ext >&5 
     43-ac_cv_lib_png_png_set_gray_1_2_4_to_8=no 
     44+ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no 
     45 fi 
     46 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 
     47 LIBS=$ac_check_lib_save_LIBS 
     48 fi 
     49-echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_gray_1_2_4_to_8" >&5 
     50-echo "${ECHO_T}$ac_cv_lib_png_png_set_gray_1_2_4_to_8" >&6 
     51-if test $ac_cv_lib_png_png_set_gray_1_2_4_to_8 = yes; then 
     52+echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 
     53+echo "${ECHO_T}$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6 
     54+if test $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8 = yes; then 
     55   LIBS="$LIBS -lpng -lz" 
     56                         cat >>confdefs.h <<\_ACEOF 
     57 #define USE_PNG 1 
    358@@ -5647,7 +5647,7 @@ 
    459                echo 'FATAL: You need libungif to use gif images.  pass proper LIBS to configure.' 
Note: See TracChangeset for help on using the changeset viewer.