freebsd-ports/devel/tclthread/Makefile
Pietro Cerutti d264ff8a07 - STAGE-clean
Reported by:	miwi
2014-01-28 09:58:19 +00:00

55 lines
1.3 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= BSD2CLAUSE
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 install-doc
OPTIONS_DEFINE= GDBM DOCS
OPTIONS_DEFAULT=GDBM
GDBM_DESC= Persistent shared variables using GDBM
PORTDOCS= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGDBM}
LIB_DEPENDS+= libgdbm.so:${PORTSDIR}/databases/gdbm
CONFIGURE_ARGS+=--with-gdbm
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/configure
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for FILE in ChangeLog README
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.for FILE in thread.html tpool.html tsv.html ttrace.html
${INSTALL_DATA} ${WRKSRC}/doc/html/${FILE} ${STAGEDIR}${DOCSDIR}/html
.endfor
.include <bsd.port.mk>