New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82765


Ignore:
Timestamp:
08/19/11 16:31:34 (4 years ago)
Author:
jmr@…
Message:

criticalmass: use -lpng not -lpng12, and don't link the Packer tool against SDLmain

Location:
trunk/dports/games/criticalmass
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/criticalmass/Portfile

    r81318 r82765  
    2727                port:zlib 
    2828 
    29 patchfiles      patch-configure.diff patch-utils_GetDataPath.hpp.diff 
     29patchfiles      patch-configure.diff patch-utils_GetDataPath.hpp.diff \ 
     30                patch-defines.h.in.diff patch-tools_Packer.cpp.diff \ 
     31                patch-tools_Makefile.in.diff 
    3032 
    3133configure.args  --mandir=${prefix}/share/man 
  • trunk/dports/games/criticalmass/files/patch-configure.diff

    r37163 r82765  
    1 --- configure.orig      2008-05-28 22:12:35.000000000 +1000 
    2 +++ configure   2008-05-28 22:13:46.000000000 +1000 
     1--- configure.orig      2006-07-16 11:48:28.000000000 +1000 
     2+++ configure   2011-08-20 09:11:58.000000000 +1000 
    33@@ -1664,7 +1664,7 @@ 
    44  
     
    1010  
    1111  
     12@@ -3864,13 +3864,13 @@ 
     13     LIBS="-L/usr/local/lib -L/usr/X11R6/lib $LIBS" 
     14     CXXFLAGS="$CXXFLAGS -I/usr/X11R6/include" 
     15  
     16-echo "$as_me:$LINENO: checking for main in -lpng12" >&5 
     17-echo $ECHO_N "checking for main in -lpng12... $ECHO_C" >&6 
     18-if test "${ac_cv_lib_png12_main+set}" = set; then 
     19+echo "$as_me:$LINENO: checking for main in -lpng" >&5 
     20+echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 
     21+if test "${ac_cv_lib_png_main+set}" = set; then 
     22   echo $ECHO_N "(cached) $ECHO_C" >&6 
     23 else 
     24   ac_check_lib_save_LIBS=$LIBS 
     25-LIBS="-lpng12  $LIBS" 
     26+LIBS="-lpng  $LIBS" 
     27 cat >conftest.$ac_ext <<_ACEOF 
     28 /* confdefs.h.  */ 
     29 _ACEOF 
     30@@ -3908,25 +3908,25 @@ 
     31   ac_status=$? 
     32   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     33   (exit $ac_status); }; }; then 
     34-  ac_cv_lib_png12_main=yes 
     35+  ac_cv_lib_png_main=yes 
     36 else 
     37   echo "$as_me: failed program was:" >&5 
     38 sed 's/^/| /' conftest.$ac_ext >&5 
     39  
     40-ac_cv_lib_png12_main=no 
     41+ac_cv_lib_png_main=no 
     42 fi 
     43 rm -f conftest.err conftest.$ac_objext \ 
     44       conftest$ac_exeext conftest.$ac_ext 
     45 LIBS=$ac_check_lib_save_LIBS 
     46 fi 
     47-echo "$as_me:$LINENO: result: $ac_cv_lib_png12_main" >&5 
     48-echo "${ECHO_T}$ac_cv_lib_png12_main" >&6 
     49-if test $ac_cv_lib_png12_main = yes; then 
     50+echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 
     51+echo "${ECHO_T}$ac_cv_lib_png_main" >&6 
     52+if test $ac_cv_lib_png_main = yes; then 
     53   cat >>confdefs.h <<_ACEOF 
     54-#define HAVE_LIBPNG12 1 
     55+#define HAVE_LIBPNG 1 
     56 _ACEOF 
     57  
     58-  LIBS="-lpng12 $LIBS" 
     59+  LIBS="-lpng $LIBS" 
     60  
     61 else 
     62   { { echo "$as_me:$LINENO: error: libpng is needed" >&5 
Note: See TracChangeset for help on using the changeset viewer.