public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin-apps <cygwin-apps@cygwin.com>
Subject: [ITA from Yaakov] zlib
Date: Wed, 13 May 2020 09:04:36 -0400	[thread overview]
Message-ID: <4665a106-fb7e-1a6a-0615-61813ac8d1d5@cornell.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]

There's no need for a new release, but I've made some trivial updates to the 
cygport file (attached) and checked that the build works.

Ken

[-- Attachment #2: zlib.cygport --]
[-- Type: text/plain, Size: 2050 bytes --]

NAME="zlib"
VERSION=1.2.11
RELEASE=2
CATEGORY="Libs"
SUMMARY="gzip de/compression library"
DESCRIPTION="zlib is designed to be a free, general-purpose, legally unencumbered
-- that is, not covered by any patents -- lossless data- compression
library for use on virtually any computer hardware and operating
system. The zlib data format is itself portable across platforms."

HOMEPAGE="http://www.zlib.net/"
SRC_URI="https://www.zlib.net/zlib-${VERSION}.tar.xz"
PATCH_URI="
	https://src.fedoraproject.org/rpms/zlib/raw/master/f/zlib-1.2.5-minizip-fixuncrypt.patch
	1.2.7-minizip-cygwin.patch
	1.2.11-gzopen_w.patch
"

PKG_NAMES="zlib zlib0 zlib-devel libminizip1 libminizip-devel"
zlib_SUMMARY="${SUMMARY} (documentation)"
zlib_REQUIRES="zlib0"
zlib_CONTENTS="usr/share/doc/ usr/share/man/"
zlib0_SUMMARY="${SUMMARY} (runtime)"
zlib0_CONTENTS="usr/bin/cygz.dll"
zlib_devel_SUMMARY="${SUMMARY} (development)"
zlib_devel_CONTENTS="usr/include/z*.h usr/lib/libz.* usr/lib/pkgconfig/zlib.pc"
libminizip1_SUMMARY="Zip file de/compression library (runtime)"
libminizip1_CONTENTS="usr/bin/cygminizip-1.dll"
libminizip_devel_SUMMARY="Zip file de/compression library (development)"
libminizip_devel_CONTENTS="usr/include/minizip/ usr/lib/libminizip.* usr/lib/pkgconfig/minizip.pc"

src_compile() {
	cd ${S}/contrib/minizip
	cygautoreconf
	lndirs
	rm -fr ${B}/contrib/minizip/*
	rm -f ${B}/Makefile ${B}/zconf.h

	cd ${B}
	./configure
	cygmake -j1 -f win32/Makefile.gcc \
		CC=${CC} AR=${AR} RC=${RC} STRIP=: \
		CFLAGS="${CFLAGS}" \
		SHAREDLIB=cygz.dll IMPLIB=libz.dll.a

	cd ${B}/contrib/minizip
	cygconf
	cygmake
}

src_install() {
	cd ${B}
	cyginstall -f win32/Makefile.gcc \
		SHAREDLIB=cygz.dll IMPLIB=libz.dll.a \
		SHARED_MODE=1 \
		prefix=/usr \
		BINARY_PATH=/usr/bin \
		INCLUDE_PATH=/usr/include \
		LIBRARY_PATH=/usr/lib

	# pkg-config doesn't manage to skip this extra -L/usr/lib
	sed -i -e 's| -L\${sharedlibdir} | |g' ${D}/usr/lib/pkgconfig/zlib.pc

	doman ${S}/zlib.3

	cd ${B}/contrib/minizip
	cyginstall

	dodoc ${S}/contrib/minizip/*.txt
}

             reply	other threads:[~2020-05-13 13:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-13 13:04 Ken Brown [this message]
2020-05-14  3:17 ` Yaakov Selkowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4665a106-fb7e-1a6a-0615-61813ac8d1d5@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).