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
18
19define Package/MPlayer
20  SECTION:=multimedia
21  CATEGORY:=Multimedia
22  TITLE:=MPlayer, the movie player
23  URL:=http://www.mplayerhq.hu
24  DEPENDS:=+libjpeg +libpng +directfb +zlib +libsdl +libfreetype +fontconfig +libiconv +libmad @BUILD_PATENTED
25endef
26
27define Package/MPlayer/description
28  MPlayer is a movie player which runs on many systems.
29endef
30
31CONFIGURE_ARGS := --target=mips \
32          --disable-mencoder \
33          --disable-pthreads \
34          --enable-cross-compile \
35          --prefix=/usr \
36          --with-sdl-config=$(STAGING_DIR)/usr/bin/sdl-config \
37          --with-freetype-config=$(STAGING_DIR)/host/bin/freetype-config \
38          --enable-rpath \
39          --extra-cflags="-I$(STAGING_DIR)/usr/include/directfb \
40          -I$(STAGING_DIR)/usr/lib/libiconv/include" \
41          --extra-ldflags="-L$(STAGING_DIR)/usr/lib/libiconv/lib" \
42          --host-cc=gcc \
43          --enable-fbdev \
44          --confdir=/usr/share/mplayer \
45          --enable-menu
46
47define Package/MPlayer/install
48    $(INSTALL_DIR) \
49        $(1)/usr/bin \
50        $(1)/usr/share/mplayer
51
52    $(INSTALL_BIN) \
53        $(PKG_BUILD_DIR)/mplayer \
54        $(1)/usr/bin/mplayer
55    $(INSTALL_DATA) \
56        $(FILES_DIR)/input.conf \
57        $(1)/usr/share/mplayer
58
59endef
60
61$(eval $(call BuildPackage,MPlayer))
62

Archive Download this file



interactive