aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/tclmkziplib/Makefile
blob: 818cb618c0b5db29a2d1872431075dd5dcfe39cf (plain) (blame)
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
CATEGORIES= archivers tcl83 tcl84
MASTER_SITES=   http://mkextensions.sourceforge.net/
DISTNAME=   mkZiplib${PORTVERSION:S/.//}

MAINTAINER= mm@FreeBSD.org
COMMENT=    GZIP and ZIP support for TCL; dynamicly loadable

TCL_VER?=   8.4
TCLVND=     ${TCL_VER:S/.//}

LIB_DEPENDS+=   tcl84:${PORTSDIR}/lang/tcl${TCLVND}

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

TCLCONFIG?= ${LOCALBASE}/lib/tcl${TCL_VER}/tclConfig.sh

MAKEFILE=   ${FILESDIR}/Makefile.bsd
MAKE_ENV=   LOCALBASE=${LOCALBASE} \
        VERSION=${PORTVERSION:S/.//} \
        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.mk>