Fix: PORTNAME= tclreadline PORTVERSION= 2.1.0 -CATEGORIES= devel tcl80 tcl82 +CATEGORIES= devel tcl80 tcl82 tcl83 tcl84 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} 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 +.else +.if exists(${PREFIX}/bin/tclsh8.3) +WITH_TCL83= yes +.else +.if exists(${PREFIX}/bin/tclsh8.2) +WITH_TCL82= yes +.else .if exists(${PREFIX}/bin/tclsh8.0) WITH_TCL80= yes .else -WITH_TCL82= yes +WITH_TCL84= yes +.endif +.endif +.endif .endif .endif @@ -42,9 +55,22 @@ TCLVERMSG= "Building for Tcl 8.2" .endif +.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" +.endif + +.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" +.endif + + pre-fetch: @${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>--xmrAozbflgjTe4TfuB3pXKWk6ZHqIiRDPfRMUwYmIhoFgzql Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- /usr/ports/devel/tclreadline/Makefile Sat Jul 10 03:12:20 2004 +++ Makefile Fri Sep 23 15:27:04 2005 @@ -7,7 +7,7 @@
State Changed From-To: open->feedback Do you know if the static library is useful at all? Also, would using the devel/readline-port on 4.x provide additional functionality?
Responsible Changed From-To: freebsd-ports-bugs->vs Handle.
Some mailer mangled the whitespacing, could please send me the patch in a private mail? Volker
State Changed From-To: feedback->closed Committed, thanks!