summaryrefslogtreecommitdiff
path: root/lang/perl5.16
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2003-04-01 12:29:12 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2003-04-01 12:29:12 +0000
commitb1692986818b5eebd6372f379d95c842c4647fc7 (patch)
tree21c6c66d00fb263a9fd1138e029deddb9c4007cc /lang/perl5.16
parentAdd USE_LIBTOOL=yes (diff)
Add a new `WITH_THREADS' option to build perl with support for threads and
fix threaded build on 5.x. Approved by: maintainer
Notes
Notes: svn path=/head/; revision=77916
Diffstat (limited to 'lang/perl5.16')
-rw-r--r--lang/perl5.16/Makefile7
-rw-r--r--lang/perl5.16/files/patch-ac15
2 files changed, 20 insertions, 2 deletions
diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile
index ec6a3d6cd0bc..d2c14bf05ddd 100644
--- a/lang/perl5.16/Makefile
+++ b/lang/perl5.16/Makefile
@@ -51,6 +51,13 @@ CONFIGURE_ARGS+= -Dusemymalloc=y
CONFIGURE_ARGS+= -Dusemymalloc=n
.endif
+.if defined(WITH_THREADS)
+CONFIGURE_ARGS+= -Dusethreads=y
+PKGNAMESUFFIX= -threaded
+.else
+CONFIGURE_ARGS+= -Dusethreads=n
+.endif
+
INCLUDEDIR= /usr/include
.include <bsd.port.pre.mk>
diff --git a/lang/perl5.16/files/patch-ac b/lang/perl5.16/files/patch-ac
index 313b7d4b48f2..f7255c5d354c 100644
--- a/lang/perl5.16/files/patch-ac
+++ b/lang/perl5.16/files/patch-ac
@@ -1,7 +1,8 @@
+
$FreeBSD$
---- hints/freebsd.sh.orig Sat Jun 1 19:03:12 2002
-+++ hints/freebsd.sh Sat Jul 20 22:51:05 2002
+--- hints/freebsd.sh.orig Sat Jun 1 20:03:12 2002
++++ hints/freebsd.sh Tue Apr 1 14:17:18 2003
@@ -98,6 +98,13 @@
;;
esac
@@ -25,3 +26,13 @@ $FreeBSD$
;;
esac
+@@ -223,6 +230,9 @@
+ 4.*) # 4.x has gethostbyaddr_r but it is
+ # "Temporary function, not threadsafe"...
+ d_gethostbyaddr_r="undef"
++ d_gethostbyaddr_r_proto="undef"
++ ;;
++ 5.*) d_gethostbyaddr_r="undef"
+ d_gethostbyaddr_r_proto="undef"
+ ;;
+ esac