diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-01-06 02:08:35 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-01-06 02:08:35 +0000 |
commit | 637b66dc65582042cb063628ff72c13acf36dc75 (patch) | |
tree | 8e7a604d434115a92cc60a621d4582ee26e054ce /archivers/tclmkziplib/Makefile | |
parent | e3b018426a99909634fa6d2b77e4f57f0f7526fe (diff) | |
download | ports-637b66dc65582042cb063628ff72c13acf36dc75.tar.gz ports-637b66dc65582042cb063628ff72c13acf36dc75.zip |
Notes
Diffstat (limited to 'archivers/tclmkziplib/Makefile')
-rw-r--r-- | archivers/tclmkziplib/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/archivers/tclmkziplib/Makefile b/archivers/tclmkziplib/Makefile new file mode 100644 index 000000000000..4c7c482ed182 --- /dev/null +++ b/archivers/tclmkziplib/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: tclmkziplib +# Date created: 4 Jan 2007 +# Whom: martin@matuska.org +# +# $FreeBSD$ +# + +PORTNAME= tclmkziplib +PORTVERSION= 1.0 +CATEGORIES= archivers tcl83 tcl84 +MASTER_SITES= http://mkextensions.sourceforge.net/ +DISTNAME= mkZiplib${PORTVERSION:S/.//} + +MAINTAINER= martin@matuska.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> |