pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/grhino Fix pthread linkage and gettext detection.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55a6348a63cf
branches:  trunk
changeset: 510145:55a6348a63cf
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 28 21:41:13 2006 +0000

description:
Fix pthread linkage and gettext detection.

diffstat:

 games/grhino/distinfo         |   3 +-
 games/grhino/patches/patch-aa |  51 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 1 deletions(-)

diffs (67 lines):

diff -r 2f01da3fb1c1 -r 55a6348a63cf games/grhino/distinfo
--- a/games/grhino/distinfo     Tue Mar 28 21:35:27 2006 +0000
+++ b/games/grhino/distinfo     Tue Mar 28 21:41:13 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.9 2005/04/19 00:49:49 wiz Exp $
+$NetBSD: distinfo,v 1.10 2006/03/28 21:41:13 joerg Exp $
 
 SHA1 (grhino-0.15.0.tar.gz) = 11fddcc6904a8abad417b1f982212861d2e666fb
 RMD160 (grhino-0.15.0.tar.gz) = 8f1f3282409bfcb0d94ac97ba629823b01af8ddf
 Size (grhino-0.15.0.tar.gz) = 1149961 bytes
+SHA1 (patch-aa) = b380e7141a5991c3f1a1ee1707844e927b9422ea
 SHA1 (patch-ab) = e84e7fe4b6c5af92cd7a8a916c01bd583e028e54
diff -r 2f01da3fb1c1 -r 55a6348a63cf games/grhino/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/grhino/patches/patch-aa     Tue Mar 28 21:41:13 2006 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-aa,v 1.5 2006/03/28 21:41:13 joerg Exp $
+
+--- configure.orig     2005-04-15 14:03:04.000000000 +0000
++++ configure
+@@ -3324,13 +3324,13 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+ 
+ 
+ 
+-echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
++echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread  $LIBS"
++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}  $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
+ _ACEOF
+@@ -3389,7 +3389,7 @@ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
+ echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
+ if test $ac_cv_lib_pthread_pthread_create = yes; then
+-  LIBS="$LIBS -lpthread"
++  LIBS="$LIBS ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
+ else
+    { { echo "$as_me:$LINENO: error: pthread library is required" >&5
+ echo "$as_me: error: pthread library is required" >&2;}
+@@ -6926,18 +6926,12 @@ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <libintl.h>
+-extern int _nl_msg_cat_cntr;
+-extern
+-#ifdef __cplusplus
+-"C"
+-#endif
+-const char *_nl_expand_alias ();
++
+ int
+ main ()
+ {
+ bindtextdomain ("", "");
+-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
+-  ;
++return (int) gettext ("");
+   return 0;
+ }
+ _ACEOF



Home | Main Index | Thread Index | Old Index