Fri Aug 1 11:30:20 2008 UTC ()
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".


(minskim)
diff -r1.1 -r1.2 pkgsrc/devel/scmgit-base/options.mk

cvs diff -r1.1 -r1.2 pkgsrc/devel/scmgit-base/Attic/options.mk (expand / switch to unified diff)

--- pkgsrc/devel/scmgit-base/Attic/options.mk 2008/04/21 16:34:45 1.1
+++ pkgsrc/devel/scmgit-base/Attic/options.mk 2008/08/01 11:30:20 1.2
@@ -1,17 +1,22 @@ @@ -1,17 +1,22 @@
1# $NetBSD: options.mk,v 1.1 2008/04/21 16:34:45 xtraeme Exp $ 1# $NetBSD: options.mk,v 1.2 2008/08/01 11:30:20 minskim Exp $
2# 2#
3PKG_OPTIONS_VAR= PKG_OPTIONS.scmgit 3PKG_OPTIONS_VAR= PKG_OPTIONS.scmgit
4PKG_SUPPORTED_OPTIONS= scmgit-gui 4PKG_SUPPORTED_OPTIONS= scmgit-gui
5PKG_SUGGESTED_OPTIONS= scmgit-gui 5PKG_SUGGESTED_OPTIONS= scmgit-gui
6 6
7.include "../../mk/bsd.options.mk" 7.include "../../mk/bsd.options.mk"
8 8
9PLIST_VARS+= gui 9PLIST_VARS+= gui
 10PLIST_VARS+= macosx
10 11
11.if !empty(PKG_OPTIONS:Mscmgit-gui) 12.if !empty(PKG_OPTIONS:Mscmgit-gui)
12PLIST.gui= yes 13PLIST.gui= yes
13USE_TOOLS+= wish:run 14USE_TOOLS+= wish:run
14CONFIGURE_ARGS+= --with-tcltk=${WISH:Q} 15CONFIGURE_ARGS+= --with-tcltk=${WISH:Q}
 16. if ${OPSYS} == "Darwin" && exists(/System/Library/Frameworks/Tk.framework)
 17PLIST.macosx= yes
 18PRIVILEGED_STAGES+= clean
 19. endif
15.else 20.else
16CONFIGURE_ARGS+= --without-tcltk 21CONFIGURE_ARGS+= --without-tcltk
17.endif 22.endif