1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/devel/tclthread/Makefile

63 lines
1.4 KiB
Makefile

# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
PORTNAME= thread
PORTVERSION= 2.7.0
CATEGORIES= devel
MASTER_SITES= SF/tcl/Tcl/8.6.0
PKGNAMEPREFIX= tcl
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= tcltk@FreeBSD.org
COMMENT= Scripting level thread extension for Tcl
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/license.terms
USES+= tcl
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} \
--exec-prefix=${PREFIX}
USE_LDCONFIG= ${PREFIX}/lib/thread${PORTVERSION}
PLIST_SUB+= VERSION="${PORTVERSION}"
INSTALL_TARGET= install-binaries install-libraries
.if !defined(NO_INSTALL_MANPAGES)
MANN= thread.n tpool.n tsv.n ttrace.n
INSTALL_TARGET+=install-doc
.endif
OPTIONS_DEFINE= GDBM DOCS
OPTIONS_DEFAULT=GDBM
GDBM_DESC= Persistent shared variables using GDBM
PORTDOCS= *
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGDBM}
LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm
CONFIGURE_ARGS+=--with-gdbm
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/configure
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/html
.for FILE in ChangeLog README
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.for FILE in thread.html tpool.html tsv.html ttrace.html
${INSTALL_DATA} ${WRKSRC}/doc/html/${FILE} ${DOCSDIR}/html
.endfor
.endif
.include <bsd.port.mk>