blob: 51f46c4e16486406a5165c7efdb5b847806315e8 (
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: tclmkziplib
# Date created: 4 Jan 2007
# Whom: 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= mm@FreeBSD.org
COMMENT= GZIP and ZIP support for TCL; dynamicly loadable
USE_TCL= 84+
WRKSRC= ${WRKDIR}/mkZiplib${PORTVERSION}
USE_ZIP= yes
.include <bsd.port.pre.mk>
TCLCONFIG?= ${LOCALBASE}/lib/tcl${TCL_VER}/tclConfig.sh
MAKEFILE= ${FILESDIR}/Makefile.bsd
MAKE_ENV= VERSION=${PORTVERSION:S/.//} \
TCL_VER=${TCL_VER} \
TCLCONFIG=${TCLCONFIG}
PLIST_SUB+= VERSION=${PORTVERSION:S/.//}
pre-build:
@${TEST} -f ${TCLCONFIG} || ( echo "tclConfig.sh is required to build mkZiplib"; exit 1 )
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 !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
@ ${INSTALL_DATA} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.htm ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|