Fix build on 4.x.

Because perl 5.005 didn't have $Config{d_usleep},
  $Config{d_usleep} was compulsorily used by replaceement to 1.

Pointed out by:	pointyhat via kris
Reviewed by:	tobez
This commit is contained in:
Norikatsu Shigemura 2005-08-28 07:16:33 +00:00
parent 95cecc3f71
commit 0001a6bc3f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=141015

View file

@ -30,6 +30,9 @@ RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
.endif
post-extract:
${RM} -f ${WRKSRC}/getsqlite.pl
@${RM} -f ${WRKSRC}/getsqlite.pl
post-patch:
@${PERL} -i.bak -pe 's/\$$Config{d_usleep}/1/' ${WRKSRC}/Makefile.PL
.include <bsd.port.post.mk>