Handle MACHINE_GNU_PLATFORM when generating PLIST.

This commit is contained in:
asau 2017-04-13 13:00:43 +00:00
parent ef919daa34
commit 11db24b8e8

View file

@ -1,4 +1,4 @@
# $NetBSD: options.mk,v 1.6 2015/08/10 08:13:45 asau Exp $
# $NetBSD: options.mk,v 1.7 2017/04/13 13:00:43 asau Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.fricas
PKG_OPTIONS_REQUIRED_GROUPS= lisp
@ -31,6 +31,8 @@ CONFIGURE_ARGS+= --with-lisp=ecl
# Fix suffix for "fast load" files:
PLIST_SUBST+= FASL=${FASL:Q}
PRINT_PLIST_AWK+= {gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}")}
# Generalize "fast load" files
PRINT_PLIST_AWK+= {gsub(/\.${FASL}$$/, ".$${FASL}");}
.if !empty(PKG_OPTIONS:Mclisp)