1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/x11-toolkits/itk/Makefile
Mikhail Teterin ddb5a7b884 Update the itcl/itk from 3.2 to 3.3 (released in April 2005). The
installed libraries are now named libitcl.so.3 & libitk.so.3 instead
of having the version be part of the libname (libitcl33.so.1). The
itclConfig.sh and itkConfig.sh are now also installed, which is required
by some software (such as the insight -- a gdb frontend).

Fix-up the (unchanged) iwidgets port to reflect the above and improve it
to not require its own copy of the itcl tree at install time.

Approved by:	maintainer

Fix-up the tkdesk port to reflect the itcl/itk changes, which required
updating it to the 2.0p2 (from 2.0). (This lovely piece of software
badly needs a caring maintainer, BTW.) While here, teach tkdesk to use
installed blt instead of building its own.

The only iwidget/itk/itcl consumer that remains broken is net/smm++ (a
MUD client). This should change as soon as the maintainer get back to
me.
2006-05-17 20:35:55 +00:00

51 lines
1.1 KiB
Makefile

# New ports collection makefile for: itk
# Date created: Aug 17 1996
# Whom: chuckr
#
# $FreeBSD$
#
PORTNAME= itk
PORTVERSION= 3.3
CATEGORIES= x11-toolkits tk84
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=incrtcl
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= [incr Tk] (A.K.A. "itk")
LIB_DEPENDS= tk84:${PORTSDIR}/x11-toolkits/tk84 \
itcl.${MAJOR}:${PORTSDIR}/lang/itcl
INSTALLS_SHLIB= yes
MAKE_ENV+= ${PLIST_SUB} \
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
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}
.if defined(MAKE_JOBS)
MAKE_ARGS+= -j${MAKE_JOBS}
.endif
MANN= Archetype.n Toplevel.n Widget.n itk.n itkvars.n usual.n
ITK_LIB_FILE= ${ITK_LIB}.${SHLIB_MAJOR}
post-build:
#
# Consider running ``make test'' now, if the X11 environment
# is available in this session
#
test:
cd ${WRKSRC} && ${SETENV} ITK_LIBRARY=${WRKSRC}/library \
${PREFIX}/bin/wish8.4 tests/all.tcl -load "load ./${ITK_LIB}; package require Tk"
.include <bsd.port.mk>