1
0

Makefile 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  24. ifeq ($(ADK_TARGET_CPU_WITH_MMX),y)
  25. CONFIGURE_CPU_OPTS:= --enable-mmx
  26. else
  27. CONFIGURE_CPU_OPTS:= --disable-mmx
  28. endif
  29. ifeq ($(ADK_TARGET_CPU_WITH_MMXEXT),y)
  30. CONFIGURE_CPU_OPTS:= --enable-mmx2
  31. else
  32. CONFIGURE_CPU_OPTS:= --disable-mmx2
  33. endif
  34. ifeq ($(ADK_TARGET_CPU_WITH_SSE),y)
  35. CONFIGURE_CPU_OPTS:= --enable-sse
  36. else
  37. CONFIGURE_CPU_OPTS:= --disable-sse
  38. endif
  39. CONFIG_STYLE:= minimal
  40. CONFIGURE_ARGS:= --prefix=/usr \
  41. --target-os=linux \
  42. --arch=${CPU_ARCH} \
  43. --enable-cross-compile \
  44. --sysroot=${STAGING_TARGET_DIR} \
  45. --source-path=${WRKSRC} \
  46. --cross-prefix=${TARGET_CROSS} \
  47. --cc='$(TARGET_CC)' \
  48. --host-cc=$(CC_FOR_BUILD) \
  49. --disable-doc \
  50. --disable-debug \
  51. --disable-optimizations \
  52. --disable-stripping \
  53. --enable-shared \
  54. --enable-static \
  55. --disable-ffmpeg \
  56. --disable-ffserver \
  57. --enable-ffplay \
  58. --enable-gpl \
  59. --enable-swscale \
  60. --enable-postproc \
  61. --enable-libfaad \
  62. ${CONFIGURE_CPU_OPTS}
  63. post-install:
  64. ${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
  65. ${CP} ${WRKINST}/usr/lib/libavdevice.so* ${IDIR_FFMPEG}/usr/lib
  66. ${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
  67. ${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
  68. ${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib
  69. ${CP} ${WRKINST}/usr/lib/libpostproc.so* ${IDIR_FFMPEG}/usr/lib
  70. ${CP} ${WRKINST}/usr/lib/libswscale.so* ${IDIR_FFMPEG}/usr/lib
  71. ffplay-install:
  72. ${INSTALL_DIR} ${IDIR_FFPLAY}/usr/bin
  73. ${INSTALL_BIN} ${WRKINST}/usr/bin/ffplay ${IDIR_FFPLAY}/usr/bin
  74. include ${TOPDIR}/mk/pkg-bottom.mk