summaryrefslogtreecommitdiffstats
path: root/src/mpg123.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpg123.mk')
-rw-r--r--src/mpg123.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mpg123.mk b/src/mpg123.mk
new file mode 100644
index 0000000..96a5e14
--- /dev/null
+++ b/src/mpg123.mk
@@ -0,0 +1,29 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := mpg123
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 1.17.0
+$(PKG)_CHECKSUM := 8185f06ab94651adb2fc7a1ab860f0fd154b6f80
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mpg123/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sdl
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://sourceforge.net/projects/mpg123/files/mpg123/' | \
+ $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --with-default-audio=win32 \
+ --with-audio=win32,sdl,dummy \
+ --enable-modules=no
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+endef