summaryrefslogtreecommitdiffstats
path: root/devel/tcl-memchan/Makefile
blob: 2d8fe6795d603f9721fe7629fedde7f222e486a0 (plain)
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
# New ports collection makefile for:	TclTrf
# Date created:			May 22, 2000
# Whom:				Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD$
#

PORTNAME=	memchan
PORTVERSION=	2.1p3
CATEGORIES=	devel tcl83
MASTER_SITES=	http://www.oche.de/~akupries/soft/memchan/download/
PKGNAMEPREFIX=	tcl-
DISTNAME=	memchan${PORTVERSION}

MAINTAINER=	mi@aldan.algebra.com

BUILD_DEPENDS=	tclsh${TCLV}:${PORTSDIR}/lang/tcl${TCLVND}
.if !exists(/usr/bin/bzip2)
LIB_DEPENDS=	bz2.1:${PORTSDIR}/archivers/bzip2
.endif

USE_BZIP2=	yes
USE_OPENSSL=	yes

WRKSRC=		${WRKDIR}/${DISTNAME}/unix

GNU_CONFIGURE=	yes
PLIST_SUB+=	TCLV=${TCLV} TCLVND=${TCLVND}
CONFIGURE_ARGS=	--with-tcl-include-dir=${PREFIX}/include/tcl${TCLV} \
		--with-tcl-lib-dir=${PREFIX}/lib/tcl${TCLV}

#ALL_TARGET=	library

TCLV?=		8.3
TCLVND=		${TCLV:S/.//}
DDIR=		${PREFIX}/lib/tcl${TCLV}/Trf

do-install:
	${MKDIR} ${PREFIX}/lib/tcl${TCLV}/memchan
	${INSTALL_DATA} ${WRKSRC}/libmemchan.so.1 ${PREFIX}/lib/
	${SED} 's@%%PREFIX%%@${PREFIX}@g' < ${FILESDIR}/pkgIndex.tcl \
		> ${PREFIX}/lib/tcl${TCLV}/memchan/pkgIndex.tcl
.ifndef(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/memchan
	${CP} -pR ${WRKSRC}/../doc/html/* ${PREFIX}/share/doc/memchan/
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud