Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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
  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. SUB_INSTALLS-y:=
  24. SUB_INSTALLS-m:=
  25. SUB_INSTALLS-${ADK_PACKAGE_FFPLAY}+= ffplay-install
  26. ifeq ($(ADK_TARGET),alix1c)
  27. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  28. --disable-sse \
  29. --enable-amd3dnow \
  30. --enable-amd3dnowext \
  31. --enable-mmx \
  32. --enable-mmx2
  33. else
  34. CONFIGURE_CPU_OPTS:= --disable-ssse3 \
  35. --disable-sse \
  36. --disable-amd3dnow \
  37. --disable-amd3dnowext \
  38. --disable-mmx \
  39. --disable-mmx2
  40. endif
  41. # gcc 4.5 produces internal compiler error with -Os
  42. #TCFLAGS:=$(subst Os,O2,$(TCFLAGS))
  43. CONFIG_STYLE:= minimal
  44. CONFIGURE_ARGS:= --prefix=/usr \
  45. --target-os=linux \
  46. --arch=${CPU_ARCH} \
  47. --enable-cross-compile \
  48. --sysroot=${STAGING_DIR} \
  49. --source-path=${WRKSRC} \
  50. --cross-prefix=${TARGET_CROSS} \
  51. --cc=$(TARGET_CC) \
  52. --host-cc=$(HOSTCC) \
  53. --disable-debug \
  54. --disable-optimizations \
  55. --disable-stripping \
  56. --enable-shared \
  57. --enable-static \
  58. --disable-ffmpeg \
  59. --disable-ffserver \
  60. --enable-ffplay \
  61. --enable-gpl \
  62. --enable-swscale \
  63. --enable-postproc \
  64. --enable-libfaad \
  65. ${CONFIGURE_CPU_OPTS}
  66. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  67. ${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
  68. ${CP} ${WRKINST}/usr/lib/libavdevice.so* ${IDIR_FFMPEG}/usr/lib
  69. ${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
  70. ${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
  71. ${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib
  72. ${CP} ${WRKINST}/usr/lib/libpostproc.so* ${IDIR_FFMPEG}/usr/lib
  73. ${CP} ${WRKINST}/usr/lib/libswscale.so* ${IDIR_FFMPEG}/usr/lib
  74. ffplay-install:
  75. ${INSTALL_DIR} ${IDIR_FFPLAY}/usr/bin
  76. ${INSTALL_BIN} ${WRKINST}/usr/bin/ffplay ${IDIR_FFPLAY}/usr/bin
  77. include ${TOPDIR}/mk/pkg-bottom.mk