2009-05-19 17:14:52 -04:00
|
|
|
# $OpenBSD: tk.port.mk,v 1.6 2009/05/19 21:14:52 sthen Exp $
|
2008-05-13 08:07:14 -04:00
|
|
|
|
|
|
|
CATEGORIES += x11/tk
|
|
|
|
|
|
|
|
MODTK_VERSION ?= 8.5
|
2009-05-19 17:14:52 -04:00
|
|
|
MODTCL_VERSION ?= ${MODTK_VERSION}
|
2008-05-13 08:07:14 -04:00
|
|
|
|
2009-03-11 16:10:44 -04:00
|
|
|
.if ${MODTK_VERSION} == 8.4
|
2009-03-13 10:07:06 -04:00
|
|
|
_MODTK_SPEC = tk->=${MODTK_VERSION},<8.5
|
2009-03-11 16:10:44 -04:00
|
|
|
.elif ${MODTK_VERSION} == 8.5
|
2009-03-13 10:07:06 -04:00
|
|
|
_MODTK_SPEC = tk->=${MODTK_VERSION},<8.6
|
2009-03-10 19:34:12 -04:00
|
|
|
.endif
|
|
|
|
|
2008-05-13 08:07:14 -04:00
|
|
|
MODTK_BIN ?= ${LOCALBASE}/bin/wish${MODTK_VERSION}
|
|
|
|
MODTK_INCDIR ?= ${LOCALBASE}/include/tk${MODTK_VERSION}
|
2008-07-08 00:32:06 -04:00
|
|
|
MODTK_LIBDIR ?= ${LOCALBASE}/lib/tk${MODTK_VERSION}
|
|
|
|
MODTK_CONFIG ?= ${MODTK_LIBDIR}/tkConfig.sh
|
2008-05-13 08:07:14 -04:00
|
|
|
|
|
|
|
USE_X11 = Yes
|
|
|
|
|
|
|
|
SUBST_VARS += MODTK_VERSION MODTK_BIN
|
|
|
|
|
|
|
|
MODULES += lang/tcl
|
|
|
|
|
2009-03-10 19:34:12 -04:00
|
|
|
MODTK_BUILD_DEPENDS ?= :${_MODTK_SPEC}:x11/tk/${MODTK_VERSION} \
|
2008-07-08 00:32:06 -04:00
|
|
|
${MODTCL_BUILD_DEPENDS}
|
2009-03-10 19:34:12 -04:00
|
|
|
MODTK_RUN_DEPENDS ?= :${_MODTK_SPEC}:x11/tk/${MODTK_VERSION} \
|
2008-07-08 00:32:06 -04:00
|
|
|
${MODTCL_RUN_DEPENDS}
|
2009-05-19 17:14:52 -04:00
|
|
|
MODTK_LIB ?= tk${MODTK_VERSION:S/.//}
|
|
|
|
MODTK_LIB_DEPENDS ?= ${MODTK_LIB}:${_MODTK_SPEC}:x11/tk/${MODTK_VERSION} \
|
2008-07-08 00:32:06 -04:00
|
|
|
${MODTCL_LIB_DEPENDS}
|