Root/mplayer/Makefile

1#
2# OpenWrt
3#
4# This is free software, licensed under the GNU General Public License v2.
5#
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=MPlayer
10PKG_VERSION:=1.0rc3
11PKG_RELEASE:=1
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=http://www.mplayerhq.hu/MPlayer/releases/
15PKG_MD5SUM:=0191ddb9c21620779838e53a4cca5ac1
16
17include $(INCLUDE_DIR)/package.mk
18include $(INCLUDE_DIR)/nls.mk
19
20define Package/MPlayer
21  SECTION:=multimedia
22  CATEGORY:=Multimedia
23  TITLE:=MPlayer, the movie player
24  URL:=http://www.mplayerhq.hu
25  DEPENDS:=+libjpeg +libpng +directfb +zlib +libsdl +libfreetype +fontconfig $(ICONV_DEPENDS) +BUILD_PATENTED:libmad +libaa +giflib +fribidi +libtheora
26endef
27
28define Package/MPlayer/description
29  MPlayer is a movie player which runs on many systems.
30endef
31
32CONFIGURE_ARGS := --target=mips \
33          --disable-mencoder \
34          --disable-pthreads \
35          --enable-cross-compile \
36          --prefix=/usr \
37          --with-sdl-config=$(STAGING_DIR)/usr/bin/sdl-config \
38          --with-freetype-config=$(STAGING_DIR)/host/bin/freetype-config \
39          --enable-rpath \
40          --extra-cflags="-I$(STAGING_DIR)/usr/include/directfb \
41          $(ICONV_CPPFLAGS)" \
42          --extra-ldflags="$(ICONV_LDFLAGS)" \
43          --host-cc=gcc \
44          --enable-fbdev \
45          --confdir=/usr/share/mplayer \
46          --enable-menu \
47          --$(if $(CONFIG_BUILD_PATENTED),enable-mad,disable-mad) \
48          --$(if $(CONFIG_BUILD_PATENTED),enable-mp3lib,disable-mp3lib) \
49          --disable-x11 \
50          --disable-xv \
51          --disable-vm \
52          --disable-vdpau \
53          --disable-gl \
54          --disable-xf86keysym
55
56define Package/MPlayer/install
57    $(INSTALL_DIR) \
58        $(1)/usr/bin \
59        $(1)/usr/share/mplayer
60
61    $(INSTALL_BIN) \
62        $(PKG_BUILD_DIR)/mplayer \
63        $(1)/usr/bin/mplayer
64    $(INSTALL_DATA) \
65        $(FILES_DIR)/input.conf \
66        $(1)/usr/share/mplayer
67
68endef
69
70$(eval $(call BuildPackage,MPlayer))
71

Archive Download this file



interactive