9e5632dd66
the libtoolX ports instead of the one included with each port. Ports that set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of the included version. To restore previous behavior, use the new macro, USE_INC_LIBTOOL_VER. Both macros accept the same argument: a libtool version. For example, to use the ports version of libtool-1.5, add the following to your Makefile: USE_LIBTOOL_VER= 15 To use the included version of libtool with extra hacks provided by libtool-1.5, add the following to your Makefile: USE_INC_LIBTOOL_VER= 15 With this change, ports that had to add additional libtool hacks to prevent .la files from being installed or to fix certain threading issues can now delete those hacks (after appropriate testing, of course). PR: 63944 Based on work by:eik and marcus Approved by: ade (autotools maintainer) Tested by: kris on pointyhat Bound to be hidden problems: You bet
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# New ports collection makefile for: tclreadline
|
|
# Date created: 21 September 1999
|
|
# Whom: darius@dons.net.au
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tclreadline
|
|
PORTVERSION= 2.1.0
|
|
CATEGORIES= devel tcl80 tcl82
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= tclreadline
|
|
|
|
MAINTAINER= darius@dons.net.au
|
|
COMMENT= GNU readline for TCL
|
|
|
|
USE_INC_LIBTOOL_VER= 13
|
|
INSTALLS_SHLIB= yes
|
|
MANN= tclreadline.n
|
|
|
|
PLIST_SUB+= VERSION="${PORTVERSION}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (!defined(WITH_TCL80) && !defined(WITH_TCL82))
|
|
.if exists(${PREFIX}/bin/tclsh8.0)
|
|
WITH_TCL80= yes
|
|
.else
|
|
WITH_TCL82= yes
|
|
.endif
|
|
.endif
|
|
|
|
.if defined(WITH_TCL80)
|
|
LIB_DEPENDS= tcl80.1:${PORTSDIR}/lang/tcl80
|
|
CONFIGURE_ARGS= --with-tcl=${PREFIX}/lib/tcl8.0 --with-tcl-includes=${PREFIX}/include/tcl8.0
|
|
TCLVERMSG= "Building for Tcl 8.0"
|
|
.endif
|
|
|
|
.if defined(WITH_TCL82)
|
|
LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82
|
|
CONFIGURE_ARGS= --with-tcl=${PREFIX}/lib/tcl8.2 --with-tcl-includes=${PREFIX}/include/tcl8.2
|
|
TCLVERMSG= "Building for Tcl 8.2"
|
|
.endif
|
|
|
|
pre-fetch:
|
|
@${ECHO} ${TCLVERMSG}
|
|
@${ECHO} "Define WITH_TCL80, or WITH_TCL82"
|
|
@${ECHO} "To compile against a different version of TCL"
|
|
|
|
.include <bsd.port.post.mk>
|