forked from mxe/mxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpg123.mk
27 lines (24 loc) · 938 Bytes
/
mpg123.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
27
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := mpg123
$(PKG)_WEBSITE := https://www.mpg123.de/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.31.1
$(PKG)_CHECKSUM := 5dcb0936efd44cb583498b6585845206f002a7b19d5066a2683be361954d955a
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/mpg123/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc sdl
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://sourceforge.net/projects/mpg123/files/mpg123/' | \
$(SED) -n 's,.*/projects/.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--with-default-audio=win32 \
--with-audio=win32,sdl,dummy \
--enable-modules=no
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef