Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # OpenWrt
- #
- # This is free software, licensed under the GNU General Public License v2.
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=mplayer
- PKG_REV:=32726
- PKG_VERSION:=1.0rc4
- PKG_RELEASE:=1
- #PKG_SOURCE=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- #PKG_SOURCE_URL:=svn://svn.mplayerhq.hu/mplayer/trunk
- #PKG_SOURCE_PROTO:=svn
- #PKG_SOURCE_VERSION=$(PKG_REV)
- #PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
- PKG_SOURCE:=MPlayer-$(PKG_VERSION).tar.bz2
- PKG_SOURCE_URL:=http://www.mplayerhq.hu/MPlayer/releases/
- PKG_BUILD_DIR:=$(BUILD_DIR)/MPlayer-$(PKG_VERSION)
- include $(INCLUDE_DIR)/package.mk
- include $(INCLUDE_DIR)/nls.mk
- define Package/mplayer
- SECTION:=multimedia
- CATEGORY:=Multimedia
- TITLE:=MPlayer, the movie player
- URL:=http://www.mplayerhq.hu
- DEPENDS:=+libjpeg +libpng +zlib +libfreetype +fontconfig $(ICONV_DEPENDS) \
- +giflib +libtheora +alsa-lib +libfaad2 +libmpcdec +libmpg123 \
- +libspeex +libpthread +libncurses
- endef
- define Package/mplayer/description
- MPlayer is a movie player which runs on many systems.
- endef
- # extra-cflags -march=iwmmxt, need to edit pkg_build_dir/config.mak for success
- CONFIGURE_ARGS := \
- --prefix=/usr \
- --confdir=/etc \
- --target=$(TARGET_CROSS) \
- --host-cc=gcc \
- --cc="$(TARGET_CC)" \
- --as="$(TARGET_AS)" \
- --ar="$(TARGET_AR)" \
- --ranlib="$(TARGET_RANLIB)" \
- --charset=UTF-8 \
- --extra-cflags=" -Wno-error=deprecated-declarations $(TARGET_CFLAGS)" \
- --extra-ldflags="-lsalsa -lmpg123 $(TARGET_LDFLAGS)" \
- --yasm='' \
- --disable-mad \
- --enable-mpg123 \
- --enable-faad-fixed \
- --enable-tremor-low \
- --disable-mp3lib \
- --enable-fbdev \
- --enable-alsa \
- --enable-largefiles \
- --disable-sdl \
- --disable-directfb \
- --enable-mplayer \
- --disable-mencoder \
- --disable-libvorbis \
- --disable-vidix \
- --disable-svga \
- --disable-aa \
- --disable-ggi \
- --enable-armv5te \
- --enable-cross-compile \
- --disable-ivtv \
- --enable-dynamic-plugins \
- --enable-pxa \
- --disable-runtime-cpudetection \
- --enable-iwmmxt
- # mplayer makefile is soooo broken. have to specify libs by hand, if
- # compileing with --enable-system-ffmpeg
- # TARGET_CFLAGS+= -std=c99 -DPATH_MAX=512 -D_GNU_SOURCE
- # -lavcore
- # todo: remove once building correctly
- #MAKE_FLAGS = -j4
- #define Build/Configure
- # $(call Build/Configure/Default)
- #endef
- define Build/Compile
- # Build with iwmmxt first
- sed -i -e 's/march=armv5te/march=iwmmxt/g' $(PKG_BUILD_DIR)/config.mak
- $(call Build/Compile/Default)
- # rebuild h264 and mpegvideo without iwmmxt
- sed -i -e 's/march=iwmmxt/march=armv5te/g' $(PKG_BUILD_DIR)/config.mak
- $(RM) $(PKG_BUILD_DIR)/mplayer
- $(RM) $(PKG_BUILD_DIR)/libavcodec/libavcodec.a
- $(RM) $(PKG_BUILD_DIR)/libavcodec/mpegvideo.o
- $(RM) $(PKG_BUILD_DIR)/libavcodec/h264.o
- $(call Build/Compile/Default)
- endef
- define Package/mplayer/install
- $(INSTALL_DIR) \
- $(1)/usr/bin \
- $(1)/etc
- $(INSTALL_BIN) \
- $(PKG_BUILD_DIR)/mplayer \
- $(1)/usr/bin/mplayer
- $(INSTALL_DATA) \
- $(FILES_DIR)/mplayer.conf \
- $(1)/etc/
- endef
- $(eval $(call BuildPackage,mplayer))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement