2007-07-23 10:12:39 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# mplayer
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-23 14:40:43 +02:00
|
|
|
MPLAYER_VERSION:=1.0rc1
|
|
|
|
MPLAYER_SOURCE:=MPlayer-$(MPLAYER_VERSION).tar.bz2
|
2007-07-23 10:12:39 +02:00
|
|
|
MPLAYER_SITE:=http://www7.mplayerhq.hu/MPlayer/releases
|
2007-07-23 14:40:43 +02:00
|
|
|
MPLAYER_DIR:=$(BUILD_DIR)/MPlayer-$(MPLAYER_VERSION)
|
2007-07-23 10:12:39 +02:00
|
|
|
MPLAYER_CAT:=$(BZCAT)
|
|
|
|
MPLAYER_BINARY:=mplayer
|
|
|
|
MPLAYER_TARGET_BINARY:=usr/bin/$(MPLAYER_BINARY)
|
|
|
|
|
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
|
|
|
MPLAYER_ENDIAN:=--enable-big-endian
|
|
|
|
else
|
|
|
|
MPLAYER_ENDIAN:=--disable-big-endian
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(DL_DIR)/$(MPLAYER_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(MPLAYER_SITE)/$(MPLAYER_SOURCE)
|
|
|
|
|
|
|
|
$(MPLAYER_DIR)/.unpacked: $(DL_DIR)/$(MPLAYER_SOURCE)
|
|
|
|
$(MPLAYER_CAT) $(DL_DIR)/$(MPLAYER_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-07-23 14:40:43 +02:00
|
|
|
toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/ mplayer-$(MPLAYER_VERSION)\*.patch\*
|
2008-02-12 01:35:03 +01:00
|
|
|
$(CONFIG_UPDATE) $(MPLAYER_DIR)
|
2007-07-23 14:40:43 +02:00
|
|
|
touch $@
|
2007-07-23 10:12:39 +02:00
|
|
|
|
|
|
|
$(MPLAYER_DIR)/.configured: $(MPLAYER_DIR)/.unpacked
|
|
|
|
(cd $(MPLAYER_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-07-23 14:40:43 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-07-23 10:12:39 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--confdir=/etc \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host-cc=$(HOSTCC) \
|
|
|
|
--cc=$(TARGET_CC) \
|
|
|
|
--as=$(TARGET_CROSS)as \
|
2007-08-12 00:26:56 +02:00
|
|
|
--with-extraincdir=$(STAGING_DIR)/usr/include \
|
2007-07-23 10:12:39 +02:00
|
|
|
--with-extralibdir=$(STAGING_DIR)/lib \
|
|
|
|
--enable-mad \
|
|
|
|
--enable-fbdev \
|
|
|
|
$(MPLAYER_ENDIAN) \
|
|
|
|
--disable-mpdvdkit \
|
|
|
|
--disable-tv \
|
|
|
|
--enable-dynamic-plugins \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-07-23 14:40:43 +02:00
|
|
|
touch $@
|
2007-07-23 10:12:39 +02:00
|
|
|
|
|
|
|
$(MPLAYER_DIR)/$(MPLAYER_BINARY): $(MPLAYER_DIR)/.configured
|
|
|
|
$(MAKE) -C $(MPLAYER_DIR)
|
2007-07-23 14:40:43 +02:00
|
|
|
touch -c $@
|
2007-07-23 10:12:39 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY)
|
|
|
|
$(INSTALL) -m 0755 -D $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
|
2007-07-23 14:40:43 +02:00
|
|
|
touch -c $@
|
2007-07-23 10:12:39 +02:00
|
|
|
|
|
|
|
mplayer: uclibc libmad $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
|
|
|
|
|
2007-09-25 14:01:27 +02:00
|
|
|
mplayer-source: $(DL_DIR)/$(MPLAYER_SOURCE)
|
|
|
|
|
|
|
|
mplayer-unpacked: $(MPLAYER_DIR)/.unpacked
|
|
|
|
|
2007-07-23 10:12:39 +02:00
|
|
|
mplayer-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(MPLAYER_DIR) clean
|
|
|
|
|
|
|
|
mplayer-dirclean:
|
|
|
|
rm -rf $(MPLAYER_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_MPLAYER)),y)
|
|
|
|
TARGETS+=mplayer
|
|
|
|
endif
|