diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-13 07:12:01 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-13 07:12:01 +0000 |
commit | 06f713b14d51ecad5990f248fba38420fdb36f17 (patch) | |
tree | 72d5d7bf0908f868bb621b3fbaa6af99b2f203c3 /lang/perl5 | |
parent | 089556b74d33ec4b54d2a26560edcc6afd844b34 (diff) | |
download | pkgsrc-06f713b14d51ecad5990f248fba38420fdb36f17.tar.gz |
Rearrange order of tests and protect more of the code that depends on
${PERL5} being present from being seen if ${PERL5} is in fact not there.
Diffstat (limited to 'lang/perl5')
-rw-r--r-- | lang/perl5/buildlink2.mk | 8 | ||||
-rw-r--r-- | lang/perl5/buildlink3.mk | 15 |
2 files changed, 11 insertions, 12 deletions
diff --git a/lang/perl5/buildlink2.mk b/lang/perl5/buildlink2.mk index 16502938eeb..f1331158263 100644 --- a/lang/perl5/buildlink2.mk +++ b/lang/perl5/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.8 2004/01/12 15:50:22 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.9 2004/01/13 07:12:01 jlam Exp $ .if !defined(PERL5_BUILDLINK2_MK) PERL5_BUILDLINK2_MK= # defined @@ -33,8 +33,8 @@ _PERL5_SITEVAR.INSTALLSITEMAN3DIR= installsiteman3dir _PERL5_SITEVAR.SITELIBEXP= sitelibexp _PERL5_SITEVAR.SITEARCHEXP= sitearchexp -.if !defined(_PERL5_SITEPREFIX) -. if exists(${PERL5}) +.if exists(${PERL5}) +. if !defined(_PERL5_SITEPREFIX) _PERL5_PREFIX!= \ eval `${PERL5} -V:prefix 2>/dev/null`; ${ECHO} $$prefix _PERL5_SITEPREFIX!= \ @@ -60,11 +60,11 @@ PERL5_SUB_INSTALLSCRIPT!= \ ${SED} -e "s,^${_PERL5_PREFIX}/,," MAKEFLAGS+= PERL5_SUB_INSTALLSCRIPT="${PERL5_SUB_INSTALLSCRIPT}" . endif -.endif BUILDLINK_FILES.perl= \ ${PERL5_SUB_INSTALLARCHLIB}/CORE/* \ ${PERL5_SUB_INSTALLARCHLIB}/auto/DynaLoader/DynaLoader.a +.endif BUILDLINK_TARGETS+= perl-buildlink diff --git a/lang/perl5/buildlink3.mk b/lang/perl5/buildlink3.mk index 2f790e6b302..812275f4920 100644 --- a/lang/perl5/buildlink3.mk +++ b/lang/perl5/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.5 2004/01/12 15:50:22 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.6 2004/01/13 07:12:01 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ PERL5_BUILDLINK3_MK:= ${PERL5_BUILDLINK3_MK}+ @@ -37,8 +37,8 @@ _PERL5_SITEVAR.INSTALLSITEMAN3DIR= installsiteman3dir _PERL5_SITEVAR.SITELIBEXP= sitelibexp _PERL5_SITEVAR.SITEARCHEXP= sitearchexp -.if !defined(_PERL5_SITEPREFIX) . if exists(${PERL5}) +. if !defined(_PERL5_SITEPREFIX) _PERL5_PREFIX!= \ eval `${PERL5} -V:prefix 2>/dev/null`; ${ECHO} $$prefix _PERL5_SITEPREFIX!= \ @@ -46,13 +46,13 @@ _PERL5_SITEPREFIX!= \ MAKEFLAGS+= _PERL5_PREFIX="${_PERL5_PREFIX}" MAKEFLAGS+= _PERL5_SITEPREFIX="${_PERL5_SITEPREFIX}" -. for _var_ in ${_PERL5_SITEVARS} +. for _var_ in ${_PERL5_SITEVARS} PERL5_SUB_${_var_}!= \ eval `${PERL5} -V:${_PERL5_SITEVAR.${_var_}} 2>/dev/null`; \ ${ECHO} $${${_PERL5_SITEVAR.${_var_}}} | \ ${SED} -e "s,^${_PERL5_SITEPREFIX}/,," MAKEFLAGS+= PERL5_SUB_${_var_}="${PERL5_SUB_${_var_}}" -. endfor +. endfor PERL5_SUB_INSTALLARCHLIB!= \ eval `${PERL5} -V:installarchlib 2>/dev/null`; \ ${ECHO} $$installarchlib | \ @@ -63,10 +63,8 @@ PERL5_SUB_INSTALLSCRIPT!= \ ${ECHO} $$installscript | \ ${SED} -e "s,^${_PERL5_PREFIX}/,," MAKEFLAGS+= PERL5_SUB_INSTALLSCRIPT="${PERL5_SUB_INSTALLSCRIPT}" -. endif -.endif - -. if ${PKG_INSTALLATION_TYPE} == "overwrite" +. 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 @@ -75,6 +73,7 @@ MAKEFLAGS+= PERL5_SUB_INSTALLSCRIPT="${PERL5_SUB_INSTALLSCRIPT}" BUILDLINK_FILES.perl= \ ${PERL5_SUB_INSTALLARCHLIB}/CORE/* \ ${PERL5_SUB_INSTALLARCHLIB}/auto/DynaLoader/DynaLoader.a +. endif . endif .endif # PERL5_BUILDLINK3_MK |