e811379bc2
the pkglint warning: As {INSTALL,DEINSTALL}_TEMPLATE is modified using "+=", its name should indicate plural. This does make the variables a bit more suggestive of the fact that they hold lists of values.
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.33 2006/06/15 22:13:59 jlam Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
PERL5_BUILDLINK3_MK:= ${PERL5_BUILDLINK3_MK}+
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= perl
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nperl}
|
|
BUILDLINK_PACKAGES+= perl
|
|
|
|
.if !empty(PERL5_BUILDLINK3_MK:M+)
|
|
.include "../../mk/bsd.prefs.mk"
|
|
USE_TOOLS+= perl
|
|
PERL5_REQD+= 5.8.7
|
|
TOOLS_DEPENDS.perl= # buildlink3 will handle the dependency
|
|
BUILDLINK_API_DEPENDS.perl+= perl>=${PERL5_REQD}
|
|
BUILDLINK_PKGSRCDIR.perl?= ../../lang/perl5
|
|
|
|
PERL5_OPTIONS?= # empty
|
|
. if !empty(PERL5_OPTIONS:Mthreads)
|
|
INSTALL_TEMPLATES+= ${.CURDIR}/../../lang/perl5/files/install_threads.tmpl
|
|
. endif
|
|
|
|
. if ${PKG_INSTALLATION_TYPE} == "overwrite"
|
|
#
|
|
# 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 # PERL5_BUILDLINK3_MK
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|