summaryrefslogtreecommitdiff
path: root/archivers/tclmkziplib/Makefile
blob: f97150b5b844a6f0083e03c70f7e49e00044ddb1 (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
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$

PORTNAME=	tclmkziplib
PORTVERSION=	1.0
PORTREVISION=	2
CATEGORIES=	archivers tcl
MASTER_SITES=	http://mkextensions.sourceforge.net/
DISTNAME=	mkZiplib${PORTVERSION:S/.//}

MAINTAINER=	tcltk@FreeBSD.org
COMMENT=	GZIP and ZIP support for TCL; dynamically loadable

LICENSE=	BSD

USES+=		tcl
USE_ZIP=	yes

WRKSRC=		${WRKDIR}/mkZiplib${PORTVERSION}
NO_STAGE=	yes

.include <bsd.port.options.mk>

MAKEFILE=	${FILESDIR}/Makefile.bsd
MAKE_ENV=	VERSION=${PORTVERSION:S/.//} \
		TCL_VER=${TCL_VER} \
		TCLCONFIG=${TCL_LIBDIR}/tclConfig.sh

PLIST_SUB+=	VERSION=${PORTVERSION:S/.//}

do-install:
		@${MKDIR} ${PREFIX}/lib/mkZiplib
		@${INSTALL_PROGRAM} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.so ${PREFIX}/lib/mkZiplib
		@${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${PREFIX}/lib/mkZiplib

post-install:
.if ${PORT_OPTIONS:MDOCS}
		@ ${MKDIR} ${DOCSDIR}
		@ ${INSTALL_DATA} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.htm ${DOCSDIR}
.endif

.include <bsd.port.mk>