Add files in contrib/minizip to aid in building libminizip.

Patch provided by Franz Schrober.
This commit is contained in:
Mark Adler 2011-11-13 12:30:32 -08:00
parent e8576790be
commit 9e50ed8ef1
3 changed files with 52 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

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