# This file is part of MXE.
# See index.html for further information.
PKG := flac
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.1
$(PKG)_CHECKSUM := 38e17439d11be26207e4af0ff50973815694b26f
$(PKG)_SUBDIR := flac-$($(PKG)_VERSION)
$(PKG)_FILE := flac-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://downloads.xiph.org/releases/flac/$($(PKG)_FILE)
$(PKG)_DEPS := gcc ogg
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://downloads.xiph.org/releases/flac/' | \
$(SED) -n 's,.*.*,\1,p' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-doxygen-docs \
--disable-xmms-plugin \
--enable-cpplibs \
--enable-ogg \
--disable-oggtest
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef