# This file is part of MXE.
# See index.html for further information.
PKG := zziplib
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.13.62
$(PKG)_CHECKSUM := cf8b642abd9db618324a1b98cc71492a007cd687
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)$(word 2,$(subst ., ,$($(PKG)_VERSION)))/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/p/zziplib/svn/HEAD/tree/tags/' | \
$(SED) -n 's,.*.*,\1,p' | \
tr '_' '.' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
# don't build and install docs
(echo '# DISABLED'; echo 'all:'; echo 'install:') > '$(1)/docs/Makefile.in'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
CFLAGS="-O -ggdb" \
PKG_CONFIG='$(TARGET)-pkg-config'
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef
$(PKG)_BUILD_SHARED =