Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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:= zlib libncurses libmad alsa-lib libvorbis libogg libfaad2 libpthread libpng libjpeg
  11. PKG_URL:= http://www.mplayerhq.hu
  12. PKG_SITES:= http://openadk.org/distfiles/
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,MPLAYER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. BUILD_STYLE:= auto
  16. INSTALL_STYLE:= auto
  17. ifeq (${ADK_LINUX_X86_ALIX1C},y)
  18. CONFIGURE_CPU_OPTS:= \
  19. --disable-ssse3 \
  20. --disable-sse2 \
  21. --disable-sse \
  22. --enable-mmxext \
  23. --enable-mmx \
  24. --enable-3dnowext \
  25. --enable-3dnow
  26. else
  27. CONFIGURE_CPU_OPTS:= \
  28. --disable-ssse3 \
  29. --disable-sse2 \
  30. --disable-sse \
  31. --disable-mmxext \
  32. --disable-3dnowext \
  33. --disable-mmx \
  34. --disable-3dnow
  35. endif
  36. ifneq ($(ADK_DEBUG),)
  37. CONFIGURE_DEBUG=--enable-debug
  38. endif
  39. pre-configure:
  40. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  41. ./configure \
  42. --enable-x11 \
  43. --prefix=/usr \
  44. --confdir=/etc \
  45. --enable-cross-compile \
  46. --target=$(REAL_GNU_TARGET_NAME) \
  47. --cc=$(TARGET_CC) \
  48. --host-cc=$(HOSTCC) \
  49. --disable-mencoder \
  50. --enable-fbdev \
  51. --enable-alsa \
  52. --enable-png \
  53. --enable-jpeg \
  54. --enable-mad \
  55. --disable-faad-internal \
  56. --enable-libvorbis \
  57. --disable-ossaudio \
  58. --disable-vm \
  59. --disable-iconv \
  60. --disable-lirc \
  61. --disable-radio-v4l2 \
  62. --disable-faac \
  63. --disable-libdv \
  64. --disable-live \
  65. --disable-pvr \
  66. --disable-ftp \
  67. --disable-v4l2 \
  68. --disable-ivtv \
  69. --disable-dvdread-internal \
  70. --disable-libdvdcss-internal \
  71. --disable-freetype \
  72. --disable-tremor-internal \
  73. --disable-arts \
  74. --disable-esd \
  75. --disable-jack \
  76. --disable-openal \
  77. --disable-nas \
  78. --disable-sgiaudio \
  79. --disable-sunaudio \
  80. --disable-win32waveout \
  81. --disable-tga \
  82. --disable-pnm \
  83. --disable-md5sum \
  84. --disable-liblzo \
  85. ${CONFIGURE_CPU_OPTS} \
  86. ${CONFIGURE_DEBUG} \
  87. );
  88. post-install:
  89. ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
  90. ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
  91. include ${TOPDIR}/mk/pkg-bottom.mk