ports/86486: Update devel/tclreadline port for newer version of Tcl

Daniel O'Connor doconnor at gsoft.com.au
Fri Sep 23 06:00:35 UTC 2005

>Number:         86486
>Category:       ports
>Synopsis:       Update devel/tclreadline port for newer version of Tcl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 23 06:00:33 GMT 2005
>Originator:     Daniel O'Connor
>Release:        FreeBSD 4.9-STABLE i386
System: FreeBSD cain.gsoft.com.au 4.9-STABLE FreeBSD 4.9-STABLE #15: Fri Nov 28 11:47:09 CST 2003 doconnor at cain.gsoft.com.au:/usr/obj/usr/src/sys/CAIN i386

--- /usr/ports/devel/tclreadline/Makefile       Sat Jul 10 03:12:20 2004
+++ Makefile    Fri Sep 23 15:27:04 2005
@@ -7,7 +7,7 @@

 PORTNAME=      tclreadline
-CATEGORIES=    devel tcl80 tcl82
+CATEGORIES=    devel tcl80 tcl82 tcl83 tcl84
 MASTER_SITE_SUBDIR=    tclreadline

@@ -22,11 +22,24 @@

 .include <bsd.port.pre.mk>

-.if (!defined(WITH_TCL80) && !defined(WITH_TCL82))
+# Try and guess what version of Tcl to build against
+.if (!defined(WITH_TCL80) && !defined(WITH_TCL82) && !defined(WITH_TCL83) && !defined(WITH_TCL84))
+.if exists(${PREFIX}/bin/tclsh8.4)
+WITH_TCL84=    yes
+.if exists(${PREFIX}/bin/tclsh8.3)
+WITH_TCL83=    yes
+.if exists(${PREFIX}/bin/tclsh8.2)
+WITH_TCL82=    yes
 .if exists(${PREFIX}/bin/tclsh8.0)
 WITH_TCL80=    yes
-WITH_TCL82=    yes
+WITH_TCL84=    yes

@@ -42,9 +55,22 @@
 TCLVERMSG=     "Building for Tcl 8.2"

+.if defined(WITH_TCL83)
+LIB_DEPENDS=   tcl83:${PORTSDIR}/lang/tcl83
+CONFIGURE_ARGS=        --with-tcl=${PREFIX}/lib/tcl8.3 --with-tcl-includes=${PREFIX}/include/tcl8.3
+TCLVERMSG=     "Building for Tcl 8.3"
+.if defined(WITH_TCL84)
+LIB_DEPENDS=   tcl84:${PORTSDIR}/lang/tcl84
+CONFIGURE_ARGS=        --with-tcl=${PREFIX}/lib/tcl8.4 --with-tcl-includes=${PREFIX}/include/tcl8.4
+TCLVERMSG=     "Building for Tcl 8.4"
        @${ECHO} ${TCLVERMSG}
-       @${ECHO} "Define WITH_TCL80, or WITH_TCL82"
+       @${ECHO} "Define WITH_TCL80, WITH_TCL82, WITH_TCL83 or WITH_TCL84"
        @${ECHO} "To compile against a different version of TCL"

 .include <bsd.port.post.mk>


More information about the freebsd-ports-bugs mailing list