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