Makefile 2.5 KB

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