summaryrefslogtreecommitdiff
path: root/x11/tk80/Makefile
blob: 3b01c743d5c2d8065b95a195e503c32ec7be3729 (plain)
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
# $NetBSD: Makefile,v 1.22 1999/01/26 22:03:20 agc Exp $
# FreeBSD Id: Makefile,v 1.4 1997/10/01 09:20:31 tg Exp
#

DISTNAME=	tk8.0p2
PKGNAME=	tk-8.0p2
CATEGORIES=	x11
MASTER_SITES=	ftp://ftp.scriptics.com/pub/tcl/tcl8_0/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.scriptics.com/

DEPENDS+=	tcl-8.0p2:../../lang/tcl80

WRKSRC=		${WRKDIR}/tk8.0/unix
GNU_CONFIGURE=	yes

BUILD_USES_X11=	yes

# let libtool look after shared libraries
USE_LIBTOOL=	yes
CONFIGURE_ARGS+=	--disable-shared

# If the build system supports shared objects, enable them in tk.
# libtermcap was chosen as it doesn't change version numbers frequently.
.if exists(/usr/lib/libtermcap.so.0.0)
post-configure:
	@${ECHO} "Enabling shared object support in ${PKGNAME}"
	cd ${WRKSRC};							\
		${MV} tkConfig.sh tkConfig.sh.orig;			\
		${SED} -e 's/TK_SHARED_BUILD=.*/TK_SHARED_BUILD=1/'	\
			-e 's/TK_LIB_FILE=.*/TK_LIB_FILE=libtk80.so.1.0/' \
			tkConfig.sh.orig > tkConfig.sh
.endif

test:
	cd ${WRKSRC}; ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test

.include "../../mk/bsd.pkg.mk"