public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [ITA from Yaakov] zlib
@ 2020-05-13 13:04 Ken Brown
  2020-05-14  3:17 ` Yaakov Selkowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Brown @ 2020-05-13 13:04 UTC (permalink / raw)
  To: cygwin-apps

[-- 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
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ITA from Yaakov] zlib
  2020-05-13 13:04 [ITA from Yaakov] zlib Ken Brown
@ 2020-05-14  3:17 ` Yaakov Selkowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Yaakov Selkowitz @ 2020-05-14  3:17 UTC (permalink / raw)
  To: cygwin-apps

On Wed, 2020-05-13 at 09:04 -0400, Ken Brown via Cygwin-apps wrote:
> 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.

This is fine.  FYI at some point you might want to investigate whether
to move to the minizip fork currently packaged in Fedora, but as
nothing in Cygwin currently uses it, there's no rush.

https://github.com/nmoinvaz/minizip
https://src.fedoraproject.org/rpms/minizip/blob/master/f/minizip.spec

--
Yaakov



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-14  3:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 13:04 [ITA from Yaakov] zlib Ken Brown
2020-05-14  3:17 ` Yaakov Selkowitz

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).