Makefile 3.5 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-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 lemote
  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_MIPS64_LEMOTE},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_DIR}/usr/include/directfb
  38. endif
  39. ifeq (${ADK_LINUX_X86_ALIX1C},y)
  40. CONFIGURE_CPU_OPTS:= \
  41. --disable-ssse3 \
  42. --disable-sse2 \
  43. --disable-sse \
  44. --enable-mmxext \
  45. --enable-mmx \
  46. --enable-3dnowext \
  47. --enable-3dnow
  48. else
  49. CONFIGURE_CPU_OPTS:= \
  50. --disable-ssse3 \
  51. --disable-sse2 \
  52. --disable-sse \
  53. --disable-mmxext \
  54. --disable-3dnowext \
  55. --disable-mmx \
  56. --disable-3dnow
  57. endif
  58. ifeq ($(ADK_DEBUG),y)
  59. CONFIGURE_DEBUG= --enable-debug
  60. endif
  61. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  62. CONFIGURE_DIRECTFB= --enable-directfb
  63. else
  64. CONFIGURE_DIRECTFB= --disable-directfb
  65. endif
  66. CONFIGURE_ARGS:= --prefix=/usr \
  67. --enable-x11 \
  68. --confdir=/etc \
  69. --enable-cross-compile \
  70. --target=${ARCH}-linux \
  71. --cc=$(TARGET_CC) \
  72. --host-cc=$(HOSTCC) \
  73. --yasm='' \
  74. --disable-mencoder \
  75. --enable-fbdev \
  76. --enable-alsa \
  77. --enable-tv \
  78. --enable-v4l2 \
  79. --enable-png \
  80. --enable-jpeg \
  81. --enable-mad \
  82. --disable-faad-internal \
  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="${TCFLAGS} ${EXTRA_CFLAGS}" \
  117. ${CONFIGURE_CPU_OPTS} \
  118. ${CONFIGURE_DEBUG} \
  119. ${CONFIGURE_DIRECTFB}
  120. post-install:
  121. ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
  122. ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
  123. include ${TOPDIR}/mk/pkg-bottom.mk