Makefile 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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-31648
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= eeb9219f9015e0e0dfbf4a70efefb751
  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. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  16. PKG_BUILDDEP+= DirectFB
  17. endif
  18. PKG_URL:= http://www.mplayerhq.hu
  19. PKG_SITES:= http://openadk.org/distfiles/
  20. PKG_FLAVOURS:= WITH_DIRECTFB
  21. PKGFS_WITH_DIRECTFB:= directfb
  22. PKGFD_WITH_DIRECTFB:= enable DirectFB video output support
  23. PKG_TARGET_DEPENDS:= alix1c x86_qemu x86_64_qemu shuttle lemote
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,MPLAYER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. # gcc 4.5 produces internal compiler error with -Os
  27. #TCFLAGS:=$(subst Os,O2,$(TCFLAGS))
  28. CONFIG_STYLE:= minimal
  29. FAKE_FLAGS+= INSTALLSTRIP=''
  30. ifeq (${ADK_LINUX_MIPS64_LEMOTE},y)
  31. EXTRA_CFLAGS:= -DARCH_MIPS64
  32. endif
  33. # Somehow this include path is missing here, although other
  34. # applications build fine against DirectFB. There is also a
  35. # related patch to allow configure to find out the DirectFB
  36. # version number.
  37. ifeq (${ADK_PACKAGE_MPLAYER_WITH_DIRECTFB},y)
  38. TCFLAGS+= -I${STAGING_DIR}/usr/include/directfb
  39. endif
  40. ifeq (${ADK_LINUX_X86_ALIX1C},y)
  41. CONFIGURE_CPU_OPTS:= \
  42. --disable-ssse3 \
  43. --disable-sse2 \
  44. --disable-sse \
  45. --enable-mmxext \
  46. --enable-mmx \
  47. --enable-3dnowext \
  48. --enable-3dnow
  49. else
  50. CONFIGURE_CPU_OPTS:= \
  51. --disable-ssse3 \
  52. --disable-sse2 \
  53. --disable-sse \
  54. --disable-mmxext \
  55. --disable-3dnowext \
  56. --disable-mmx \
  57. --disable-3dnow
  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=$(HOSTCC) \
  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