diff options
author | jlam <jlam@pkgsrc.org> | 2007-07-31 19:51:01 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2007-07-31 19:51:01 +0000 |
commit | 5d1fa2066ae1c8d542230d4fa8c847c1d91cd1d5 (patch) | |
tree | bdabfd8d74e4dea305bb79a7529cdc92d9c2219f /mk/plist | |
parent | 8b380d71071c195800152fa41ee6c7848161b5b2 (diff) | |
download | pkgsrc-5d1fa2066ae1c8d542230d4fa8c847c1d91cd1d5.tar.gz |
Don't substitute for OPSYS- or ARCH-related variables in print-plist
if EMUL_PLATFORMS is defined. This facilitates making
EMUL_PLATFORM-specific PLISTs.
Diffstat (limited to 'mk/plist')
-rw-r--r-- | mk/plist/print-plist.mk | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/mk/plist/print-plist.mk b/mk/plist/print-plist.mk index a3677fca7cf..ff2daa0e58b 100644 --- a/mk/plist/print-plist.mk +++ b/mk/plist/print-plist.mk @@ -1,4 +1,4 @@ -# $NetBSD: print-plist.mk,v 1.13 2007/07/02 14:54:21 joerg Exp $ +# $NetBSD: print-plist.mk,v 1.14 2007/07/31 19:51:01 jlam Exp $ ### ### Automatic PLIST generation @@ -13,25 +13,30 @@ ### - make print-PLIST | brain >PLIST ### -_PRINT_PLIST_AWK_SUBST={ \ +_PRINT_PLIST_AWK_SUBST={ +.if !defined(EMUL_PLATFORMS) +_PRINT_PLIST_AWK_SUBST+= \ gsub(/${OPSYS}/, "$${OPSYS}"); \ gsub(/${OS_VERSION:S/./\./g}/, "$${OS_VERSION}"); \ gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}"); \ gsub(/${MACHINE_ARCH}/, "$${MACHINE_ARCH}"); \ gsub(/${MACHINE_GNU_ARCH}/, "$${MACHINE_GNU_ARCH}"); -.if !empty(LOWER_VENDOR) -_PRINT_PLIST_AWK_SUBST+= gsub(/${LOWER_VENDOR}/, "$${LOWER_VENDOR}"); -.endif +. if !empty(LOWER_VENDOR) +_PRINT_PLIST_AWK_SUBST+= \ + gsub(/${LOWER_VENDOR}/, "$${LOWER_VENDOR}"); +. endif _PRINT_PLIST_AWK_SUBST+= \ gsub(/${LOWER_OS_VERSION:S/./\./g}/, "$${LOWER_OS_VERSION}"); \ - gsub(/${LOWER_OPSYS}/, "$${LOWER_OPSYS}"); \ + gsub(/${LOWER_OPSYS}/, "$${LOWER_OPSYS}"); +.endif +_PRINT_PLIST_AWK_SUBST+= \ gsub(/${PKGNAME_NOREV}/, "$${PKGNAME}"); \ gsub(/${PKGVERSION:S/./\./g:C/nb[0-9]*$$//}/, "$${PKGVERSION}");\ gsub(/^${PKGLOCALEDIR}\/locale/, "share/locale"); \ gsub(/^@dirrm ${PKGLOCALEDIR}\/locale/, "@dirrm share/locale"); \ gsub("^${PKGINFODIR}\/", "info/"); \ - gsub("^${PKGMANDIR}\/", "man/"); \ -} + gsub("^${PKGMANDIR}\/", "man/"); +_PRINT_PLIST_AWK_SUBST+=} _PRINT_PLIST_AWK_IGNORE= ($$0 ~ /^${PKG_DBDIR:S|^${PREFIX}/||:S|/|\\/|g}\//) _PRINT_PLIST_AWK_IGNORE+= || ($$0 ~ /emul\/linux\/proc/) |