Makefile 3.6 KB

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