mxe/src/flac.mk

31 lines
1009 B
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2009-10-27 19:14:55 +00:00
PKG := flac
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.1
$(PKG)_CHECKSUM := 4773c0099dba767d963fd92143263be338c48702172e8754b9bc5103efe1c56c
2009-10-27 19:14:55 +00:00
$(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
2009-10-27 19:14:55 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://downloads.xiph.org/releases/flac/' | \
$(SED) -n 's,.*<a href="flac-\([0-9][0-9.]*\)\.tar\.[gx]z">.*,\1,p' | \
$(SORT) -V | \
tail -1
2009-10-27 19:14:55 +00:00
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
2009-10-27 19:14:55 +00:00
--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