aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-01-06 10:08:35 +0800
committerrafan <rafan@FreeBSD.org>2007-01-06 10:08:35 +0800
commite27c081328ac9f8709cb92ffef621862452bb933 (patch)
tree040c964d50a9f117d8a5a4a0688d42716bddb9ab
parent2c30773456e709205452d094703b91f918ad60a7 (diff)
downloadfreebsd-ports-gnome-e27c081328ac9f8709cb92ffef621862452bb933.tar.gz
freebsd-ports-gnome-e27c081328ac9f8709cb92ffef621862452bb933.tar.zst
freebsd-ports-gnome-e27c081328ac9f8709cb92ffef621862452bb933.zip
Add tclmkziplib 1.0, GZIP and ZIP support for TCL; dynamicly loadable.
PR: ports/107519 Submitted by: martin at matuska.org
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/tclmkziplib/Makefile48
-rw-r--r--archivers/tclmkziplib/distinfo3
-rw-r--r--archivers/tclmkziplib/files/Makefile.bsd30
-rw-r--r--archivers/tclmkziplib/pkg-descr10
-rw-r--r--archivers/tclmkziplib/pkg-plist5
6 files changed, 97 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 6b0081010deb..0b7ccc6b4436 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -118,6 +118,7 @@
SUBDIR += stuffit
SUBDIR += szip
SUBDIR += tardy
+ SUBDIR += tclmkziplib
SUBDIR += torrentzip
SUBDIR += ucl
SUBDIR += unace
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>
diff --git a/archivers/tclmkziplib/distinfo b/archivers/tclmkziplib/distinfo
new file mode 100644
index 000000000000..fc6b69eb0b94
--- /dev/null
+++ b/archivers/tclmkziplib/distinfo
@@ -0,0 +1,3 @@
+MD5 (mkZiplib10.zip) = d7bbe5a2fb62f7726dd2a59164dc08be
+SHA256 (mkZiplib10.zip) = bc1f43e04702fb0157365ee5ff7e75878908ae9e357bd0b6deda75bc8de6d7c1
+SIZE (mkZiplib10.zip) = 97703
diff --git a/archivers/tclmkziplib/files/Makefile.bsd b/archivers/tclmkziplib/files/Makefile.bsd
new file mode 100644
index 000000000000..3da8a9b6a6b3
--- /dev/null
+++ b/archivers/tclmkziplib/files/Makefile.bsd
@@ -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 --git a/archivers/tclmkziplib/pkg-descr b/archivers/tclmkziplib/pkg-descr
new file mode 100644
index 000000000000..e87e1573c6f9
--- /dev/null
+++ b/archivers/tclmkziplib/pkg-descr
@@ -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 --git a/archivers/tclmkziplib/pkg-plist b/archivers/tclmkziplib/pkg-plist
new file mode 100644
index 000000000000..b3745c356812
--- /dev/null
+++ b/archivers/tclmkziplib/pkg-plist
@@ -0,0 +1,5 @@
+lib/mkZiplib/pkgIndex.tcl
+lib/mkZiplib/mkZiplib%%VERSION%%.so
+%%PORTDOCS%%%%DOCSDIR%%/mkZiplib10.htm
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm lib/mkZiplib