From 46aa4f6dff9def3c8b4781e5cc55de002732d46f Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 19 Oct 2013 05:22:27 -0500 Subject: [PATCH] misc-cdn/flag: OPTIONS support --- cdn/ports/misc-cdn/flag/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cdn/ports/misc-cdn/flag/Makefile b/cdn/ports/misc-cdn/flag/Makefile index da9dc7a..a08860a 100644 --- a/cdn/ports/misc-cdn/flag/Makefile +++ b/cdn/ports/misc-cdn/flag/Makefile @@ -18,23 +18,25 @@ VALID_CATEGORIES += misc-cdn NO_BUILD= yes -OPTIONS= BASH "Install include for Bash prompt" on +OPTIONS_DEFINE= BASH +BASH_DESC= Install include for Bash prompt +OPTIONS_DEFAULT=BASH PLIST_FILES= bin/flag etc/rc.d/update-issue -.if defined(WITH_BASH) +.include + +.if ${PORT_OPTIONS:MBASH} PLIST_FILES+= share/flag/bash_prompt.sh PLIST_DIRS+= share/flag .endif -.include - do-install: ${INSTALL_SCRIPT} ${WRKSRC}/flag ${PREFIX}/bin/flag ${INSTALL_SCRIPT} ${WRKSRC}/update-issue ${PREFIX}/etc/rc.d/update-issue -.if defined(WITH_BASH) +.if ${PORT_OPTIONS:MBASH} ${MKDIR} ${PREFIX}/share/flag ${INSTALL_DATA} ${WRKSRC}/bash_prompt.sh ${PREFIX}/share/flag .endif -.include +.include -- 2.42.0