aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-02-21 00:16:47 +0800
committerkrion <krion@FreeBSD.org>2004-02-21 00:16:47 +0800
commit0840c9cc45ccd133603866dd6f779f4dc5edc87a (patch)
tree52d510e2c6d86e4beb237e4c8cce2e937befe528 /net
parentf0cebff1a348870df76f6fa4f9ac98fcc2769ad5 (diff)
downloadfreebsd-ports-gnome-0840c9cc45ccd133603866dd6f779f4dc5edc87a.tar.gz
freebsd-ports-gnome-0840c9cc45ccd133603866dd6f779f4dc5edc87a.tar.zst
freebsd-ports-gnome-0840c9cc45ccd133603866dd6f779f4dc5edc87a.zip
- Fix build on -current
PR: ports/63140 Submitted by: Ports Fury
Diffstat (limited to 'net')
-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