diff options
Diffstat (limited to 'lang/perl5.10')
-rw-r--r-- | lang/perl5.10/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/perl5.10/Makefile b/lang/perl5.10/Makefile index a9ec9de2de29..fc3eab540b2a 100644 --- a/lang/perl5.10/Makefile +++ b/lang/perl5.10/Makefile @@ -7,7 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VERSION} -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= lang devel perl5 MASTER_SITES= CPAN \ ${MASTER_SITE_LOCAL:S/$/:local/} \ @@ -34,6 +34,7 @@ OPTIONS= DEBUGGING "Build with debugging support" off \ PERL_MALLOC "Use Perl malloc" off \ PERL_64BITINT "Use 64 bit integers (on i386)" on \ THREADS "Build threaded perl" off \ + PTHREAD "Build with -pthread" on \ MULTIPLICITY "Use multiplicity" off \ SUIDPERL "Build set-user-id suidperl binary" off \ SITECUSTOMIZE "Run-time customization of @INC" off \ @@ -129,6 +130,7 @@ WITH_PERL_MALLOC= yes #XXX .endif CONFIGURE_ARGS+= -Dusethreads=y PKGNAMESUFFIX= -threaded +WITH_PTHREAD= yes # it seems perl malloc has problems with threaded perl on FreeBSD .undef WITH_PERL_MALLOC .else @@ -199,7 +201,7 @@ post-patch: ${BSDPAN_WRKSRC}/ExtUtils/*.pm ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh -.if defined(WITH_THREADS) +.if defined(WITH_PTHREAD) ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \ -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \ ${WRKSRC}/hints/freebsd.sh |