46d9d4eee3
is given. While here, add clean to PRIVILEGED_STATES; otherwise, an unprivileged user cannot remove the Mac OS X GUI application with "make clean".
22 lines
537 B
Makefile
22 lines
537 B
Makefile
# $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
|
|
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
|