diff options
author | jlam <jlam> | 2007-07-31 19:51:01 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-07-31 19:51:01 +0000 |
commit | 8e34f7fee7028e3487751965fbf4ac4ca3c62cf5 (patch) | |
tree | bdabfd8d74e4dea305bb79a7529cdc92d9c2219f /mk/plist | |
parent | 6d257b1e9066ab36b690b715e4886e88e25c45fd (diff) | |
download | pkgsrc-8e34f7fee7028e3487751965fbf4ac4ca3c62cf5.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/) |