forked from mxe/mxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
a52dec.mk
26 lines (23 loc) · 1.04 KB
/
a52dec.mk
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
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := a52dec
$(PKG)_WEBSITE := https://liba52.sourceforge.io/
$(PKG)_DESCR := a52dec (aka. liba52)
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.7.4
$(PKG)_CHECKSUM := a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://liba52.sourceforge.io/files/$(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := cc
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://liba52.sourceforge.io/downloads.html' | \
$(SED) -n 's,.*files/a52dec-\([0-9][^"]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && rm aclocal.m4 && autoreconf -fi # The autotools files came with a52dec are _ancient_
cd '$(1)' && ./configure CFLAGS=-std=gnu89 \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef