1997-08-20 22:00:00 +02:00
|
|
|
# New ports collection makefile for: tk8.0
|
|
|
|
# Date created: 19 August 1997
|
|
|
|
# Whom: jkh
|
|
|
|
#
|
1999-08-31 05:04:38 +02:00
|
|
|
# $FreeBSD$
|
1997-08-20 22:00:00 +02:00
|
|
|
#
|
|
|
|
|
2000-04-10 03:11:24 +02:00
|
|
|
PORTNAME= tk
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTVERSION= 8.0.5
|
1998-08-08 00:56:48 +02:00
|
|
|
CATEGORIES= x11-toolkits tk80
|
2000-10-14 17:23:00 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_TCLTK}
|
|
|
|
MASTER_SITE_SUBDIR= tcl8_0
|
2000-04-10 03:11:24 +02:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
1997-08-20 22:00:00 +02:00
|
|
|
|
2001-01-27 06:31:09 +01:00
|
|
|
MAINTAINER= ports@Freebsd.ORG
|
1997-08-20 22:00:00 +02:00
|
|
|
|
1998-09-18 00:31:35 +02:00
|
|
|
LIB_DEPENDS= tcl80.1:${PORTSDIR}/lang/tcl80
|
1997-08-20 22:00:00 +02:00
|
|
|
|
1999-06-20 16:05:44 +02:00
|
|
|
NO_LATEST_LINK= yes
|
1998-11-11 03:02:14 +01:00
|
|
|
USE_XLIB= yes
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-04-30 18:11:52 +02:00
|
|
|
WRKSRC= ${WRKDIR}/tk8.0.5/unix
|
1997-08-20 22:00:00 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-shared
|
2001-01-16 18:33:20 +01:00
|
|
|
CONFIGURE_ENV= PORTSDIR=${PORTSDIR} TK_LIB_FILE=${TK_LIB_FILE}
|
2000-10-08 05:07:46 +02:00
|
|
|
PKGINSTALL= ${PKGDIR}/pkg-install.wish
|
|
|
|
PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.wish
|
1997-08-20 22:00:00 +02:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
SHLIB_MAJOR= 1
|
|
|
|
SHLIB_MINOR= 4
|
|
|
|
MAKEFILE= makefile
|
1998-09-18 00:31:35 +02:00
|
|
|
TK_LIB= libtk80.so
|
1998-03-18 01:56:29 +01:00
|
|
|
|
1998-11-14 10:43:39 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
2001-01-16 18:33:20 +01:00
|
|
|
TK_LIB_FILE= ${TK_LIB}.${SHLIB_MAJOR}
|
1998-11-14 10:43:39 +01:00
|
|
|
.else
|
2001-01-16 18:33:20 +01:00
|
|
|
TK_LIB_FILE= ${TK_LIB}.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1998-11-14 10:43:39 +01:00
|
|
|
.endif
|
|
|
|
|
1999-05-04 21:33:50 +02:00
|
|
|
post-patch:
|
|
|
|
@${CP} ${WRKSRC}/mkLinks ${WRKSRC}/mkLinks.orig
|
|
|
|
@${SED} -e 's/\.[3n]/&.gz/g' ${WRKSRC}/mkLinks.orig > ${WRKSRC}/mkLinks
|
|
|
|
|
1998-03-18 01:56:29 +01:00
|
|
|
post-configure:
|
|
|
|
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
|
|
|
|
@${CP} ${FILESDIR}/makefile ${WRKSRC}
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} \
|
|
|
|
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
|
|
|
|
|
1997-08-20 22:00:00 +02:00
|
|
|
post-install:
|
1998-09-18 00:31:35 +02:00
|
|
|
${LN} -sf ${TK_LIB_FILE} ${PREFIX}/lib/${TK_LIB}
|
1998-12-13 09:49:14 +01:00
|
|
|
.if exists(${PKGINSTALL})
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
|
1998-07-27 23:36:08 +02:00
|
|
|
.endif
|
1997-08-20 22:00:00 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
cd ${WRKSRC}; make test
|
|
|
|
|
1998-11-14 10:43:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|