freebsd-ports/archivers/tclmkziplib/Makefile

42 lines
1,001 B
Makefile

# 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>