OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # OpenWrt |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=MPlayer |
| 10 | PKG_VERSION:=1.0rc3 |
| 11 | PKG_RELEASE:=1 |
| 12 | |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 14 | PKG_SOURCE_URL:=http://www.mplayerhq.hu/MPlayer/releases/ |
| 15 | PKG_MD5SUM:=0191ddb9c21620779838e53a4cca5ac1 |
| 16 | |
| 17 | include $(INCLUDE_DIR)/package.mk |
| 18 | |
| 19 | define 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 |
| 25 | endef |
| 26 | |
| 27 | define Package/MPlayer/description |
| 28 | MPlayer is a movie player which runs on many systems. |
| 29 | endef |
| 30 | |
| 31 | CONFIGURE_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 | |
| 47 | define 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 | |
| 59 | endef |
| 60 | |
| 61 | $(eval $(call BuildPackage,MPlayer)) |
| 62 |
