Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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.0rc2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 7e27e535c2d267637df34898f1b91707
  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://www7.mplayerhq.hu/MPlayer/releases/
  13. DISTFILES:= MPlayer-${PKG_VERSION}.tar.bz2
  14. WRKDIST= ${WRKDIR}/MPlayer-${PKG_VERSION}
  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_X11),y)
  20. CONFIGURE_ARG:= --enable-x11
  21. else
  22. CONFIGURE_ARG:= --disable-x11
  23. endif
  24. ifeq (${ADK_LINUX_X86_ALIX1C},y)
  25. CONFIGURE_CPU_OPTS:= \
  26. --disable-ssse3 \
  27. --disable-sse2 \
  28. --disable-sse \
  29. --enable-mmxext \
  30. --enable-3dnowext \
  31. --enable-mmx \
  32. --enable-3dnow
  33. else
  34. CONFIGURE_CPU_OPTS:= \
  35. --disable-ssse3 \
  36. --disable-sse2 \
  37. --disable-sse \
  38. --disable-mmxext \
  39. --disable-3dnowext \
  40. --disable-mmx \
  41. --disable-3dnow
  42. endif
  43. pre-configure:
  44. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  45. ./configure \
  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. --with-extraincdir=$(STAGING_DIR)/usr/include \
  53. --with-extralibdir=$(STAGING_DIR)/usr/lib \
  54. --disable-mencoder \
  55. --enable-fbdev \
  56. --enable-alsa \
  57. --enable-png \
  58. --enable-jpeg \
  59. --enable-mad \
  60. --enable-faad-external \
  61. --disable-faad-internal \
  62. --enable-libvorbis \
  63. --disable-ossaudio \
  64. --disable-vm \
  65. --disable-iconv \
  66. --disable-lirc \
  67. --disable-radio-v4l2 \
  68. --disable-faac \
  69. --disable-libdv \
  70. --disable-live \
  71. --disable-pvr \
  72. --disable-ftp \
  73. --disable-v4l2 \
  74. --disable-ivtv \
  75. --disable-vidix-internal \
  76. --disable-dvdread-internal \
  77. --disable-libdvdcss-internal \
  78. --disable-freetype \
  79. --disable-tremor-internal \
  80. --disable-arts \
  81. --disable-esd \
  82. --disable-polyp \
  83. --disable-jack \
  84. --disable-openal \
  85. --disable-nas \
  86. --disable-sgiaudio \
  87. --disable-sunaudio \
  88. --disable-win32waveout \
  89. --disable-tga \
  90. --disable-pnm \
  91. --disable-md5sum \
  92. --disable-liblzo \
  93. ${CONFIGURE_CPU_OPTS} \
  94. ${CONFIGURE_ARG} \
  95. );
  96. post-install:
  97. ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
  98. ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
  99. include ${TOPDIR}/mk/pkg-bottom.mk