Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/tcl.mk
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
_TCLTK_BUILD_DEPENDS= | _TCLTK_BUILD_DEPENDS= | ||||
_TCLTK_RUN_DEPENDS= | _TCLTK_RUN_DEPENDS= | ||||
_TCLTK_LIB_DEPENDS= | _TCLTK_LIB_DEPENDS= | ||||
# Construct the correct dependency lines (wrapper) | # Construct the correct dependency lines (wrapper) | ||||
.if ${tcl_ARGS:Mwrapper} | .if ${tcl_ARGS:Mwrapper} | ||||
. if ${_TCLTK_PORT} == "tcl" | . if ${_TCLTK_PORT} == "tcl" | ||||
_TCLTK_WRAPPER_PORT= tclsh:${PORTSDIR}/lang/tcl-wrapper | _TCLTK_WRAPPER_PORT= tclsh:lang/tcl-wrapper | ||||
. elif ${_TCLTK_PORT} == "tk" | . elif ${_TCLTK_PORT} == "tk" | ||||
_TCLTK_WRAPPER_PORT= wish:${PORTSDIR}/x11-toolkits/tk-wrapper | _TCLTK_WRAPPER_PORT= wish:x11-toolkits/tk-wrapper | ||||
. endif | . endif | ||||
.endif | .endif | ||||
# Construct the correct dependency lines (Tcl/Tk) | # Construct the correct dependency lines (Tcl/Tk) | ||||
. if ${_TCLTK_PORT} == "tcl" | . if ${_TCLTK_PORT} == "tcl" | ||||
_TCLTK_EXE_LINE= tclsh${TCL_VER}:${PORTSDIR}/lang/tcl${_TCLTK_WANTED_VERSION} | _TCLTK_EXE_LINE= tclsh${TCL_VER}:lang/tcl${_TCLTK_WANTED_VERSION} | ||||
_TCLTK_LIB_LINE= libtcl${TCL_SHLIB_VER}.so:${PORTSDIR}/lang/tcl${_TCLTK_WANTED_VERSION} | _TCLTK_LIB_LINE= libtcl${TCL_SHLIB_VER}.so:lang/tcl${_TCLTK_WANTED_VERSION} | ||||
. elif ${_TCLTK_PORT} == "tk" | . elif ${_TCLTK_PORT} == "tk" | ||||
_TCLTK_EXE_LINE= wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${_TCLTK_WANTED_VERSION} | _TCLTK_EXE_LINE= wish${TK_VER}:x11-toolkits/tk${_TCLTK_WANTED_VERSION} | ||||
_TCLTK_LIB_LINE= libtk${TK_SHLIB_VER}.so:${PORTSDIR}/x11-toolkits/tk${_TCLTK_WANTED_VERSION} | _TCLTK_LIB_LINE= libtk${TK_SHLIB_VER}.so:x11-toolkits/tk${_TCLTK_WANTED_VERSION} | ||||
.endif | .endif | ||||
.if ${tcl_ARGS:Mbuild} | .if ${tcl_ARGS:Mbuild} | ||||
BUILD_DEPENDS+= ${_TCLTK_WRAPPER_PORT} \ | BUILD_DEPENDS+= ${_TCLTK_WRAPPER_PORT} \ | ||||
${_TCLTK_EXE_LINE} | ${_TCLTK_EXE_LINE} | ||||
.elif ${tcl_ARGS:Mrun} | .elif ${tcl_ARGS:Mrun} | ||||
RUN_DEPENDS+= ${_TCLTK_WRAPPER_PORT} \ | RUN_DEPENDS+= ${_TCLTK_WRAPPER_PORT} \ | ||||
${_TCLTK_EXE_LINE} | ${_TCLTK_EXE_LINE} | ||||
.else | .else | ||||
RUN_DEPENDS+= ${_TCLTK_WRAPPER_PORT} | RUN_DEPENDS+= ${_TCLTK_WRAPPER_PORT} | ||||
LIB_DEPENDS+= ${_TCLTK_LIB_LINE} | LIB_DEPENDS+= ${_TCLTK_LIB_LINE} | ||||
.endif | .endif | ||||
.endif # defined(_INCLUDE_USES_TCL_MK) | .endif # defined(_INCLUDE_USES_TCL_MK) | ||||
.undef _TCLTK_IGNORE | .undef _TCLTK_IGNORE |