freebsd-ports/x11-toolkits/itk/Makefile
Mikhail Teterin 4327ccf070 Upgrade itcl to 3.4b1 -- the last version in the 3.x branch.
itk, interestingly, remains at 3.3-RC, so only minor changes
there.

Allow both to compile against Tcl-8.5. Both will now need to
be upgraded to branch 4.x -- a much more involved undertaking.

Approved by:	maintainer (in January)
2010-06-12 03:57:42 +00:00

53 lines
1.2 KiB
Makefile

# New ports collection makefile for: itk
# Date created: Aug 17 1996
# Whom: chuckr
#
# $FreeBSD$
#
PORTNAME= itk
PORTVERSION= 3.3
PORTREVISION= 3
CATEGORIES= x11-toolkits tk
MASTER_SITES= SF/incrtcl/%5BIncr%20Tcl_Tk%5D-source/${PORTVERSION}-RC
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= erik@smluc.org
COMMENT= Object-oriented extension to Tk [incr Tk]
LIB_DEPENDS= itcl.${MAJOR}:${PORTSDIR}/lang/itcl
USE_TK= 84+
USE_LDCONFIG= yes
MAKE_ENV+= ${PLIST_SUB} \
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \
USE_TK=${USE_TK} TCL_INCLUDEDIR=${TCL_INCLUDEDIR} \
TK_INCLUDEDIR=${TK_INCLUDEDIR}
MAKEFILE= ${FILESDIR}/Makefile.lib
SHLIB_MAJOR= ${MAJOR}
SHLIB_MINOR= ${MINOR}
MAJOR= ${PORTVERSION:R}
MINOR= ${PORTVERSION:E}
PLIST_SUB+= MAJOR=${MAJOR} MINOR=${MINOR}
ITK_LIB= libitk.so.${MAJOR}
MAKE_JOBS_SAFE= yes
MANN= Archetype.n Toplevel.n Widget.n itk.n itkvars.n usual.n
ITK_LIB_FILE= ${ITK_LIB}.${SHLIB_MAJOR}
.if defined(DISPLAY)
post-build: test
.else
post-build:
#
# DISPLAY is not set, so post-build testing is impossible
#
.endif
test:
cd ${WRKSRC} && ${SETENV} ITK_LIBRARY=${WRKSRC}/library \
${WISH} tests/all.tcl -load "load ./${ITK_LIB}; package require Tk"
.include <bsd.port.mk>