Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= d6142a9a5821d6a6262a6edb903faa24
  8. PKG_DESCR:= record, convert and stream audio & video
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libfaad2
  11. PKG_BUILDDEP+= faad2 sdl
  12. PKG_URL:= http://www.ffmpeg.org/
  13. PKG_SITES:= http://www.ffmpeg.org/releases/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. PKG_SECTION_FFPLAY:= multimedia
  16. PKG_DESCR_FFPLAY:= ffmpeg based video player
  17. PKG_DEPENDS_FFPLAY:= libsdl libpthread ffmpeg
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,FFMPEG,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,FFPLAY,ffplay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_FFPLAY},${PKG_DESCR_FFPLAY},${PKG_SECTION_FFPLAY}))
  21. SUB_INSTALLS-y:=
  22. SUB_INSTALLS-m:=
  23. SUB_INSTALLS-${ADK_PACKAGE_FFPLAY}+= ffplay-install
  24. ifeq ($(ADK_TARGET),alix1c)
  25. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  26. --disable-sse \
  27. --enable-amd3dnow \
  28. --enable-amd3dnowext \
  29. --enable-mmx \
  30. --enable-mmx2
  31. else
  32. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  33. --disable-sse \
  34. --disable-amd3dnow \
  35. --disable-amd3dnowext \
  36. --disable-mmx \
  37. --disable-mmx2
  38. endif
  39. # gcc 4.5 produces internal compiler error with -Os
  40. #TCFLAGS:=$(subst Os,O2,$(TCFLAGS))
  41. CONFIG_STYLE:= minimal
  42. CONFIGURE_ARGS:= --prefix=/usr \
  43. --target-os=linux \
  44. --arch=${CPU_ARCH} \
  45. --enable-cross-compile \
  46. --sysroot=${STAGING_DIR} \
  47. --source-path=${WRKSRC} \
  48. --cross-prefix=${TARGET_CROSS} \
  49. --cc=$(TARGET_CC) \
  50. --host-cc=$(HOSTCC) \
  51. --disable-debug \
  52. --disable-optimizations \
  53. --disable-stripping \
  54. --enable-shared \
  55. --enable-static \
  56. --disable-ffmpeg \
  57. --disable-ffserver \
  58. --enable-ffplay \
  59. --enable-gpl \
  60. --enable-swscale \
  61. --enable-postproc \
  62. --enable-libfaad \
  63. ${CONFIGURE_CPU_OPTS}
  64. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  65. ${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
  66. ${CP} ${WRKINST}/usr/lib/libavdevice.so* ${IDIR_FFMPEG}/usr/lib
  67. ${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
  68. ${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
  69. ${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib
  70. ${CP} ${WRKINST}/usr/lib/libpostproc.so* ${IDIR_FFMPEG}/usr/lib
  71. ${CP} ${WRKINST}/usr/lib/libswscale.so* ${IDIR_FFMPEG}/usr/lib
  72. ffplay-install:
  73. ${INSTALL_DIR} ${IDIR_FFPLAY}/usr/bin
  74. ${INSTALL_BIN} ${WRKINST}/usr/bin/ffplay ${IDIR_FFPLAY}/usr/bin
  75. include ${TOPDIR}/mk/pkg-bottom.mk