blob: a3b3c040be705545f14f2cd1162bb7b6d1985934 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: tclthread
# Date created: Mon Apr 23 10:55:00 CET 2007
# Whom: Martin Matuska <mm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= thread
PORTVERSION= 2.6.7
PORTREVISION= 1
CATEGORIES= devel tcl
MASTER_SITES= SF/tcl/Thread%20Extension/${PORTVERSION}
PKGNAMEPREFIX= tcl
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Thread extension for Tcl
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/license.terms
USE_TCL= 84+
USE_TCL_THREADS= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
GNU_CONFIGURE= yes
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= include GDBM support
.include <bsd.port.pre.mk>
CONFIGURE_ARGS+= --with-tcl="${TCL_LIBDIR}"
.if ${PORT_OPTIONS:MGDBM}
LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm
CONFIGURE_ARGS+= --with-gdbm
CONFIGURE_ENV+= gincdir="${LOCALBASE}/include" glibdir="${LOCALBASE}/lib"
.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 license.terms
${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.post.mk>
|