78d4c46ce3
and move in Tcl/Tk and extensions. This will provide a nice place for all things Tcl as well as allowing us to remove ${LOCALBASE}/lib from Tcl's "auto_path" which will greatly improve startup and package loading times. ok landry@, sebastiap@
33 lines
918 B
Makefile
33 lines
918 B
Makefile
# $OpenBSD: tk.port.mk,v 1.11 2011/01/05 16:04:14 stu Exp $
|
|
|
|
CATEGORIES += x11/tk
|
|
|
|
MODTK_VERSION ?= 8.5
|
|
MODTCL_VERSION ?= ${MODTK_VERSION}
|
|
|
|
.if ${MODTK_VERSION} == 8.4
|
|
_MODTK_SPEC = tk->=${MODTK_VERSION},<8.5
|
|
MODTK_LIB ?= tk84
|
|
.elif ${MODTK_VERSION} == 8.5
|
|
_MODTK_SPEC = tk->=${MODTK_VERSION},<8.6
|
|
MODTK_LIB ?= tk85
|
|
.endif
|
|
|
|
MODTK_BIN ?= ${LOCALBASE}/bin/wish${MODTK_VERSION}
|
|
MODTK_INCDIR ?= ${LOCALBASE}/include/tk${MODTK_VERSION}
|
|
MODTK_LIBDIR ?= ${MODTCL_TCLDIR}/tk${MODTK_VERSION}
|
|
MODTK_CONFIG ?= ${MODTK_LIBDIR}/tkConfig.sh
|
|
|
|
|
|
SUBST_VARS += MODTK_VERSION MODTK_BIN
|
|
|
|
MODULES += lang/tcl
|
|
|
|
MODTK_BUILD_DEPENDS ?= ${_MODTK_SPEC}:x11/tk/${MODTK_VERSION} \
|
|
${MODTCL_BUILD_DEPENDS}
|
|
MODTK_RUN_DEPENDS ?= ${_MODTK_SPEC}:x11/tk/${MODTK_VERSION} \
|
|
${MODTCL_RUN_DEPENDS}
|
|
MODTK_LIB_DEPENDS ?= ${_MODTK_SPEC}:x11/tk/${MODTK_VERSION} \
|
|
${MODTCL_LIB_DEPENDS}
|
|
MODTK_WANTLIB ?= ${MODTK_LIB} ${MODTCL_WANTLIB}
|