Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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:= ffmpeg
  5. PKG_VERSION:= 0.6.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 4f5d732d25eedfb072251b5314ba2093
  8. PKG_DESCR:= record, convert and stream audio & video
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libfaad2
  11. PKG_BUILDDEP:= faad2
  12. PKG_URL:= http://www.ffmpeg.org/
  13. PKG_SITES:= http://www.ffmpeg.org/releases/
  14. PKG_SUBPKGS:= FFMPEG FFPLAY
  15. PKGSD_FFPLAY:= ffmpeg based video player
  16. PKGSC_FFPLAY:= multimedia
  17. PKGSS_FFPLAY:= libsdl libpthread ffmpeg
  18. PKGSB_FFPLAY:= sdl
  19. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,FFMPEG,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,FFPLAY,ffplay,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_FFPLAY},${PKGSD_FFPLAY},${PKGSC_FFPLAY}))
  23. ifeq ($(ADK_TARGET_CPU_WITH_MMX),y)
  24. CONFIGURE_CPU_OPTS:= --enable-mmx
  25. else
  26. CONFIGURE_CPU_OPTS:= --disable-mmx
  27. endif
  28. ifeq ($(ADK_TARGET_CPU_WITH_MMXEXT),y)
  29. CONFIGURE_CPU_OPTS:= --enable-mmx2
  30. else
  31. CONFIGURE_CPU_OPTS:= --disable-mmx2
  32. endif
  33. ifeq ($(ADK_TARGET_CPU_WITH_SSE),y)
  34. CONFIGURE_CPU_OPTS:= --enable-sse
  35. else
  36. CONFIGURE_CPU_OPTS:= --disable-sse
  37. endif
  38. CONFIG_STYLE:= minimal
  39. CONFIGURE_ARGS:= --prefix=/usr \
  40. --target-os=linux \
  41. --arch=${CPU_ARCH} \
  42. --enable-cross-compile \
  43. --sysroot=${STAGING_TARGET_DIR} \
  44. --source-path=${WRKSRC} \
  45. --cross-prefix=${TARGET_CROSS} \
  46. --cc='$(TARGET_CC)' \
  47. --host-cc=$(CC_FOR_BUILD) \
  48. --disable-doc \
  49. --disable-debug \
  50. --disable-optimizations \
  51. --disable-stripping \
  52. --enable-shared \
  53. --enable-static \
  54. --disable-ffmpeg \
  55. --disable-ffserver \
  56. --enable-ffplay \
  57. --enable-gpl \
  58. --enable-swscale \
  59. --enable-postproc \
  60. --enable-libfaad \
  61. ${CONFIGURE_CPU_OPTS}
  62. post-install:
  63. ${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
  64. ${CP} ${WRKINST}/usr/lib/libavdevice.so* ${IDIR_FFMPEG}/usr/lib
  65. ${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
  66. ${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
  67. ${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib
  68. ${CP} ${WRKINST}/usr/lib/libpostproc.so* ${IDIR_FFMPEG}/usr/lib
  69. ${CP} ${WRKINST}/usr/lib/libswscale.so* ${IDIR_FFMPEG}/usr/lib
  70. ffplay-install:
  71. ${INSTALL_DIR} ${IDIR_FFPLAY}/usr/bin
  72. ${INSTALL_BIN} ${WRKINST}/usr/bin/ffplay ${IDIR_FFPLAY}/usr/bin
  73. include ${TOPDIR}/mk/pkg-bottom.mk