Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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-29987
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 416fa6a247987305d74572d03dc6dde7
  8. PKG_DESCR:= popular video player
  9. PKG_SECTION:= video
  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:= alix1c x86_qemu x86_64_qemu shuttle lemote
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,MPLAYER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. FAKE_FLAGS+= INSTALLSTRIP=''
  22. ifeq (${ADK_LINUX_X86_ALIX1C},y)
  23. CONFIGURE_CPU_OPTS:= \
  24. --disable-ssse3 \
  25. --disable-sse2 \
  26. --disable-sse \
  27. --enable-mmxext \
  28. --enable-mmx \
  29. --enable-3dnowext \
  30. --enable-3dnow
  31. else
  32. CONFIGURE_CPU_OPTS:= \
  33. --disable-ssse3 \
  34. --disable-sse2 \
  35. --disable-sse \
  36. --disable-mmxext \
  37. --disable-3dnowext \
  38. --disable-mmx \
  39. --disable-3dnow
  40. endif
  41. ifeq ($(ADK_DEBUG),y)
  42. CONFIGURE_DEBUG=--enable-debug
  43. endif
  44. pre-configure:
  45. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  46. ./configure \
  47. --enable-x11 \
  48. --prefix=/usr \
  49. --confdir=/etc \
  50. --enable-cross-compile \
  51. --target=$(REAL_GNU_TARGET_NAME) \
  52. --cc=$(TARGET_CC) \
  53. --host-cc=$(HOSTCC) \
  54. --disable-mencoder \
  55. --enable-fbdev \
  56. --enable-alsa \
  57. --enable-png \
  58. --enable-jpeg \
  59. --enable-mad \
  60. --disable-faad-internal \
  61. --enable-libvorbis \
  62. --disable-ossaudio \
  63. --disable-vm \
  64. --disable-iconv \
  65. --disable-lirc \
  66. --disable-radio-v4l2 \
  67. --disable-faac \
  68. --disable-libdv \
  69. --disable-live \
  70. --disable-pvr \
  71. --disable-ftp \
  72. --disable-v4l2 \
  73. --disable-ivtv \
  74. --disable-dvdread-internal \
  75. --disable-libdvdcss-internal \
  76. --disable-freetype \
  77. --disable-tremor-internal \
  78. --disable-arts \
  79. --disable-esd \
  80. --disable-jack \
  81. --disable-openal \
  82. --disable-nas \
  83. --disable-sgiaudio \
  84. --disable-sunaudio \
  85. --disable-win32waveout \
  86. --disable-tga \
  87. --disable-pnm \
  88. --disable-md5sum \
  89. --disable-liblzo \
  90. --disable-xinerama \
  91. --disable-vidix \
  92. ${CONFIGURE_CPU_OPTS} \
  93. ${CONFIGURE_DEBUG} \
  94. );
  95. post-install:
  96. ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
  97. ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
  98. include ${TOPDIR}/mk/pkg-bottom.mk