diff options
author | minskim <minskim> | 2008-08-01 11:30:20 +0000 |
---|---|---|
committer | minskim <minskim> | 2008-08-01 11:30:20 +0000 |
commit | 8d46d228c1d058a0bb5f70c4e1ca81140b12e1dd (patch) | |
tree | 4f76795cb8d9d66fa12c39895327f200b43f9cff /devel | |
parent | 61402877a1dafb90dbadb89c515aa9c14eea639c (diff) | |
download | pkgsrc-8d46d228c1d058a0bb5f70c4e1ca81140b12e1dd.tar.gz |
Enable the GUI application for Mac OS X when the scmgit-gui option
is given.
While here, add clean to PRIVILEGED_STATES; otherwise, an unprivileged
user cannot remove the Mac OS X GUI application with "make clean".
Diffstat (limited to 'devel')
-rw-r--r-- | devel/scmgit-base/options.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/scmgit-base/options.mk b/devel/scmgit-base/options.mk index f1ab5ead79e..37380cd13cc 100644 --- a/devel/scmgit-base/options.mk +++ b/devel/scmgit-base/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1 2008/04/21 16:34:45 xtraeme Exp $ +# $NetBSD: options.mk,v 1.2 2008/08/01 11:30:20 minskim Exp $ # PKG_OPTIONS_VAR= PKG_OPTIONS.scmgit PKG_SUPPORTED_OPTIONS= scmgit-gui @@ -7,11 +7,16 @@ PKG_SUGGESTED_OPTIONS= scmgit-gui .include "../../mk/bsd.options.mk" PLIST_VARS+= gui +PLIST_VARS+= macosx .if !empty(PKG_OPTIONS:Mscmgit-gui) PLIST.gui= yes USE_TOOLS+= wish:run CONFIGURE_ARGS+= --with-tcltk=${WISH:Q} +. if ${OPSYS} == "Darwin" && exists(/System/Library/Frameworks/Tk.framework) +PLIST.macosx= yes +PRIVILEGED_STAGES+= clean +. endif .else CONFIGURE_ARGS+= --without-tcltk .endif |