1997-09-12 19:16:28 +02:00
|
|
|
# New ports collection makefile for: tclX
|
|
|
|
# Date created: 6 February 1996
|
|
|
|
# Whom: jkh
|
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1997-09-12 19:16:28 +02:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= tclX
|
2003-03-11 20:18:48 +01:00
|
|
|
PORTVERSION= 8.3.5
|
2004-04-05 23:18:14 +02:00
|
|
|
PORTREVISION= 1
|
2001-03-16 21:11:53 +01:00
|
|
|
CATEGORIES= lang tcl${TCL_DVER} tk${TCL_DVER}
|
2003-03-11 20:18:48 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR=tclx
|
2001-10-24 05:18:59 +02:00
|
|
|
DISTNAME= tclx${PORTVERSION}
|
2003-03-11 20:18:48 +01:00
|
|
|
EXTRACT_SUFX= -src.tar.gz
|
1997-09-12 19:16:28 +02:00
|
|
|
|
2001-03-16 21:11:53 +01:00
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Extended TCL
|
1997-09-12 19:16:28 +02:00
|
|
|
|
2001-06-05 13:38:35 +02:00
|
|
|
.ifdef WITHOUT_X11
|
2005-07-19 01:58:37 +02:00
|
|
|
LIB_DEPENDS= tcl${TCL_DVER}:${PORTSDIR}/lang/tcl${TCL_DVER}
|
2001-03-16 21:11:53 +01:00
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
.else
|
2005-07-19 01:58:37 +02:00
|
|
|
LIB_DEPENDS= tk${TCL_DVER}:${PORTSDIR}/x11-toolkits/tk${TCL_DVER}
|
2001-03-16 21:11:53 +01:00
|
|
|
.endif
|
|
|
|
|
2004-04-05 23:18:14 +02:00
|
|
|
TCL_VER?= 8.4
|
2001-03-16 21:11:53 +01:00
|
|
|
TCL_DVER?= ${TCL_VER:S/.//}
|
1997-09-12 19:16:28 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1997-09-12 19:16:28 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2000-07-13 22:54:37 +02:00
|
|
|
CONFIGURE_ARGS= --enable-shared \
|
2001-10-24 05:18:59 +02:00
|
|
|
--with-help=Help \
|
2001-03-16 21:11:53 +01:00
|
|
|
--with-tcl="${LOCALBASE}/lib/tcl${TCL_VER}" \
|
|
|
|
--with-tk="${LOCALBASE}/lib/tk${TCL_VER}"
|
2004-04-05 23:18:14 +02:00
|
|
|
PLIST_SUB= TCLX_LONG_VER=${PORTVERSION:R} \
|
|
|
|
TCLX_SHORT_VER=${PORTVERSION:R:S/.//}
|
2005-07-19 01:58:37 +02:00
|
|
|
INSTALL_TARGET= install-binaries install-libraries
|
1999-09-02 23:59:34 +02:00
|
|
|
|
2001-06-05 13:38:35 +02:00
|
|
|
.ifdef WITHOUT_X11
|
2001-03-16 21:11:53 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-tk=NO
|
|
|
|
PLIST_SUB+= X11='@comment '
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-tk="${LOCALBASE}/lib/tk${TCL_VER}"
|
|
|
|
PLIST_SUB+= X11=''
|
|
|
|
.endif
|
|
|
|
|
2001-08-19 17:03:59 +02:00
|
|
|
MAKE_ENV= LDFLAGS="-lm"
|
|
|
|
|
2005-07-19 01:58:37 +02:00
|
|
|
MAN3= CmdWrite.3 Handles.3 Keylist.3 ObjCmdWrite.3 TclXInit.3
|
|
|
|
MANN= TclX.n
|
|
|
|
|
|
|
|
MLINKS= CmdWrite.3 TclCommandWriting.3 \
|
|
|
|
Keylist.3 TclX_NewKeyedListObj.3
|
|
|
|
.for l in Delete Get GetKeys Set TclX_Main TclX_NewKeyedListObj
|
|
|
|
MLINKS+= Keylist.3 TclX_Keylist$l.3
|
|
|
|
.endfor
|
|
|
|
.for l in Alloc Free TblInit TblRelease TblUseCount Walk Xlate
|
|
|
|
MLINKS+= Handles.3 TclX_Handle$l.3
|
|
|
|
.endfor
|
|
|
|
.for l in Tclxcmd_Init TclX_Main Tkx_Init TkX_Main
|
|
|
|
MLINKS+= TclXInit.3 $l.3
|
|
|
|
.endfor
|
1998-10-11 21:51:36 +02:00
|
|
|
|
2005-07-19 01:58:37 +02:00
|
|
|
post-patch:
|
|
|
|
# This man-page is now part of Tcl distribution:
|
|
|
|
${RM} ${WRKSRC:H}/doc/Memory.n
|
1997-09-12 19:16:28 +02:00
|
|
|
|
1998-12-13 09:49:14 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-09-02 23:59:34 +02:00
|
|
|
|
2005-07-19 01:58:37 +02:00
|
|
|
pre-install:
|
2003-03-11 20:18:48 +01:00
|
|
|
# Preventing the help files from being rebuilt over and over:
|
2005-07-19 01:58:37 +02:00
|
|
|
cd ${WRKSRC:H}/doc && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3
|
|
|
|
cd ${WRKSRC:H}/doc && ${INSTALL_MAN} ${MANN} ${PREFIX}/man/mann
|
1997-09-12 19:16:28 +02:00
|
|
|
|
1998-12-13 09:49:14 +01:00
|
|
|
.include <bsd.port.post.mk>
|