Line 0
Link Here
|
|
|
1 |
# New ports collection makefile for: tclmkziplib |
2 |
# Date created: 4 Jan 2007 |
3 |
# Whom: martin@matuska.org |
4 |
# |
5 |
# $FreeBSD$ |
6 |
# |
7 |
|
8 |
PORTNAME= tclmkziplib |
9 |
PORTVERSION= 1.0 |
10 |
CATEGORIES= archivers tcl83 tcl84 |
11 |
MASTER_SITES= http://mkextensions.sourceforge.net/ |
12 |
DISTNAME= mkZiplib${PORTVERSION:S/.//} |
13 |
|
14 |
MAINTAINER= martin@matuska.org |
15 |
COMMENT= GZIP and ZIP support for TCL; dynamicly loadable |
16 |
|
17 |
TCL_VER?= 8.4 |
18 |
TCLVND= ${TCL_VER:S/.//} |
19 |
|
20 |
LIB_DEPENDS+= tcl84:${PORTSDIR}/lang/tcl${TCLVND} |
21 |
|
22 |
WRKSRC= ${WRKDIR}/mkZiplib${PORTVERSION} |
23 |
USE_ZIP= yes |
24 |
|
25 |
TCLCONFIG?= ${LOCALBASE}/lib/tcl${TCL_VER}/tclConfig.sh |
26 |
|
27 |
MAKEFILE= ${FILESDIR}/Makefile.bsd |
28 |
MAKE_ENV= LOCALBASE=${LOCALBASE} \ |
29 |
VERSION=${PORTVERSION:S/.//} \ |
30 |
TCLCONFIG=${TCLCONFIG} |
31 |
|
32 |
PLIST_SUB+= VERSION=${PORTVERSION:S/.//} |
33 |
|
34 |
pre-build: |
35 |
@${TEST} -f ${TCLCONFIG} || ( echo "tclConfig.sh is required to build mkZiplib"; exit 1 ) |
36 |
|
37 |
do-install: |
38 |
@${MKDIR} ${PREFIX}/lib/mkZiplib |
39 |
@${INSTALL_PROGRAM} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.so ${PREFIX}/lib/mkZiplib |
40 |
@${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${PREFIX}/lib/mkZiplib |
41 |
|
42 |
post-install: |
43 |
.if !defined(NOPORTDOCS) |
44 |
@ ${MKDIR} ${DOCSDIR} |
45 |
@ ${INSTALL_DATA} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.htm ${DOCSDIR} |
46 |
.endif |
47 |
|
48 |
|
49 |
.include <bsd.port.mk> |