# This file is part of MXE.
# See index.html for further information.
PKG := wavpack
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 003c65cb4e29c55011cf8e7b10d69120df5e7f30
$(PKG)_SUBDIR := wavpack-$($(PKG)_VERSION)
$(PKG)_FILE := wavpack-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://www.wavpack.com/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
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 \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--without-iconv \
CFLAGS="-DWIN32"
$(MAKE) -C '$(1)' -j '$(JOBS)' SUBDIRS="src include"
$(MAKE) -C '$(1)' -j 1 install SUBDIRS="src include"
endef