cc44d0be98
does. This allows us to use dynamic PLISTs for Perl modules that are built using Module::Build. Bump the PKGREVISION of p5-Module-Build to 1. * Drop the use of PERL5_USES_MODULE_BUILD and introduce a new variable PERL5_MODULE_TYPE that is either "MakeMaker" or "Module::Build" that names the framework used to build/install the module. * Split out the variables set in perl5/buildlink3.mk that are also used by perl5/module.mk into a new file perl5/vars.mk. Move some PERL5_* variable definitions from pkgsrc/mk/bsd.pkg.use.mk into perl5/vars.mk. This just centralizes the common PERL5_* definitions into a single file location. * Convert the known packages that use Module::Build to set PERL5_MODULE_TYPE and PERL5_PACKLIST: devel/p5-Class-Container devel/p5-Exception-Class devel/p5-Log-Dispatch devel/p5-Array-Compare textproc/p5-Pod-Coverage www/p5-Apache-Session-Wrapper www/p5-MasonX-Request-WithApacheSession
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.18 2005/02/24 22:38:42 jlam Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
PERL5_BUILDLINK3_MK:= ${PERL5_BUILDLINK3_MK}+
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= perl
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nperl}
|
|
BUILDLINK_PACKAGES+= perl
|
|
|
|
.if !empty(PERL5_BUILDLINK3_MK:M+)
|
|
USE_PERL5?= run
|
|
PERL5_REQD+= 5.0
|
|
|
|
BUILDLINK_DEPENDS.perl+= {perl>=${_PERL5_REQD},perl-thread>=${_PERL5_REQD}}
|
|
BUILDLINK_RECOMMENDED.perl+= perl>=5.8.5nb6
|
|
BUILDLINK_PKGSRCDIR.perl?= ${PERL5_PKGSRCDIR}
|
|
|
|
.if !empty(USE_PERL5:M[bB][uU][iI][lL][dD])
|
|
BUILDLINK_DEPMETHOD.perl?= build
|
|
.endif
|
|
|
|
PERL5_OPTIONS?= # empty
|
|
.if !empty(PERL5_OPTIONS:Mthreads)
|
|
USE_PKGINSTALL= yes
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/../../lang/perl5/files/install.tmpl
|
|
.endif
|
|
|
|
.include "../../lang/perl5/vars.mk"
|
|
|
|
.if ${PKG_INSTALLATION_TYPE} == "overwrite"
|
|
. if defined(PERL5_SUB_INSTALLARCHLIB)
|
|
#
|
|
# Perl keeps headers and odd libraries in an odd path not caught by the
|
|
# default BUILDLINK_FILES_CMD, so name them to be symlinked into
|
|
# ${BUILDLINK_DIR}.
|
|
#
|
|
BUILDLINK_FILES.perl= \
|
|
${PERL5_SUB_INSTALLARCHLIB}/CORE/* \
|
|
${PERL5_SUB_INSTALLARCHLIB}/auto/DynaLoader/DynaLoader.a
|
|
. endif
|
|
.endif
|
|
|
|
.endif # PERL5_BUILDLINK3_MK
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|