diff options
author | sobomax <sobomax@FreeBSD.org> | 2003-04-01 12:29:12 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2003-04-01 12:29:12 +0000 |
commit | 9d06242607edf8173caafcfd6745f246c0100640 (patch) | |
tree | 353d36041db219f9c79130d26f683d2081d9bbd2 /lang | |
parent | 0fc402e3c1c990aaaddafbfb2d00a83a13d4cd01 (diff) | |
download | FreeBSD-ports-9d06242607edf8173caafcfd6745f246c0100640.zip FreeBSD-ports-9d06242607edf8173caafcfd6745f246c0100640.tar.gz |
Add a new `WITH_THREADS' option to build perl with support for threads and
fix threaded build on 5.x.
Approved by: maintainer
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5.10/Makefile | 7 | ||||
-rw-r--r-- | lang/perl5.10/files/patch-ac | 15 | ||||
-rw-r--r-- | lang/perl5.12/Makefile | 7 | ||||
-rw-r--r-- | lang/perl5.12/files/patch-ac | 15 | ||||
-rw-r--r-- | lang/perl5.14/Makefile | 7 | ||||
-rw-r--r-- | lang/perl5.14/files/patch-ac | 15 | ||||
-rw-r--r-- | lang/perl5.16/Makefile | 7 | ||||
-rw-r--r-- | lang/perl5.16/files/patch-ac | 15 | ||||
-rw-r--r-- | lang/perl5.8/Makefile | 7 | ||||
-rw-r--r-- | lang/perl5.8/files/patch-ac | 15 |
10 files changed, 100 insertions, 10 deletions
diff --git a/lang/perl5.10/Makefile b/lang/perl5.10/Makefile index ec6a3d6..d2c14bf 100644 --- a/lang/perl5.10/Makefile +++ b/lang/perl5.10/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.10/files/patch-ac b/lang/perl5.10/files/patch-ac index 313b7d4..f7255c5 100644 --- a/lang/perl5.10/files/patch-ac +++ b/lang/perl5.10/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 diff --git a/lang/perl5.12/Makefile b/lang/perl5.12/Makefile index ec6a3d6..d2c14bf 100644 --- a/lang/perl5.12/Makefile +++ b/lang/perl5.12/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.12/files/patch-ac b/lang/perl5.12/files/patch-ac index 313b7d4..f7255c5 100644 --- a/lang/perl5.12/files/patch-ac +++ b/lang/perl5.12/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 diff --git a/lang/perl5.14/Makefile b/lang/perl5.14/Makefile index ec6a3d6..d2c14bf 100644 --- a/lang/perl5.14/Makefile +++ b/lang/perl5.14/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.14/files/patch-ac b/lang/perl5.14/files/patch-ac index 313b7d4..f7255c5 100644 --- a/lang/perl5.14/files/patch-ac +++ b/lang/perl5.14/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 diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile index ec6a3d6..d2c14bf 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 313b7d4..f7255c5 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 diff --git a/lang/perl5.8/Makefile b/lang/perl5.8/Makefile index ec6a3d6..d2c14bf 100644 --- a/lang/perl5.8/Makefile +++ b/lang/perl5.8/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.8/files/patch-ac b/lang/perl5.8/files/patch-ac index 313b7d4..f7255c5 100644 --- a/lang/perl5.8/files/patch-ac +++ b/lang/perl5.8/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 |