Makefile 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= mplayer
  5. PKG_VERSION:= 1.0-31868
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9d5c2c1c927947b31afa6f42c11e8f23
  8. PKG_DESCR:= popular video player
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= alsa-lib libjpeg libfaad2 libmad libncurses
  11. PKG_DEPENDS+= libogg libpng libpthread libvorbis
  12. PKG_DEPENDS+= libx11 libxau libxdmcp libxext libxv zlib
  13. PKG_BUILDDEP:= alsa-lib libmad libvorbis faad2 ncurses zlib
  14. PKG_BUILDDEP+= libX11 libXv libpng libXext
  15. PKG_URL:= http://www.mplayerhq.hu/
  16. PKG_SITES:= http://openadk.org/distfiles/
  17. PKG_ARCH_DEPENDS:= x86 x86_64 mips mipsel mips64 mips64el
  18. PKG_FLAVOURS:= WITH_DIRECTFB
  19. PKGFD_WITH_DIRECTFB:= enable DirectFB video output support
  20. PKGFS_WITH_DIRECTFB:= directfb
  21. PKGFB_WITH_DIRECTFB:= DirectFB
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,MPLAYER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. CONFIG_STYLE:= minimal
  25. FAKE_FLAGS+= INSTALLSTRIP=''
  26. ifeq (${ADK_LINUX_MIPS64EL},y)
  27. EXTRA_CFLAGS:= -DARCH_MIPS64
  28. endif
  29. ifeq (${ADK_LINUX_MIPS64},y)
  30. EXTRA_CFLAGS:= -DARCH_MIPS64
  31. endif
  32. # Somehow this include path is missing here, although other
  33. # applications build fine against DirectFB. There is also a
  34. # related patch to allow configure to find out the DirectFB
  35. # version number.
  36. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  37. TCFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/directfb
  38. endif
  39. ifeq (${ADK_TARGET_CPU_WITH_MMX},y)
  40. CONFIGURE_CPU_OPTS:= --enable-mmx
  41. else
  42. CONFIGURE_CPU_OPTS:= --disable-mmx
  43. endif
  44. ifeq (${ADK_TARGET_CPU_WITH_MMXEXT},y)
  45. CONFIGURE_CPU_OPTS:= --enable-mmxext
  46. else
  47. CONFIGURE_CPU_OPTS:= --disable-mmxext
  48. endif
  49. ifeq (${ADK_TARGET_CPU_WITH_SSE},y)
  50. CONFIGURE_CPU_OPTS:= --enable-sse
  51. else
  52. CONFIGURE_CPU_OPTS:= --disable-sse
  53. endif
  54. ifeq ($(ADK_DEBUG),y)
  55. CONFIGURE_DEBUG= --enable-debug
  56. endif
  57. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  58. CONFIGURE_DIRECTFB= --enable-directfb
  59. else
  60. CONFIGURE_DIRECTFB= --disable-directfb
  61. endif
  62. CONFIGURE_ARGS:= --prefix=/usr \
  63. --enable-x11 \
  64. --confdir=/etc \
  65. --enable-cross-compile \
  66. --target=${ARCH}-linux \
  67. --cc=$(TARGET_CC) \
  68. --host-cc=$(HOSTCC) \
  69. --yasm='' \
  70. --disable-mencoder \
  71. --enable-fbdev \
  72. --enable-alsa \
  73. --enable-tv \
  74. --enable-v4l2 \
  75. --enable-png \
  76. --enable-jpeg \
  77. --enable-mad \
  78. --disable-faad-internal \
  79. --enable-libvorbis \
  80. --disable-ossaudio \
  81. --disable-vm \
  82. --disable-iconv \
  83. --disable-lirc \
  84. --disable-radio-v4l2 \
  85. --disable-faac \
  86. --disable-libdv \
  87. --disable-live \
  88. --disable-pvr \
  89. --disable-ftp \
  90. --disable-ivtv \
  91. --disable-dvdread-internal \
  92. --disable-libdvdcss-internal \
  93. --disable-freetype \
  94. --disable-mpg123 \
  95. --disable-tremor-internal \
  96. --disable-arts \
  97. --disable-esd \
  98. --disable-jack \
  99. --disable-openal \
  100. --disable-nas \
  101. --disable-sgiaudio \
  102. --disable-sunaudio \
  103. --disable-win32waveout \
  104. --disable-tga \
  105. --disable-pnm \
  106. --disable-md5sum \
  107. --disable-liblzo \
  108. --disable-sdl \
  109. --disable-xinerama \
  110. --disable-vidix \
  111. --disable-gl \
  112. --extra-cflags="${TCFLAGS} ${EXTRA_CFLAGS}" \
  113. ${CONFIGURE_CPU_OPTS} \
  114. ${CONFIGURE_DEBUG} \
  115. ${CONFIGURE_DIRECTFB}
  116. XAKE_FLAGS+= AR="${TARGET_CROSS}ar" RANLIB="${TARGET_CROSS}ranlib"
  117. post-install:
  118. ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
  119. ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
  120. include ${TOPDIR}/mk/pkg-bottom.mk