diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-14 15:55:33 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-14 15:55:33 +0000 |
commit | e0f08154bfd46c5b65b169508ecbe446cd02d9a5 (patch) | |
tree | bb55f742de8d5ddfbc1621a8b64940ff001e6924 | |
parent | 787635669bc03bc3e4805dd8ebf676d9ba16564a (diff) |
- Ulrich Hecht writes: The current mpg123 package
- ignores TARGET_CC (overwritten in Makefile)
- ignores TARGET_CFLAGS
- is hardcoded to use the i386 target
-rw-r--r-- | package/mpg123/mpg123.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/package/mpg123/mpg123.mk b/package/mpg123/mpg123.mk index a0cbf2dc7..006d179e5 100644 --- a/package/mpg123/mpg123.mk +++ b/package/mpg123/mpg123.mk @@ -20,11 +20,20 @@ $(DL_DIR)/$(MPG123_SOURCE): $(MPG123_DIR)/.unpacked: $(DL_DIR)/$(MPG123_SOURCE) $(MPG123_CAT) $(DL_DIR)/$(MPG123_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(MPG123_DIR) package/mpg123/ mpg123\*.patch touch $(MPG123_DIR)/.unpacked $(MPG123_WORKDIR)/mpg123: $(MPG123_DIR)/.unpacked rm -f $@ - $(MAKE) CC=$(TARGET_CC) -C $(MPG123_WORKDIR) linux +ifeq ($(BR2_ARCH),"i386") + $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" -C $(MPG123_WORKDIR) linux +else +ifeq ($(BR2_ENDIAN),"LITTLE") + $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" -C $(MPG123_WORKDIR) linux-littleend +else + $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" -C $(MPG123_WORKDIR) linux-bigend +endif +endif $(MPG123_WORKDIR)/.installed: $(MPG123_WORKDIR)/mpg123 mkdir -p $(TARGET_DIR)/usr/bin |