1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

Unbreak build on perl < 5.6.x

* add stub "#define aTHX_"
This commit is contained in:
Sergey Skvortsov 2004-12-29 17:05:01 +00:00
parent dbe1950414
commit bb34232009
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125445

View File

@ -28,9 +28,15 @@ PERL_CONFIGURE= yes
MAN3= Apache::Cookie.3 Apache::Request.3 Apache::libapreq.3 \
libapreq.3
.include <bsd.port.pre.mk>
post-patch:
@${PERL} -pi~ -e '$$_="" if ($$.>37 && $$.<63) || /PREREQ_PM/' \
${WRKSRC}/Makefile.PL
.if ${PERL_LEVEL} < 500600
@${PERL} -pi~ -e '$$_="#define aTHX_\n" if $$. == 155' \
${WRKSRC}/c/apache_request.h
.endif
post-install:
.ifndef(NOPORTDOCS)
@ -41,4 +47,4 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/eg/perl/* ${EXAMPLESDIR}/perl
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>