pkgsrc/lang/perl5/files/install.tmpl
jlam 48876679d9 Create a modifier PERL5_OPTIONS that specifies properties of the perl
installation needed when including perl5/buildlink3.mk.  The only
option currently supported is "threads", which implies that a perl
that supports threads is required.  The requirement is checked at
pre-install time using an INSTALL script template by both the package
build and the binary package.

Add PERL5_OPTIONS+=threads to both devel/p5-SDL and graphics/p5-GD
since those modules require a perl that supports threads.
2004-12-19 00:01:43 +00:00

26 lines
629 B
Cheetah

# $NetBSD: install.tmpl,v 1.1 2004/12/19 00:01:43 jlam Exp $
#
# Require the presence of a pkgsrc Perl installation that supports threads
# during the PRE-INSTALL stage, otherwise we bail out.
PERL5="@PERL5@"
case ${STAGE} in
PRE-INSTALL)
if [ ! -x "${PERL5}" ]; then
${ECHO} "==> ${PERL5} does not exist." 1>&2
exit 1
fi
eval `${PERL5} -V:usethreads`
case $usethreads in
define*|true|[yY]*) # possible "yes" values in Perl Config.pm
# We found what we were looking for (a threaded perl) so
# do nothing.
;;
*)
${ECHO} "==> ${PKGNAME} requires a Perl that supports threads." 1>&2
exit 1
;;
esac
;;
esac