freebsd-ports/lang/tclX82/Makefile
Mikhail Teterin 4826c77d47 TclX seems abandoned by its original authors, but the maintainers
of TclPro made TclX-8.3 available last year. There is not a whole
lot of changes, and most of them deal with the Windows parts of the
thing, but here is the upgrade 8.3 anyway. Please, test...

I think, it is time to repocopy tclX82 into tclX and get rid of
tclX75, tclX80, and tclX82...
2001-10-24 03:18:59 +00:00

75 lines
2.1 KiB
Makefile

# New ports collection makefile for: tclX
# Date created: 6 February 1996
# Whom: jkh
#
# $FreeBSD$
#
PORTNAME= tclX
PORTVERSION= 8.3
CATEGORIES= lang tcl${TCL_DVER} tk${TCL_DVER}
MASTER_SITES= ftp://tcl.activestate.com/pub/tcl/tclx/
DISTNAME= tclx${PORTVERSION}
MAINTAINER= mi@aldan.algebra.com
.ifdef WITHOUT_X11
LIB_DEPENDS= tcl${TCL_DVER}.1:${PORTSDIR}/lang/tcl${TCL_DVER}
PKGNAMESUFFIX= -nox11
.else
LIB_DEPENDS= tk${TCL_DVER}.1:${PORTSDIR}/x11-toolkits/tk${TCL_DVER}
.endif
TCL_VER?= 8.3
TCL_DVER?= ${TCL_VER:S/.//}
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared \
--with-help=Help \
--with-tcl="${LOCALBASE}/lib/tcl${TCL_VER}" \
--with-tk="${LOCALBASE}/lib/tk${TCL_VER}"
PLIST_SUB= TCLX_LONG_VER=8.3 TCLX_SHORT_VER=83
.ifdef WITHOUT_X11
CONFIGURE_ARGS+=--enable-tk=NO
PLIST_SUB+= X11='@comment '
.else
CONFIGURE_ARGS+=--with-tk="${LOCALBASE}/lib/tk${TCL_VER}"
PLIST_SUB+= X11=''
.endif
MAKE_ENV= LDFLAGS="-lm"
MAN3= CmdWrite.3 Handles.3 Keylist.3 ObjCmdWrite.3 TclXInit.3 \
TclCommandWriting.3 \
TclX_KeyedListDelete.3 TclX_KeyedListGet.3 TclX_KeyedListGetKeys.3 \
TclX_KeyedListSet.3 TclX_Main.3 TclX_NewKeyedListObj.3 \
Tcl_HandleAlloc.3 Tcl_HandleFree.3 Tcl_HandleTblInit.3 \
Tcl_HandleTblRelease.3 Tcl_HandleTblUseCount.3 Tcl_HandleWalk.3 \
Tcl_HandleXlate.3 Tclx_Init.3 Tclxcmd_Init.3 TkX_Main.3 Tkx_Init.3
MANN= Memory.n TclX.n Tcl_DisplayMemory.n Tcl_InitMemory.n \
Tcl_ValidateAllMemory.n ckalloc.n ckfree.n memory.n
#post-build:
# cd ${WRKSRC}/../tcl/unix && ${MAKE} buildhelp
#.ifndef WITHOUT_X11
# cd ${WRKSRC}/../tk/unix && ${MAKE} buildhelp
#.endif
.include <bsd.port.pre.mk>
post-install:
${INSTALL_MAN} ${WRKSRC}/../doc/CmdWrite.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/../doc/Handles.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/../doc/Keylist.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/../doc/ObjCmdWrite.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/../doc/TclXInit.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/../doc/Memory.n ${PREFIX}/man/mann
${INSTALL_MAN} ${WRKSRC}/../doc/TclX.n ${PREFIX}/man/mann
.include <bsd.port.post.mk>