Makefile 2.5 KB

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