Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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 jpeg
  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. # gcc 4.5 produces internal compiler error with -Os
  25. TCFLAGS:=$(subst Os,O2,$(TCFLAGS))
  26. CONFIG_STYLE:= minimal
  27. FAKE_FLAGS+= INSTALLSTRIP=''
  28. ifeq (${ADK_LINUX_MIPS64EL},y)
  29. EXTRA_CFLAGS:= -DARCH_MIPS64
  30. endif
  31. ifeq (${ADK_LINUX_MIPS64},y)
  32. EXTRA_CFLAGS:= -DARCH_MIPS64
  33. endif
  34. # Somehow this include path is missing here, although other
  35. # applications build fine against DirectFB. There is also a
  36. # related patch to allow configure to find out the DirectFB
  37. # version number.
  38. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  39. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/directfb
  40. endif
  41. ifeq (${ADK_TARGET_CPU_WITH_MMX},y)
  42. CONFIGURE_CPU_OPTS:= --enable-mmx
  43. else
  44. CONFIGURE_CPU_OPTS:= --disable-mmx
  45. endif
  46. ifeq (${ADK_TARGET_CPU_WITH_MMXEXT},y)
  47. CONFIGURE_CPU_OPTS+= --enable-mmxext
  48. else
  49. CONFIGURE_CPU_OPTS+= --disable-mmxext
  50. endif
  51. ifeq (${ADK_TARGET_CPU_WITH_SSE},y)
  52. CONFIGURE_CPU_OPTS+= --enable-sse
  53. else
  54. CONFIGURE_CPU_OPTS+= --disable-sse
  55. endif
  56. ifeq (${ADK_TARGET_CPU_WITH_SSE2},y)
  57. CONFIGURE_CPU_OPTS+= --enable-sse2
  58. else
  59. CONFIGURE_CPU_OPTS+= --disable-sse2
  60. endif
  61. ifeq ($(ADK_DEBUG),y)
  62. CONFIGURE_DEBUG= --enable-debug
  63. endif
  64. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  65. CONFIGURE_DIRECTFB= --enable-directfb
  66. else
  67. CONFIGURE_DIRECTFB= --disable-directfb
  68. endif
  69. CONFIGURE_ARGS:= --prefix=/usr \
  70. --enable-x11 \
  71. --confdir=/etc \
  72. --enable-cross-compile \
  73. --target=${ARCH}-linux \
  74. --cc='$(TARGET_CC)' \
  75. --host-cc=$(CC_FOR_BUILD) \
  76. --yasm='' \
  77. --disable-mencoder \
  78. --enable-fbdev \
  79. --enable-alsa \
  80. --enable-tv \
  81. --enable-v4l2 \
  82. --enable-png \
  83. --enable-jpeg \
  84. --enable-mad \
  85. --enable-libvorbis \
  86. --disable-ossaudio \
  87. --disable-vm \
  88. --disable-iconv \
  89. --disable-lirc \
  90. --disable-radio-v4l2 \
  91. --disable-faac \
  92. --disable-libdv \
  93. --disable-live \
  94. --disable-pvr \
  95. --disable-ftp \
  96. --disable-ivtv \
  97. --disable-dvdread-internal \
  98. --disable-libdvdcss-internal \
  99. --disable-freetype \
  100. --disable-mpg123 \
  101. --disable-tremor-internal \
  102. --disable-arts \
  103. --disable-esd \
  104. --disable-jack \
  105. --disable-openal \
  106. --disable-nas \
  107. --disable-sgiaudio \
  108. --disable-sunaudio \
  109. --disable-win32waveout \
  110. --disable-tga \
  111. --disable-pnm \
  112. --disable-md5sum \
  113. --disable-liblzo \
  114. --disable-sdl \
  115. --disable-xinerama \
  116. --disable-vidix \
  117. --disable-gl \
  118. --extra-cflags="${EXTRA_CFLAGS}" \
  119. ${CONFIGURE_CPU_OPTS} \
  120. ${CONFIGURE_DEBUG} \
  121. ${CONFIGURE_DIRECTFB}
  122. XAKE_FLAGS+= AR="${TARGET_CROSS}ar" RANLIB="${TARGET_CROSS}ranlib"
  123. post-install:
  124. ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
  125. ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
  126. include ${TOPDIR}/mk/pkg-bottom.mk