| @@ -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 | # |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.scmgit | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.scmgit |
4 | PKG_SUPPORTED_OPTIONS= scmgit-gui | | 4 | PKG_SUPPORTED_OPTIONS= scmgit-gui |
5 | PKG_SUGGESTED_OPTIONS= scmgit-gui | | 5 | PKG_SUGGESTED_OPTIONS= scmgit-gui |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
9 | PLIST_VARS+= gui | | 9 | PLIST_VARS+= gui |
| | | 10 | PLIST_VARS+= macosx |
10 | | | 11 | |
11 | .if !empty(PKG_OPTIONS:Mscmgit-gui) | | 12 | .if !empty(PKG_OPTIONS:Mscmgit-gui) |
12 | PLIST.gui= yes | | 13 | PLIST.gui= yes |
13 | USE_TOOLS+= wish:run | | 14 | USE_TOOLS+= wish:run |
14 | CONFIGURE_ARGS+= --with-tcltk=${WISH:Q} | | 15 | CONFIGURE_ARGS+= --with-tcltk=${WISH:Q} |
| | | 16 | . if ${OPSYS} == "Darwin" && exists(/System/Library/Frameworks/Tk.framework) |
| | | 17 | PLIST.macosx= yes |
| | | 18 | PRIVILEGED_STAGES+= clean |
| | | 19 | . endif |
15 | .else | | 20 | .else |
16 | CONFIGURE_ARGS+= --without-tcltk | | 21 | CONFIGURE_ARGS+= --without-tcltk |
17 | .endif | | 22 | .endif |