Makefile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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_TARGET_DEPENDS:= alix 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. # 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. TCFLAGS+= -I${STAGING_DIR}/usr/include/directfb
  40. endif
  41. ifeq (${ADK_LINUX_X86_ALIX},y)
  42. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  43. --disable-sse2 \
  44. --disable-sse \
  45. --enable-mmxext \
  46. --enable-mmx \
  47. --enable-3dnowext \
  48. --enable-3dnow
  49. else ifeq (${ADK_HARDWARE_IBM_X40},y)
  50. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  51. --enable-sse2 \
  52. --enable-sse \
  53. --enable-mmxext \
  54. --enable-mmx \
  55. --disable-3dnowext \
  56. --disable-3dnow
  57. else
  58. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  59. --disable-sse2 \
  60. --disable-sse \
  61. --disable-mmxext \
  62. --disable-3dnowext \
  63. --disable-mmx \
  64. --disable-3dnow
  65. endif
  66. ifeq ($(ADK_DEBUG),y)
  67. CONFIGURE_DEBUG= --enable-debug
  68. endif
  69. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  70. CONFIGURE_DIRECTFB= --enable-directfb
  71. else
  72. CONFIGURE_DIRECTFB= --disable-directfb
  73. endif
  74. CONFIGURE_ARGS:= --prefix=/usr \
  75. --enable-x11 \
  76. --confdir=/etc \
  77. --enable-cross-compile \
  78. --target=${ARCH}-linux \
  79. --cc=$(TARGET_CC) \
  80. --host-cc=$(HOSTCC) \
  81. --yasm='' \
  82. --disable-mencoder \
  83. --enable-fbdev \
  84. --enable-alsa \
  85. --enable-tv \
  86. --enable-v4l2 \
  87. --enable-png \
  88. --enable-jpeg \
  89. --enable-mad \
  90. --disable-faad-internal \
  91. --enable-libvorbis \
  92. --disable-ossaudio \
  93. --disable-vm \
  94. --disable-iconv \
  95. --disable-lirc \
  96. --disable-radio-v4l2 \
  97. --disable-faac \
  98. --disable-libdv \
  99. --disable-live \
  100. --disable-pvr \
  101. --disable-ftp \
  102. --disable-ivtv \
  103. --disable-dvdread-internal \
  104. --disable-libdvdcss-internal \
  105. --disable-freetype \
  106. --disable-mpg123 \
  107. --disable-tremor-internal \
  108. --disable-arts \
  109. --disable-esd \
  110. --disable-jack \
  111. --disable-openal \
  112. --disable-nas \
  113. --disable-sgiaudio \
  114. --disable-sunaudio \
  115. --disable-win32waveout \
  116. --disable-tga \
  117. --disable-pnm \
  118. --disable-md5sum \
  119. --disable-liblzo \
  120. --disable-sdl \
  121. --disable-xinerama \
  122. --disable-vidix \
  123. --disable-gl \
  124. --extra-cflags="${TCFLAGS} ${EXTRA_CFLAGS}" \
  125. ${CONFIGURE_CPU_OPTS} \
  126. ${CONFIGURE_DEBUG} \
  127. ${CONFIGURE_DIRECTFB}
  128. XAKE_FLAGS+= AR="${TARGET_CROSS}ar" RANLIB="${TARGET_CROSS}ranlib"
  129. post-install:
  130. ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
  131. ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
  132. include ${TOPDIR}/mk/pkg-bottom.mk