# This file is part of MXE. See LICENSE.md for licensing information.
PKG := wavpack
$(PKG)_WEBSITE := http://www.wavpack.com/
$(PKG)_DESCR := WavPack
$(PKG)_IGNORE :=
$(PKG)_VERSION := 5.7.0
$(PKG)_CHECKSUM := 8944b237968a1b3976a1eb47cd556916e041a2aa8917495db65f82c3fcc2a225
$(PKG)_SUBDIR := wavpack-$($(PKG)_VERSION)
$(PKG)_FILE := wavpack-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://www.wavpack.com/$($(PKG)_FILE)
$(PKG)_DEPS := cc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.wavpack.com/downloads.html' | \
grep '' | \
head -n 1 | \
$(SED) -e 's/^.*.*$$/\1/'
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--without-iconv \
CFLAGS="-DWIN32"
$(MAKE) -C '$(1)' -j '$(JOBS)' SUBDIRS="src include"
$(MAKE) -C '$(1)' -j 1 install SUBDIRS="src include"
endef