Date: Thu, 4 Jan 2007 14:15:52 +0100 (CET) From: Martin Matuska <martin@matuska.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/107519: [NEW PORT] archivers/tclmkziplib 1.0 Message-ID: <20070104131552.378CD3F42E@mail.vx.sk> Resent-Message-ID: <200701041350.l04DoTRD026132@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 107519 >Category: ports >Synopsis: [NEW PORT] archivers/tclmkziplib 1.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 04 13:50:29 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Martin Matuska >Release: FreeBSD 6.1-RELEASE-p10 amd64 >Organization: >Environment: System: FreeBSD 6.1-RELEASE-p10 i386 and amd64 >Description: GZIP and ZIP extension for TCL >How-To-Repeat: >Fix: diff -Nbur archivers/tclmkziplib.orig/Makefile archivers/tclmkziplib/Makefile --- archivers/tclmkziplib.orig/Makefile Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/Makefile Thu Jan 4 14:14:37 2007 @@ -0,0 +1,49 @@ +# 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> diff -Nbur archivers/tclmkziplib.orig/distinfo archivers/tclmkziplib/distinfo --- archivers/tclmkziplib.orig/distinfo Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/distinfo Thu Jan 4 11:55:36 2007 @@ -0,0 +1,3 @@ +MD5 (mkZiplib10.zip) = d7bbe5a2fb62f7726dd2a59164dc08be +SHA256 (mkZiplib10.zip) = bc1f43e04702fb0157365ee5ff7e75878908ae9e357bd0b6deda75bc8de6d7c1 +SIZE (mkZiplib10.zip) = 97703 diff -Nbur archivers/tclmkziplib.orig/files/Makefile.bsd archivers/tclmkziplib/files/Makefile.bsd --- archivers/tclmkziplib.orig/files/Makefile.bsd Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/files/Makefile.bsd Thu Jan 4 13:31:20 2007 @@ -0,0 +1,30 @@ +PACKAGE = mkZiplib +VERSION ?= 10 +SHLIB_NAME = ${PACKAGE}${VERSION}.so + +SRCS = unzip.c zip.c mkZiplib${VERSION}.c + +LOCALBASE ?=/usr/local +TCL_VER ?=8.4 + +SOBJS= ${SRCS:N*.h:R:S/$/.o/} + +TCLCONFIG ?=${LOCALBASE}/lib/tcl${TCL_VER}/tclConfig.sh + +TCL_SHLIB_CFLAGS!= . ${TCLCONFIG}; \ + echo $$TCL_SHLIB_CFLAGS +TCL_INCLUDE_SPEC!= . ${TCLCONFIG}; \ + echo $$TCL_INCLUDE_SPEC +TCL_STUB_LIB_SPEC!= . ${TCLCONFIG}; \ + echo $$TCL_STUB_LIB_SPEC + +CFLAGS += ${TCL_SHLIB_CFLAGS} ${TCL_INCLUDE_SPEC} +LDFLAGS += ${TCL_STUB_LIB_SPEC} -lz + +all: ${SHLIB_NAME} + +${SHLIB_NAME}: ${SOBJS} + ${CC} ${LDFLAGS} -shared -o ${.TARGET} `lorder ${SOBJS} | tsort -q` ${LDADD} + +clean: + @rm -f ${SHLIB_NAME} ${SOBJS} diff -Nbur archivers/tclmkziplib.orig/pkg-descr archivers/tclmkziplib/pkg-descr --- archivers/tclmkziplib.orig/pkg-descr Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/pkg-descr Thu Jan 4 13:18:54 2007 @@ -0,0 +1,10 @@ +mkZiplib is a wrapper for Zlib 1.1.3 and Minizip 0.15. + +It is free, very portable and works for virtually any computer hardware +and operating system. With mkZiplib you can compress/decompress data and +work with .gz and .zip files from within Tcl. + +WWW: http://mkextensions.sourceforge.net + +- Martin Matuska +martin@matuska.org diff -Nbur archivers/tclmkziplib.orig/pkg-plist archivers/tclmkziplib/pkg-plist --- archivers/tclmkziplib.orig/pkg-plist Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/pkg-plist Thu Jan 4 13:37:14 2007 @@ -0,0 +1,5 @@ +lib/mkZiplib/pkgIndex.tcl +lib/mkZiplib/mkZiplib%%VERSION%%.so +%%PORTDOCS%%%%DOCSDIR%%/mkZiplib10.htm +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm lib/mkZiplib >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070104131552.378CD3F42E>