aboutsummaryrefslogtreecommitdiff
path: root/lang/perl5.16/Makefile
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2006-02-20 20:24:36 +0000
committerAnton Berezin <tobez@FreeBSD.org>2006-02-20 20:24:36 +0000
commit3b9dcea28e43a643dcb066fad645c839c9eb636d (patch)
tree54dc2f19db37289c199f58d125b3e95849d40c26 /lang/perl5.16/Makefile
parent3419ccf917e164a274f08a9d5e4e4aff76583e16 (diff)
downloadports-3b9dcea28e43a643dcb066fad645c839c9eb636d.tar.gz
ports-3b9dcea28e43a643dcb066fad645c839c9eb636d.zip
Notes
Diffstat (limited to 'lang/perl5.16/Makefile')
-rw-r--r--lang/perl5.16/Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile
index 3a0396bd78ae..f623471870dc 100644
--- a/lang/perl5.16/Makefile
+++ b/lang/perl5.16/Makefile
@@ -7,7 +7,6 @@
PORTNAME= perl
PORTVERSION= ${PERL_VER}
-PORTREVISION= 2
CATEGORIES= lang devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
${MASTER_SITE_LOCAL:S/$/:local/} \
@@ -19,12 +18,12 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
PATCH_SITES= ${MASTER_SITE_LOCAL:S/$/tobez\//} \
http://www.tobez.org/download/port-mirrors/lang/perl58/
-PATCHFILES= defined-or-5.8.7.bz2 sprintf-5.8.7.patch.bz2
+PATCHFILES= defined-or-5.8.8.bz2
MAINTAINER= tobez@FreeBSD.org
COMMENT= Practical Extraction and Report Language
-PERL_VER= 5.8.7
+PERL_VER= 5.8.8
PERL_ARCH= mach
PERL_VERSION= ${PERL_VER}
@@ -54,6 +53,8 @@ MAKE_ENV+= ${LOCALE_CLEANUP}
.if defined(WITH_DEBUGGING)
CONFIGURE_ARGS+= -Doptimize="-g" -DDEBUGGING
+STRIP=
+STRIP_CMD= ${TRUE}
.else
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
.endif
@@ -132,7 +133,6 @@ BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${PORTVERSION}
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
-USE_REINPLACE= yes
pre-fetch:
@${ECHO} ""
@@ -161,9 +161,15 @@ post-patch:
> ${WRKDIR}/perl-after-upgrade
${CP} ${WRKDIR}/use.perl ${PKGINSTALL}
${CP} ${WRKDIR}/use.perl ${PKGDEINSTALL}
+.if defined(WITH_THREADS)
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \
-e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \
${WRKSRC}/hints/freebsd.sh
+.else
+ ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
+ -e 's|%%PTHREAD_CFLAGS%%||g;' \
+ ${WRKSRC}/hints/freebsd.sh
+.endif
pre-install:
@${RM} -f ${PREFIX}/bin/perl${PERL_VER}
@@ -187,4 +193,9 @@ post-install:
@fmt ${PKGMESSAGE}
.endif
+rebuild-xs:
+ ${LOCALBASE}/portupgrade -f `(${FIND} ${PKG_DBDIR}/p5*/+CONTENTS | \
+ ${XARGS} ${GREP} -El 'site_perl.*\.so' | \
+ ${SED} -e 's!/var/db/pkg/!!; s!/+CONTENTS!!;')`
+
.include <bsd.port.post.mk>