828733bdb6
MODULES conflict with WITHOUT_MODULES from make.conf (see bug 226557). Moreover, they don't require any additional dependencies and their cost in terms of size is small wrt the total size of these ports. PR: 226557
91 lines
2.3 KiB
Makefile
91 lines
2.3 KiB
Makefile
# Created by: Martin Matuska <mm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tcl
|
|
PORTVERSION= 8.6.8
|
|
PORTREVISION= 0
|
|
CATEGORIES= lang
|
|
MASTER_SITES= SF/tcl/Tcl/${PORTVERSION} \
|
|
TCLTK/tcl8_6
|
|
PKGNAMESUFFIX= ${PORTVERSION:R:S/.//}
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}-src
|
|
|
|
MAINTAINER= tcltk@FreeBSD.org
|
|
COMMENT= Tool Command Language
|
|
|
|
LICENSE= TclTk
|
|
LICENSE_NAME= Tcl/Tk License
|
|
LICENSE_FILE= ${WRKSRC}/../license.terms
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
OPTIONS_DEFINE= TCLMAN TZDATA THREADS DEBUG
|
|
OPTIONS_DEFINE_amd64= DTRACE
|
|
OPTIONS_DEFAULT=THREADS
|
|
OPTIONS_DEFAULT_amd64= DTRACE
|
|
TCLMAN_DESC= Install Tcl function manpages
|
|
TZDATA_DESC= Install Tcl timezone data
|
|
OPTIONS_SUB= yes
|
|
|
|
.if !exists(/usr/sbin/dtrace)
|
|
OPTIONS_EXCLUDE+= DTRACE
|
|
.endif
|
|
|
|
OPTIONS_EXCLUDE_FreeBSD_10= DTRACE
|
|
|
|
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}/unix
|
|
|
|
ALL_TARGET= all
|
|
INSTALL_TARGET= install-strip install-libraries install-modules
|
|
TEST_TARGET= test-tcl
|
|
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-shared \
|
|
--enable-man-suffix=.${MAN_SUFFIX} \
|
|
--includedir=${PREFIX}/include/tcl${TCL_VER}
|
|
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
|
|
|
|
TCL_VER= ${PORTVERSION:R}
|
|
SHORT_TCL_VER= ${TCL_VER:S/.//}
|
|
MAN_SUFFIX= ${PKGBASE}
|
|
|
|
MAKE_ENV= SHORT_TCL_VER=${SHORT_TCL_VER} \
|
|
MAN_SUFFIX=.${MAN_SUFFIX}
|
|
|
|
PLIST_SUB= TCL_VER=${TCL_VER} \
|
|
SHORT_TCL_VER=${SHORT_TCL_VER}
|
|
|
|
TCLMAN_INSTALL_TARGET= install-doc
|
|
TZDATA_INSTALL_TARGET= install-tzdata
|
|
THREADS_CONFIGURE_ENABLE= threads
|
|
DEBUG_CONFIGURE_ENABLE= symbols
|
|
DTRACE_CONFIGURE_ENABLE= dtrace
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDTRACE}
|
|
PLIST_SUB+= DTRACE=""
|
|
.else
|
|
PLIST_SUB+= DTRACE="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e \
|
|
's|@TCL_BUILD_LIB_SPEC@|@TCL_LIB_SPEC@|; \
|
|
s|@TCL_BUILD_STUB_LIB_SPEC@|@TCL_STUB_LIB_SPEC@|; \
|
|
s|@TCL_BUILD_STUB_LIB_PATH@|@TCL_STUB_LIB_PATH@|; \
|
|
s|@TCL_SRC_DIR@|${PREFIX}/include/tcl${TCL_VER}|' \
|
|
${PATCH_WRKSRC}/unix/tclConfig.sh.in
|
|
|
|
post-patch-TCLMAN-off:
|
|
@${FIND} ${PATCH_WRKSRC}/pkgs -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \
|
|
-e '/^install:/s|install-doc||'
|
|
|
|
post-configure:
|
|
${REINPLACE_CMD} \
|
|
-e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,' \
|
|
-e 's,^COMPAT_OBJS.*,,' ${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.mk>
|