aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/itk/Makefile
blob: 431a88c0a89705d3112c8f0b0ad8113c74d7da4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# New ports collection makefile for:	itk
# Date created:		Aug 17 1996
# Whom:			chuckr
#
# $FreeBSD$
#

PORTNAME=	itk
PORTVERSION=	${MAJOR}.${MINOR}.1
CATEGORIES=	x11-toolkits
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=incrtcl
DISTNAME=	itcl${PORTVERSION}
EXTRACT_SUFX=	_src.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	[incr Tk] (A.K.A. "itk")

LIB_DEPENDS=	tk83.1:${PORTSDIR}/x11-toolkits/tk83 \
		itcl${MAJOR}${MINOR}.1:${PORTSDIR}/lang/itcl

USE_REINPLACE=	yes
WRKSRC=		${WRKDIR}/itcl${PORTVERSION}/itk
INSTALLS_SHLIB=	yes
MAKE_ENV+=	${PLIST_SUB} \
		SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}

EXTRACT_AFTER_ARGS=| ${TAR} -xf - itcl${PORTVERSION}/itk
MAKEFILE=	${FILESDIR}/Makefile.lib
SHLIB_MAJOR=	1
SHLIB_MINOR=	1
MAJOR=		3
MINOR=		2
PLIST_SUB+=	MAJOR=${MAJOR} MINOR=${MINOR}
ITK_LIB=	libitk${MAJOR}${MINOR}.so
.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-patch:
	${REINPLACE_CMD} \
		-e 's,package require Itk,load \
			[glob ${WRKSRC}/${ITK_LIB_FILE}*],;' \
		-e 's,return$$,exit,' ${WRKSRC}/tests/*
	${REINPLACE_CMD} \
		-e 's,\@itk_LIB_FILE\@,${ITK_LIB_FILE},' \
		${WRKSRC}/pkgIndex.tcl.in

.include <bsd.port.mk>