pkgsrc/www/SpeedyCGI/Makefile
jlam 1dbd21188d Add PERL_USE_UNSAFE_INC=1 to a few Perl module Makefiles.
The following packages fail to build due to "." not being in @INC:

    devel/p5-PPI-PowerToys
    sysutils/p5-Monitoring-Plugin
    textproc/p5-Text-Xslate
    www/SpeedyCGI

Pass PERL_USE_UNSAFE_INC=1 through MAKE_ENV to allow the configure
and build to proceed.

This needs to be revisited when perl-5.30.0 is released and that
environment variable is removed from Perl.
2017-08-23 17:54:52 +00:00

27 lines
741 B
Makefile

# $NetBSD: Makefile,v 1.23 2017/08/23 17:54:53 jlam Exp $
DISTNAME= CGI-SpeedyCGI-2.22
PKGNAME= SpeedyCGI-2.22
PKGREVISION= 11
CATEGORIES= www
MASTER_SITES= http://daemoninc.com/SpeedyCGI/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://daemoninc.com/SpeedyCGI/
COMMENT= Speed up perl scripts by running them persistently
MAKE_JOBS_SAFE= no
PERL5_PACKLIST= auto/CGI/SpeedyCGI/.packlist
# XXX Kick can down the road and hope the developer fixes this issue.
MAKE_ENV+= PERL_USE_UNSAFE_INC=1
SUBST_CLASSES+= run
SUBST_STAGE.run= post-patch
SUBST_FILES.run= src/optdefs
SUBST_SED.run+= -e "s|@@PREFIX@@|${PREFIX}|g"
SUBST_MESSAGE.run= Fixing hardcoded paths.
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"