Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:= 1
  7. PKG_MD5SUM:= d6142a9a5821d6a6262a6edb903faa24
  8. PKG_DESCR:= solution to record, convert and stream audio and video
  9. PKG_SECTION:= sound
  10. PKG_DEPENDS:= libfaad2
  11. PKG_BUILDDEP+= faad2
  12. PKG_URL:= http://www.ffmpeg.org
  13. PKG_SITES:= http://www.ffmpeg.org/releases/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,FFMPEG,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= minimal
  18. include ${TOPDIR}/mk/cpu.mk
  19. CONFIGURE_ARGS:= --prefix=/usr \
  20. --target-os=linux \
  21. --arch=${CPU_ARCH} \
  22. --enable-cross-compile \
  23. --source-path=${WRKSRC} \
  24. --cross-prefix=${TARGET_CROSS} \
  25. --cc=$(TARGET_CC) \
  26. --host-cc=$(HOSTCC) \
  27. --disable-debug \
  28. --disable-stripping \
  29. --enable-small \
  30. --enable-shared \
  31. --enable-static \
  32. --disable-ffmpeg \
  33. --disable-ffplay \
  34. --disable-ffserver \
  35. --enable-gpl \
  36. --enable-swscale \
  37. --enable-postproc \
  38. --enable-libfaad \
  39. ${CONFIGURE_CPU_OPTS}
  40. post-install:
  41. ${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
  42. ${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
  43. ${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib
  45. include ${TOPDIR}/mk/pkg-bottom.mk