Makefile 2.7 KB

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