summaryrefslogtreecommitdiffstats
path: root/package/multimedia/mpg123/mpg123.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/multimedia/mpg123/mpg123.mk')
-rw-r--r--package/multimedia/mpg123/mpg123.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/multimedia/mpg123/mpg123.mk b/package/multimedia/mpg123/mpg123.mk
index b32681c40..7d34cdb2e 100644
--- a/package/multimedia/mpg123/mpg123.mk
+++ b/package/multimedia/mpg123/mpg123.mk
@@ -18,6 +18,10 @@ MPG123_USE_ALSA:=--with-audio=alsa
MPG123_ALSA_DEP:=alsa-lib
endif
+ifeq ($(BR2_PACKAGE_MPG123_ARM_UNROLL_FIX),y)
+MPG123_ARM_UNROLL_FIX:= -DMPG123_ARM_UNROLL_FIX
+endif
+
$(DL_DIR)/$(MPG123_SOURCE):
$(call DOWNLOAD,$(MPG123_SITE),$(MPG123_SOURCE))
@@ -31,7 +35,7 @@ $(MPG123_DIR)/.configured: $(MPG123_DIR)/.unpacked
(cd $(MPG123_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_ARGS) \
$(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)" \
+ CFLAGS="$(TARGET_CFLAGS) $(MPG123_ARM_UNROLL_FIX)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
./configure \
--target=$(REAL_GNU_TARGET_NAME) \
@@ -55,6 +59,11 @@ $(TARGET_DIR)/$(MPG123_TARGET_BIN): $(MPG123_DIR)/$(MPG123_BIN)
mpg123: uclibc $(MPG123_ALSA_DEP) $(TARGET_DIR)/$(MPG123_TARGET_BIN)
+mpg123x:
+ touch $(MPG123_DIR)/.configured
+
+mpg123-unpacked: $(MPG123_DIR)/.unpacked
+
mpg123-clean:
-$(MAKE) -C $(MPG123_DIR) clean