Add mplayer package

This commit is contained in:
Ulf Samuelsson 2007-07-23 08:12:39 +00:00
parent 05936ec76e
commit 47fb8b73f2
4 changed files with 6043 additions and 0 deletions

View File

@ -0,0 +1,9 @@
config BR2_PACKAGE_MPLAYER
bool "mplayer"
default n
select BR2_PACKAGE_LIBMAD
help
MPlayer is a movie player which runs on many systems and supports
many different file formats.
http://www.mplayerhq.hu/

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
--- MPlayer-1.0rc1-orig/configure 2007-06-01 18:15:59.000000000 +0200
+++ MPlayer-1.0rc1/configure 2007-06-01 18:17:38.000000000 +0200
@@ -3803,7 +3803,7 @@ fi
echocheck "X11 headers presence"
- for I in `echo $_inc_extra | sed s/-I//g` /usr/X11/include /usr/X11R6/include /usr/include/X11R6 /usr/include /usr/openwin/include ; do
+ for I in `echo $_inc_extra | sed s/-I//g` ; do
if test -f "$I/X11/Xlib.h" ; then
_inc_x11="-I$I"
_x11_headers="yes"

View File

@ -0,0 +1,75 @@
#############################################################
#
# mplayer
#
#############################################################
MPLAYER_VER:=1.0rc1
MPLAYER_SOURCE:=MPlayer-$(MPLAYER_VER).tar.bz2
MPLAYER_SITE:=http://www7.mplayerhq.hu/MPlayer/releases
MPLAYER_DIR:=$(BUILD_DIR)/MPlayer-$(MPLAYER_VER)
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) -
toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/ mplayer-$(MPLAYER_VER)\*.patch\*
@touch $@
$(MPLAYER_DIR)/.configured: $(MPLAYER_DIR)/.unpacked
(cd $(MPLAYER_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
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 \
--with-extraincdir=$(STAGING_DIR)/include \
--with-extralibdir=$(STAGING_DIR)/lib \
--enable-mad \
--enable-fbdev \
$(MPLAYER_ENDIAN) \
--disable-mpdvdkit \
--disable-tv \
--enable-dynamic-plugins \
);
@touch $@
$(MPLAYER_DIR)/$(MPLAYER_BINARY): $(MPLAYER_DIR)/.configured
$(MAKE) -C $(MPLAYER_DIR)
@touch -c $@
$(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY)
$(INSTALL) -m 0755 -D $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
-$(STRIP) --strip-unneeded $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
@touch -c $@
mplayer: uclibc libmad $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
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