瀏覽代碼

mplayer: add dependency libraries to a variable

This patch will put dependency libraries in a variable and add this to the
dependencies to build mplayer. This is done to ease adding new libraries in the
future.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt 16 年之前
父節點
當前提交
8c149d286a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      package/multimedia/mplayer/mplayer.mk

+ 3 - 1
package/multimedia/mplayer/mplayer.mk

@@ -17,6 +17,8 @@ else
 MPLAYER_ENDIAN:=--disable-big-endian
 endif
 
+MPLAYER_DEP_LIBS:=libmad
+
 $(DL_DIR)/$(MPLAYER_SOURCE):
 	$(WGET) -P $(DL_DIR) $(MPLAYER_SITE)/$(MPLAYER_SOURCE)
 
@@ -60,7 +62,7 @@ $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY)
 	-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
 	touch -c $@
 
-mplayer: uclibc libmad $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
+mplayer: uclibc $(MPLAYER_DEP_LIBS) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
 
 mplayer-source: $(DL_DIR)/$(MPLAYER_SOURCE)