Makefile 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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-32749
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= aadc5d8cca503c8b18b3ed00b3a52cf5
  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_MPLAYER:= 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. TARGET_CPPFLAGS+= -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_TARGET_CPU_WITH_SSE2},y)
  55. CONFIGURE_CPU_OPTS+= --enable-sse2
  56. else
  57. CONFIGURE_CPU_OPTS+= --disable-sse2
  58. endif
  59. ifeq ($(ADK_DEBUG),y)
  60. CONFIGURE_DEBUG= --enable-debug
  61. endif
  62. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  63. CONFIGURE_DIRECTFB= --enable-directfb
  64. else
  65. CONFIGURE_DIRECTFB= --disable-directfb
  66. endif
  67. CONFIGURE_ARGS:= --prefix=/usr \
  68. --enable-x11 \
  69. --confdir=/etc \
  70. --enable-cross-compile \
  71. --target=${ARCH}-linux \
  72. --cc=$(TARGET_CC) \
  73. --host-cc=$(CC_FOR_BUILD) \
  74. --yasm='' \
  75. --disable-mencoder \
  76. --enable-fbdev \
  77. --enable-alsa \
  78. --enable-tv \
  79. --enable-v4l2 \
  80. --enable-png \
  81. --enable-jpeg \
  82. --enable-mad \
  83. --enable-libvorbis \
  84. --disable-ossaudio \
  85. --disable-vm \
  86. --disable-iconv \
  87. --disable-lirc \
  88. --disable-radio-v4l2 \
  89. --disable-faac \
  90. --disable-libdv \
  91. --disable-live \
  92. --disable-pvr \
  93. --disable-ftp \
  94. --disable-ivtv \
  95. --disable-dvdread-internal \
  96. --disable-libdvdcss-internal \
  97. --disable-freetype \
  98. --disable-mpg123 \
  99. --disable-tremor-internal \
  100. --disable-arts \
  101. --disable-esd \
  102. --disable-jack \
  103. --disable-openal \
  104. --disable-nas \
  105. --disable-sgiaudio \
  106. --disable-sunaudio \
  107. --disable-win32waveout \
  108. --disable-tga \
  109. --disable-pnm \
  110. --disable-md5sum \
  111. --disable-liblzo \
  112. --disable-sdl \
  113. --disable-xinerama \
  114. --disable-vidix \
  115. --disable-gl \
  116. --extra-cflags="${EXTRA_CFLAGS}" \
  117. ${CONFIGURE_CPU_OPTS} \
  118. ${CONFIGURE_DEBUG} \
  119. ${CONFIGURE_DIRECTFB}
  120. XAKE_FLAGS+= AR="${TARGET_CROSS}ar" RANLIB="${TARGET_CROSS}ranlib"
  121. post-install:
  122. ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
  123. ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
  124. include ${TOPDIR}/mk/pkg-bottom.mk