Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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_HOST_DEPENDS:= !darwin
  18. PKG_TARGET_DEPENDS:= alix x86 x86_64 mips mipsel mips64 mips64el
  19. PKG_FLAVOURS:= WITH_DIRECTFB
  20. PKGFD_WITH_DIRECTFB:= enable DirectFB video output support
  21. PKGFS_WITH_DIRECTFB:= directfb
  22. PKGFB_WITH_DIRECTFB:= DirectFB
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,MPLAYER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. # gcc 4.5 produces internal compiler error with -Os
  26. #TCFLAGS:=$(subst Os,O2,$(TCFLAGS))
  27. CONFIG_STYLE:= minimal
  28. FAKE_FLAGS+= INSTALLSTRIP=''
  29. ifeq (${ADK_LINUX_MIPS64EL},y)
  30. EXTRA_CFLAGS:= -DARCH_MIPS64
  31. endif
  32. ifeq (${ADK_LINUX_MIPS64},y)
  33. EXTRA_CFLAGS:= -DARCH_MIPS64
  34. endif
  35. # Somehow this include path is missing here, although other
  36. # applications build fine against DirectFB. There is also a
  37. # related patch to allow configure to find out the DirectFB
  38. # version number.
  39. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  40. TCFLAGS+= -I${STAGING_DIR}/usr/include/directfb
  41. endif
  42. ifeq (${ADK_LINUX_X86_ALIX},y)
  43. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  44. --disable-sse2 \
  45. --disable-sse \
  46. --enable-mmxext \
  47. --enable-mmx \
  48. --enable-3dnowext \
  49. --enable-3dnow
  50. else ifeq (${ADK_HARDWARE_IBM_X40},y)
  51. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  52. --enable-sse2 \
  53. --enable-sse \
  54. --enable-mmxext \
  55. --enable-mmx \
  56. --disable-3dnowext \
  57. --disable-3dnow
  58. else
  59. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  60. --disable-sse2 \
  61. --disable-sse \
  62. --disable-mmxext \
  63. --disable-3dnowext \
  64. --disable-mmx \
  65. --disable-3dnow
  66. endif
  67. ifeq ($(ADK_DEBUG),y)
  68. CONFIGURE_DEBUG= --enable-debug
  69. endif
  70. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  71. CONFIGURE_DIRECTFB= --enable-directfb
  72. else
  73. CONFIGURE_DIRECTFB= --disable-directfb
  74. endif
  75. CONFIGURE_ARGS:= --prefix=/usr \
  76. --enable-x11 \
  77. --confdir=/etc \
  78. --enable-cross-compile \
  79. --target=${ARCH}-linux \
  80. --cc=$(TARGET_CC) \
  81. --host-cc=$(HOSTCC) \
  82. --yasm='' \
  83. --disable-mencoder \
  84. --enable-fbdev \
  85. --enable-alsa \
  86. --enable-tv \
  87. --enable-v4l2 \
  88. --enable-png \
  89. --enable-jpeg \
  90. --enable-mad \
  91. --disable-faad-internal \
  92. --enable-libvorbis \
  93. --disable-ossaudio \
  94. --disable-vm \
  95. --disable-iconv \
  96. --disable-lirc \
  97. --disable-radio-v4l2 \
  98. --disable-faac \
  99. --disable-libdv \
  100. --disable-live \
  101. --disable-pvr \
  102. --disable-ftp \
  103. --disable-ivtv \
  104. --disable-dvdread-internal \
  105. --disable-libdvdcss-internal \
  106. --disable-freetype \
  107. --disable-mpg123 \
  108. --disable-tremor-internal \
  109. --disable-arts \
  110. --disable-esd \
  111. --disable-jack \
  112. --disable-openal \
  113. --disable-nas \
  114. --disable-sgiaudio \
  115. --disable-sunaudio \
  116. --disable-win32waveout \
  117. --disable-tga \
  118. --disable-pnm \
  119. --disable-md5sum \
  120. --disable-liblzo \
  121. --disable-sdl \
  122. --disable-xinerama \
  123. --disable-vidix \
  124. --disable-gl \
  125. --extra-cflags="${TCFLAGS} ${EXTRA_CFLAGS}" \
  126. ${CONFIGURE_CPU_OPTS} \
  127. ${CONFIGURE_DEBUG} \
  128. ${CONFIGURE_DIRECTFB}
  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