View | Details | Raw Unified | Return to bug 107519
Collapse All | Expand All

(-)archivers/tclmkziplib/Makefile (+49 lines)
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>
(-)archivers/tclmkziplib/distinfo (+3 lines)
Line 0 Link Here
1
MD5 (mkZiplib10.zip) = d7bbe5a2fb62f7726dd2a59164dc08be
2
SHA256 (mkZiplib10.zip) = bc1f43e04702fb0157365ee5ff7e75878908ae9e357bd0b6deda75bc8de6d7c1
3
SIZE (mkZiplib10.zip) = 97703
(-)archivers/tclmkziplib/files/Makefile.bsd (+30 lines)
Line 0 Link Here
1
PACKAGE		= mkZiplib
2
VERSION		?= 10
3
SHLIB_NAME	= ${PACKAGE}${VERSION}.so
4
5
SRCS		= unzip.c zip.c mkZiplib${VERSION}.c
6
7
LOCALBASE	?=/usr/local
8
TCL_VER		?=8.4
9
10
SOBJS=		${SRCS:N*.h:R:S/$/.o/}
11
12
TCLCONFIG	?=${LOCALBASE}/lib/tcl${TCL_VER}/tclConfig.sh
13
14
TCL_SHLIB_CFLAGS!=	. ${TCLCONFIG}; \
15
		echo $$TCL_SHLIB_CFLAGS
16
TCL_INCLUDE_SPEC!=	. ${TCLCONFIG}; \
17
		echo $$TCL_INCLUDE_SPEC
18
TCL_STUB_LIB_SPEC!=     . ${TCLCONFIG}; \
19
		echo $$TCL_STUB_LIB_SPEC
20
21
CFLAGS		+= ${TCL_SHLIB_CFLAGS} ${TCL_INCLUDE_SPEC}
22
LDFLAGS		+= ${TCL_STUB_LIB_SPEC} -lz
23
24
all: ${SHLIB_NAME}
25
26
${SHLIB_NAME}: ${SOBJS}
27
	${CC} ${LDFLAGS} -shared -o ${.TARGET} `lorder ${SOBJS} | tsort -q` ${LDADD}
28
29
clean:
30
	@rm -f ${SHLIB_NAME} ${SOBJS}
(-)archivers/tclmkziplib/pkg-descr (+10 lines)
Line 0 Link Here
1
mkZiplib is a wrapper for Zlib 1.1.3 and Minizip 0.15. 
2
3
It is free, very portable and works for virtually any computer hardware 
4
and operating system. With mkZiplib you can compress/decompress data and 
5
work with .gz and .zip files from within Tcl. 
6
7
WWW: http://mkextensions.sourceforge.net
8
9
- Martin Matuska
10
martin@matuska.org
(-)archivers/tclmkziplib/pkg-plist (+5 lines)
Line 0 Link Here
1
lib/mkZiplib/pkgIndex.tcl
2
lib/mkZiplib/mkZiplib%%VERSION%%.so
3
%%PORTDOCS%%%%DOCSDIR%%/mkZiplib10.htm
4
%%PORTDOCS%%@dirrm %%DOCSDIR%%
5
@dirrm lib/mkZiplib

Return to bug 107519