summaryrefslogtreecommitdiff
path: root/devel/ztcl/Makefile
blob: 1091c232c4940d6c478c8a7a21aecd1966322f73 (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
# Created by: Denis Shaposhnikov <dsh@vlink.ru>
# $FreeBSD$

PORTNAME=	ztcl
DISTVERSION=	1.0b4
PORTREVISION=	1
CATEGORIES=	devel tcl
MASTER_SITES=	http://download.gna.org/ztcl/1.0/
DISTNAME=	${PORTNAME}_${DISTVERSION}_src

MAINTAINER=	dsh@vlink.ru
COMMENT=	Zlib extension library for the Tcl

LICENSE=	LGPL21

LIB_DEPENDS=	libtclmore0.so:${PORTSDIR}/devel/tclmore

OPTIONS_DEFINE=	DOCS

USES=		gmake tcl
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
WRKSRC=		${WRKDIR}/${DISTNAME:S/_src$//}

INFO=		${PORTNAME} ${PORTNAME}-zlib

CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} \
		--with-tclinclude=${TCL_INCLUDEDIR} \
		--with-tclmorescripts=${LOCALBASE}/libexec/tclmore \
		--enable-threads
MAKE_ENV+=	STAGEDIR=${STAGEDIR}
CPPFLAGS+=	-I ${LOCALBASE}/include -I ${TCL_INCLUDEDIR}
LDFLAGS+=	-L ${LOCALBASE}/lib

PORTDOCS=	*

post-extract:
	${MV} ${WRKSRC}/doc/zlib.texi ${WRKSRC}/doc/${PORTNAME}-zlib.texi

.include <bsd.port.mk>