aboutsummaryrefslogtreecommitdiff
path: root/lang/perl5.16
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2014-03-15 09:57:40 +0000
committerThierry Thomas <thierry@FreeBSD.org>2014-03-15 09:57:40 +0000
commit578471bf0532d069436d112de9a455cea55a23b2 (patch)
tree822f7a8f2c9c611bc47178a0f9a312f908db2531 /lang/perl5.16
parent8942848f408b638c5b583b813437572ac616cfc3 (diff)
downloadports-578471bf0532d069436d112de9a455cea55a23b2.tar.gz
ports-578471bf0532d069436d112de9a455cea55a23b2.zip
Notes
Diffstat (limited to 'lang/perl5.16')
-rw-r--r--lang/perl5.16/Makefile4
-rw-r--r--lang/perl5.16/files/patch-perl.h14
2 files changed, 16 insertions, 2 deletions
diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile
index 30dc48edde6e..2cbba2fb2eda 100644
--- a/lang/perl5.16/Makefile
+++ b/lang/perl5.16/Makefile
@@ -3,7 +3,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VERSION}
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= lang devel perl5
MASTER_SITES= CPAN \
${MASTER_SITE_LOCAL:S/$/:local/} \
@@ -77,7 +77,7 @@ PKGDEINSTALL= ${WRKDIR}/use.perl
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
# if this port is default due PERL5_DEFAULT
-# change PKGNAME to reflect this
+# change PKGNAME to reflect this
.if ${PERL_VER} == ${PERL5_DEFAULT}
PKGNAMESUFFIX= ${PERL_VERSION:C/\.[0-9]+\.[0-9]+$//}
.else
diff --git a/lang/perl5.16/files/patch-perl.h b/lang/perl5.16/files/patch-perl.h
new file mode 100644
index 000000000000..98fee9938e7c
--- /dev/null
+++ b/lang/perl5.16/files/patch-perl.h
@@ -0,0 +1,14 @@
+--- perl.h.orig 2013-03-04 16:16:22.000000000 +0100
++++ perl.h 2014-03-15 10:42:19.000000000 +0100
+@@ -359,7 +359,11 @@
+ /* Rats: if dTHR is just blank then the subsequent ";" throws an error */
+ /* Declaring a *function*, instead of a variable, ensures that we don't rely
+ on being able to suppress "unused" warnings. */
++#ifdef __cplusplus
++#define dNOOP (void)0
++#else
+ #define dNOOP extern int Perl___notused(void)
++#endif
+
+ #ifndef pTHX
+ /* Don't bother defining tTHX and sTHX; using them outside