diff --git a/contrib/minizip/Makefile.am b/contrib/minizip/Makefile.am new file mode 100644 index 0000000..7a1e3db --- /dev/null +++ b/contrib/minizip/Makefile.am @@ -0,0 +1,28 @@ +lib_LTLIBRARIES = libminizip.la + +libminizip_la_SOURCES = \ + ioapi.c \ + mztools.c \ + unzip.c \ + zip.c + +libminizip_la_CFLAGS = -I../.. -L../.. +libminizip_la_LDFLAGS = -version-info 1:0:0 -lz + +minizip_includedir = $(includedir)/minizip +minizip_include_HEADERS = \ + crypt.h \ + ioapi.h \ + mztools.h \ + unzip.h \ + zip.h + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = minizip.pc + +EXTRA_PROGRAMS = miniunzip minizip + +miniunzip_SOURCES = miniunz.c +miniunzip_LDADD = libminizip.la + +minizip_SOURCES = minizip.c diff --git a/contrib/minizip/configure.ac b/contrib/minizip/configure.ac new file mode 100644 index 0000000..23c147b --- /dev/null +++ b/contrib/minizip/configure.ac @@ -0,0 +1,12 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_INIT([minizip], [@ZLIB_VER@], [bugzilla.redhat.com]) +AC_CONFIG_SRCDIR([minigzip.c]) +AM_INIT_AUTOMAKE([foreign]) +LT_INIT + +AC_SUBST([HAVE_UNISTD_H], [0]) +AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) +AC_CONFIG_FILES([Makefile minizip.pc]) +AC_OUTPUT diff --git a/contrib/minizip/minizip.pc.in b/contrib/minizip/minizip.pc.in new file mode 100644 index 0000000..69b5b7f --- /dev/null +++ b/contrib/minizip/minizip.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/minizip + +Name: minizip +Description: Minizip zip file manipulation library +Requires: +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lminizip +Libs.private: -lz +Cflags: -I${includedir}