- Ulrich Hecht writes: The current mpg123 package
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 14 Dec 2006 15:55:33 +0000 (15:55 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 14 Dec 2006 15:55:33 +0000 (15:55 -0000)
- ignores TARGET_CC (overwritten in Makefile)
- ignores TARGET_CFLAGS
- is hardcoded to use the i386 target

package/mpg123/mpg123.mk

index a0cbf2dc7d656456e449276b55fa8b2ac72a7742..006d179e5d6876c5c98d0d71a64080586501d491 100644 (file)
@@ -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