summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zlib/Makefile38
-rw-r--r--zlib/libz1.p5m11
-rw-r--r--zlib/mapfile111
-rw-r--r--zlib/zlib.license38
-rw-r--r--zlib/zlib.p5m18
5 files changed, 216 insertions, 0 deletions
diff --git a/zlib/Makefile b/zlib/Makefile
new file mode 100644
index 0000000..8f55697
--- /dev/null
+++ b/zlib/Makefile
@@ -0,0 +1,38 @@
+include /usr/share/cibs/rules/ips.mk
+include /usr/share/cibs/rules/archive.mk
+include /usr/share/cibs/rules/32.mk
+include /usr/share/cibs/rules/64.mk
+include /usr/share/cibs/rules/copy.mk
+
+# Not autotools, but similar.
+include /usr/share/cibs/rules/autotools.mk
+
+summary := a library implementing the deflate compression method found in gzip and PKZIP
+license := ZLib
+license-file := zlib.license
+
+build-depends += \
+
+name := zlib
+home := http://zlib.net
+version := 1.2.7
+archive := $(name)-$(version).tar.bz2
+download := http://zlib.net/$(archive)
+checksum := \
+ md5:2ab442d169156f34c379c968f3f482dd \
+ sha1:858818fe6d358ec682d54ac5e106a2dd62628e7f \
+ sha256:49e2e9658dfb036900da6ea0267a737fa3c4eee6666776d378c79d52e9334934 \
+ size:505085
+
+# This is autotools look-alike confuserator
+configure-options = \
+ --shared \
+ --prefix=/usr \
+ --libdir=/usr/lib$(lib-suffix.$(bits))
+
+
+# XXX zlib does not know about Sun ld.
+# XXX zlib.map is not suitable for sun ld.
+configure-env += \
+ LDSHARED="$(CC) $(CFLAGS) -shared"
+build-%-stamp: make-vars = LDSHARED="$(CC) $(CFLAGS) -shared -Wl,-h,libz.so.1,-M,$(CURDIR)/mapfile -L ."
diff --git a/zlib/libz1.p5m b/zlib/libz1.p5m
new file mode 100644
index 0000000..6038368
--- /dev/null
+++ b/zlib/libz1.p5m
@@ -0,0 +1,11 @@
+set name=pkg.fmri value=pkg:/library/libz1@$(ips-version)
+set name=pkg.summary value="$(summary), shared library"
+set name=info.upstream-url value="$(home)"
+set name=info.source-url value="$(download)"
+
+license $(license-file) license="$(license)"
+
+file path=usr/lib/$(mach64)/libz.so.1.2.7
+link path=usr/lib/$(mach64)/libz.so.1 target=libz.so.1.2.7
+file path=usr/lib/libz.so.1.2.7
+link path=usr/lib/libz.so.1 target=libz.so.1.2.7
diff --git a/zlib/mapfile b/zlib/mapfile
new file mode 100644
index 0000000..ae407d2
--- /dev/null
+++ b/zlib/mapfile
@@ -0,0 +1,111 @@
+# SUNW* symbols are here for hysterical raisins
+
+
+SUNWprivate {
+ global:
+ inflateBackInit_;
+ local: *;
+};
+
+SUNW_1.1 {
+ global:
+ adler32;
+ compress;
+ compress2;
+ crc32;
+ deflate;
+ deflateCopy;
+ deflateEnd;
+ deflateInit2_;
+ deflateInit_;
+ deflateParams;
+ deflateReset;
+ deflateSetDictionary;
+ get_crc_table;
+ gzclose;
+ gzdopen;
+ gzeof;
+ gzerror;
+ gzflush;
+ gzgetc;
+ gzgets;
+ gzopen;
+ gzprintf;
+ gzputc;
+ gzputs;
+ gzread;
+ gzrewind;
+ gzseek;
+ gzsetparams;
+ gztell;
+ gzwrite;
+ inflate;
+ inflateEnd;
+ inflateInit2_;
+ inflateInit_;
+ inflateReset;
+ inflateSetDictionary;
+ inflateSync;
+ inflateSyncPoint;
+ uncompress;
+ zError;
+ zlibVersion;
+};
+
+SUNW_1.2 {
+ global:
+ adler32_combine;
+ compressBound;
+ crc32_combine;
+ deflateBound;
+ deflatePrime;
+ deflateSetHeader;
+ deflateTune;
+ gzclearerr;
+ gzdirect;
+ gzungetc;
+ inflateBack;
+ inflateBackEnd;
+ inflateCopy;
+ inflateGetHeader;
+ inflatePrime;
+ zlibCompileFlags;
+} SUNW_1.1;
+
+ZLIB_1.2.3.3 {
+ global:
+ adler32_combine64;
+ crc32_combine64;
+ gzopen64;
+ gzseek64;
+ gztell64;
+ inflateUndermine;
+} SUNW_1.2;
+
+ZLIB_1.2.3.4 {
+ global:
+ inflateReset2;
+ inflateMark;
+} ZLIB_1.2.3.3;
+
+ZLIB_1.2.3.5 {
+ global:
+ gzbuffer;
+ gzoffset;
+ gzoffset64;
+ gzclose_r;
+ gzclose_w;
+} ZLIB_1.2.3.4;
+
+ZLIB_1.2.5.1 {
+ global:
+ deflatePending;
+} ZLIB_1.2.3.5;
+
+ZLIB_1.2.5.2 {
+ global:
+ deflateResetKeep;
+ gzgetc_;
+ inflateResetKeep;
+} ZLIB_1.2.5.1;
+
diff --git a/zlib/zlib.license b/zlib/zlib.license
new file mode 100644
index 0000000..b98547a
--- /dev/null
+++ b/zlib/zlib.license
@@ -0,0 +1,38 @@
+Acknowledgments:
+
+ The deflate format used by zlib was defined by Phil Katz. The deflate and
+ zlib specifications were written by L. Peter Deutsch. Thanks to all the
+ people who reported problems and suggested various improvements in zlib; they
+ are too numerous to cite here.
+
+Copyright notice:
+
+ (C) 1995-2012 Jean-loup Gailly and Mark Adler
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
+ Jean-loup Gailly Mark Adler
+ jloup@gzip.org madler@alumni.caltech.edu
+
+If you use the zlib library in a product, we would appreciate *not* receiving
+lengthy legal documents to sign. The sources are provided for free but without
+warranty of any kind. The library has been entirely written by Jean-loup
+Gailly and Mark Adler; it does not include third-party code.
+
+If you redistribute modified sources, we would appreciate that you include in
+the file ChangeLog history information documenting your changes. Please read
+the FAQ for more information on the distribution of modified source versions.
diff --git a/zlib/zlib.p5m b/zlib/zlib.p5m
new file mode 100644
index 0000000..e1792d5
--- /dev/null
+++ b/zlib/zlib.p5m
@@ -0,0 +1,18 @@
+set name=pkg.fmri value=pkg:/library/zlib@$(ips-version)
+set name=pkg.summary value="$(summary)"
+set name=info.upstream-url value="$(home)"
+set name=info.source-url value="$(download)"
+
+license $(license-file) license="$(license)"
+
+depend fmri=pkg:/library/libz1@$(ips-version) type=require
+depend fmri=pkg:/library/libz1@$(ips-version) type=incorporate
+
+link path=usr/lib/$(mach64)/libz.so target=libz.so.1
+link path=usr/lib/libz.so target=libz.so.1
+
+file path=usr/include/zlib.h
+file path=usr/include/zconf.h
+file path=usr/share/man/man3/zlib.3
+file path=usr/lib/pkgconfig/zlib.pc
+