blob: fed55e051399609de2120209a1c999a028fa1210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# This file is part of MXE.
# See index.html for further information.
PKG := flac
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.0
$(PKG)_CHECKSUM := a136e5748f8fb1e6c524c75000a765fc63bb7b1b
$(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,.*<a href="flac-\([0-9][0-9.]*\)\.tar\.[gx]z">.*,\1,p' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--enable-static \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--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
|