aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-02-20 16:16:47 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-02-20 16:16:47 +0000
commitd880828bbde9a946d0a81238e4057e762d53520e (patch)
tree2b917b307fdc22ea973467910476af7236d44b10
parent8cebaee266a7dbf82723fcf91bccf2a08dc73e06 (diff)
downloadports-d880828bbde9a946d0a81238e4057e762d53520e.tar.gz
ports-d880828bbde9a946d0a81238e4057e762d53520e.zip
Notes
-rw-r--r--net/gnome-mud/Makefile8
-rw-r--r--net/gnome-mud/files/patch-configure82
2 files changed, 83 insertions, 7 deletions
diff --git a/net/gnome-mud/Makefile b/net/gnome-mud/Makefile
index e5d236e32809..2ed3dbb59c57 100644
--- a/net/gnome-mud/Makefile
+++ b/net/gnome-mud/Makefile
@@ -27,14 +27,8 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
MAN6= gnome-mud.6
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502102
-FORBIDDEN= "Links against conflicting thread libraries"
-.endif
-
post-patch:
@${REINPLACE_CMD} -e \
's|prefix)/games|prefix)/bin|g' ${WRKSRC}/src/Makefile.in
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/net/gnome-mud/files/patch-configure b/net/gnome-mud/files/patch-configure
new file mode 100644
index 000000000000..0b8d36317e96
--- /dev/null
+++ b/net/gnome-mud/files/patch-configure
@@ -0,0 +1,82 @@
+--- configure.orig Thu Feb 12 19:54:58 2004
++++ configure Thu Feb 19 19:23:13 2004
+@@ -8645,79 +8645,6 @@
+ fi
+
+
+-echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
+-echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
+-if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lc_r $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
+-/* confdefs.h. */
+-_ACEOF
+-cat confdefs.h >>conftest.$ac_ext
+-cat >>conftest.$ac_ext <<_ACEOF
+-/* end confdefs.h. */
+-
+-/* Override any gcc2 internal prototype to avoid an error. */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char pthread_create ();
+-int
+-main ()
+-{
+-pthread_create ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+- (eval $ac_link) 2>conftest.er1
+- ac_status=$?
+- grep -v '^ *+' conftest.er1 >conftest.err
+- rm -f conftest.er1
+- cat conftest.err >&5
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); } &&
+- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+- (eval $ac_try) 2>&5
+- ac_status=$?
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); }; } &&
+- { ac_try='test -s conftest$ac_exeext'
+- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+- (eval $ac_try) 2>&5
+- ac_status=$?
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); }; }; then
+- ac_cv_lib_c_r_pthread_create=yes
+-else
+- echo "$as_me: failed program was:" >&5
+-sed 's/^/| /' conftest.$ac_ext >&5
+-
+-ac_cv_lib_c_r_pthread_create=no
+-fi
+-rm -f conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
+-echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
+-if test $ac_cv_lib_c_r_pthread_create = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBC_R 1
+-_ACEOF
+-
+- LIBS="-lc_r $LIBS"
+-
+-fi
+-
+-
+ echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
+ echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
+ if test "${ac_cv_lib_util_openpty+set}" = set; then