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
|
2008-04-22 08:29:44 +02:00
|
|
|
PORTVERSION= 8.4.19
|
2009-02-26 15:19:53 +01:00
|
|
|
PORTREVISION= 2
|
2004-10-27 20:07:18 +02:00
|
|
|
PORTEPOCH= 2
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= x11-toolkits tk
|
2009-08-22 02:39:37 +02:00
|
|
|
MASTER_SITES= SF/tcl/Tcl/${PORTVERSION}
|
2002-03-07 08:52:39 +01:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}-src
|
1997-08-20 22:00:00 +02:00
|
|
|
|
2012-11-26 19:16:57 +01:00
|
|
|
MAINTAINER= tcltk@FreeBSD.org
|
2013-02-06 16:25:57 +01:00
|
|
|
COMMENT= Graphical toolkit for Tcl
|
1997-08-20 22:00:00 +02:00
|
|
|
|
2011-03-23 12:37:49 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
LICENSE_FILE= ${WRKSRC}/../license.terms
|
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
OPTIONS_DEFINE= TKMAN THREADS
|
|
|
|
OPTIONS_DEFAULT=THREADS
|
|
|
|
TKMAN_DESC= Install Tk function manpages
|
|
|
|
|
2000-05-01 18:02:20 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}/unix
|
2013-02-06 16:25:57 +01:00
|
|
|
|
|
|
|
ALL_TARGET= all
|
|
|
|
INSTALL_TARGET= install
|
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_TCL= ${SHORT_TK_VER}
|
|
|
|
USE_XORG= x11
|
|
|
|
CFLAGS+= -I${TCL_INCLUDEDIR}/generic
|
1997-08-20 22:00:00 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-02-06 16:25:57 +01:00
|
|
|
CONFIGURE_ARGS= --enable-shared \
|
|
|
|
--enable-man-suffix=.${MAN_SUFFIX} \
|
|
|
|
--with-tcl=${TCL_LIBDIR} \
|
2005-06-29 17:20:02 +02:00
|
|
|
--includedir=${PREFIX}/include/tk${TK_VER}
|
2013-02-06 16:25:57 +01:00
|
|
|
|
2002-05-09 18:39:18 +02:00
|
|
|
CONFIGURE_ENV= PORTSDIR=${PORTSDIR} TK_LIB_FILE=libtk${SHORT_TK_VER}.so.1
|
2007-03-20 11:53:02 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
CFLAGS+= -I${TCL_INCLUDEDIR}
|
2012-10-14 04:38:39 +02:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
TK_VER= ${PORTVERSION:R}
|
|
|
|
SHORT_TK_VER= ${TK_VER:S/.//}
|
|
|
|
LATEST_LINK= ${PORTNAME}${SHORT_TK_VER}
|
|
|
|
MAN_SUFFIX= ${LATEST_LINK}
|
2007-03-08 15:17:27 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
MAKE_ENV= SHORT_TK_VER=${SHORT_TK_VER}
|
|
|
|
|
|
|
|
PLIST_SUB= TK_VER=${TK_VER} \
|
|
|
|
SHORT_TK_VER=${SHORT_TK_VER}
|
2007-03-08 15:17:27 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
SUB_FILES= pkgIndex.tcl
|
2007-03-08 15:17:27 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-02-26 15:19:53 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.if ${PORT_OPTIONS:MTKMAN} && !defined(NO_INSTALL_MANPAGES)
|
|
|
|
INSTALL_TARGET+=install-doc
|
|
|
|
.include "${.CURDIR}/Makefile.man"
|
2009-02-26 15:19:53 +01:00
|
|
|
.endif
|
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.if ${PORT_OPTIONS:MTHREADS}
|
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
2006-06-05 00:02:14 +02:00
|
|
|
.else
|
2013-02-06 16:25:57 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
2004-08-17 07:00:53 +02:00
|
|
|
.endif
|
2003-05-14 06:19:00 +02:00
|
|
|
|
2007-03-20 11:53:02 +01:00
|
|
|
post-patch:
|
2013-04-18 10:20:59 +02:00
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|@TK_BUILD_LIB_SPEC@|@TK_LIB_SPEC@|; \
|
|
|
|
s|@TK_BUILD_STUB_LIB_SPEC@|@TK_STUB_LIB_SPEC@|; \
|
|
|
|
s|@TK_BUILD_STUB_LIB_PATH@|@TK_STUB_LIB_PATH@|; \
|
|
|
|
s|@TK_SRC_DIR@|${PREFIX}/include/tk${TK_VER}|' \
|
|
|
|
${WRKSRC}/tkConfig.sh.in
|
2009-01-23 17:28:36 +01:00
|
|
|
@(cd ${WRKSRC}/..; ${PATCH} -p0 < ${PATCHDIR}/extra-lastevent-patch)
|
2007-07-29 15:11:16 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|X11/Intrinsic.h|X11/Xlib.h|g' ${WRKSRC}/configure
|
2007-03-20 11:53:02 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|@TK_SHARED_BUILD@|#@TK_SHARED_BUILD@|g' ${WRKSRC}/Makefile.in
|
2004-04-02 02:53:31 +02:00
|
|
|
|
2003-03-23 21:32:14 +01:00
|
|
|
post-configure:
|
2013-02-06 16:25:57 +01:00
|
|
|
${REINPLACE_CMD} -e 's|${WRKDIRPREFIX}${.CURDIR}|$${WRKDIRPREFIX}${TKBASE}|' \
|
2003-03-23 21:32:14 +01:00
|
|
|
${WRKSRC}/tkConfig.sh
|
|
|
|
|
1997-08-20 22:00:00 +02:00
|
|
|
post-install:
|
2013-02-06 16:25:57 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/pkgIndex.tcl ${PREFIX}/lib/tk${TK_VER}/
|
1997-08-20 22:00:00 +02:00
|
|
|
|
2006-06-05 00:02:14 +02:00
|
|
|
regression-test: build
|
2004-04-02 21:08:08 +02:00
|
|
|
cd ${WRKSRC}; ${MAKE} test
|
2003-11-18 14:26:18 +01:00
|
|
|
${ECHO_CMD} "package require Tk" | tclsh${TK_VER}
|
|
|
|
${ECHO_CMD} "load libtk${SHORT_TK_VER}.so" | tclsh${TK_VER}
|
1997-08-20 22:00:00 +02:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.include <bsd.port.mk>
|