diff options
Diffstat (limited to 'lang/tcl85/Makefile')
-rw-r--r-- | lang/tcl85/Makefile | 55 |
1 files changed, 13 insertions, 42 deletions
diff --git a/lang/tcl85/Makefile b/lang/tcl85/Makefile index c38c86636237..2d44a1c40390 100644 --- a/lang/tcl85/Makefile +++ b/lang/tcl85/Makefile @@ -2,12 +2,11 @@ # $FreeBSD$ PORTNAME= tcl -PORTVERSION= 8.5.18 -PORTREVISION= 1 +PORTVERSION= 8.5.19 CATEGORIES= lang MASTER_SITES= TCLTK/tcl8_5 \ SF/tcl/Tcl/${PORTVERSION} -PKGNAMESUFFIX= ${PORTVERSION:R:S/.//} +PKGNAMESUFFIX= ${SHORT_TCL_VER} DISTNAME= ${PORTNAME}${PORTVERSION}-src MAINTAINER= tcltk@FreeBSD.org @@ -23,10 +22,12 @@ OPTIONS_DEFAULT=MODULES THREADS TCLMAN_DESC= Install Tcl function manpages TZDATA_DESC= Install Tcl timezone data MODULES_DESC= Install Tcl common modules +OPTIONS_SUB= yes -WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}/unix +WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//:S/rc1//}/unix ALL_TARGET= all INSTALL_TARGET= install install-libraries +TEST_TARGET= do-test USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -37,45 +38,19 @@ CONFIGURE_ENV= PORTSDIR=${PORTSDIR} TCL_VER= 8.5 SHORT_TCL_VER= ${TCL_VER:S/8./8/} -MAN_SUFFIX= ${PORTNAME}${PKGNAMESUFFIX} +MAN_SUFFIX= ${PORTNAME}${SHORT_TCL_VER} MAKE_ENV= SHORT_TCL_VER=${SHORT_TCL_VER} \ MAN_SUFFIX=.${MAN_SUFFIX} \ - LANG=C LC_ALL=C # LANG=C is required for some of UTF-using tests + LANG=C LC_ALL=C PLIST_SUB= TCL_VER=${TCL_VER} \ SHORT_TCL_VER=${SHORT_TCL_VER} -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MTCLMAN} -INSTALL_TARGET+=install-doc -PLIST_SUB+= MAN="" -.else -PLIST_SUB+= MAN="@comment " -.endif - -.if ${PORT_OPTIONS:MTHREADS} -CONFIGURE_ARGS+= --enable-threads -.else -CONFIGURE_ARGS+= --disable-threads -.endif - -.if ${PORT_OPTIONS:MMODULES} -INSTALL_TARGET+=install-tm -PLIST_SUB+= MODULES="" -.else -PLIST_SUB+= MODULES="@comment " -.endif - -.if ${PORT_OPTIONS:MTZDATA} -PLIST_SUB+= TZDATA="" -CONFIGURE_ARGS+=--with-tzdata -INSTALL_TARGET+=install-tzdata -.else -PLIST_SUB+= TZDATA="@comment " -CONFIGURE_ARGS+=--without-tzdata -.endif +TCLMAN_VARS= INSTALL_TARGET+=install-doc +MODULES_VARS= INSTALL_TARGET+=install-tm +THREADS_CONFIGURE_ENABLE= threads +TZDATA_CONFIGURE_WITH= tzdata post-patch: ${REINPLACE_CMD} -e \ @@ -90,11 +65,7 @@ post-configure: -e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,' \ -e 's,^COMPAT_OBJS.*,,' ${WRKSRC}/Makefile -post-install: - ${LN} -fs libtcl${SHORT_TCL_VER}.so.1.0 \ - ${STAGEDIR}${PREFIX}/lib/libtcl${SHORT_TCL_VER}.so.1 - -regression-test: build - cd ${WRKSRC} && LC_ALL=C ${MAKE} test +do-test: + ${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} test .include <bsd.port.mk> |