1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.5
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= be8503f15c3b81ba00eb8379ca8dcf33
  8. PKG_DESCR:= cross-platform solution to record, convert and stream audio and video
  9. PKG_SECTION:= sound
  10. PKG_URL:= http://www.ffmpeg.org
  11. PKG_SITES:= http://www.ffmpeg.org/releases/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,FFMPEG,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIGURE_STYLE:= manual
  16. BUILD_STYLE:= auto
  17. INSTALL_STYLE:= auto
  18. include ${TOPDIR}/mk/cpu.mk
  19. do-configure:
  20. cd ${WRKBUILD}; \
  21. env ${CONFIGURE_ENV} \
  22. ${BASH} ${WRKSRC}/configure \
  23. --prefix=/usr \
  24. --arch=${CPU_ARCH} \
  25. --enable-cross-compile \
  26. --cross-prefix=${TARGET_CROSS} \
  27. --cc=$(TARGET_CC) \
  28. --host-cc=$(HOSTCC) \
  29. --disable-debug \
  30. --disable-stripping \
  31. --enable-small \
  32. --enable-shared \
  33. --enable-static \
  34. --disable-ffmpeg \
  35. --disable-ffplay \
  36. --disable-ffserver \
  37. --disable-vhook \
  38. --enable-gpl \
  39. --enable-swscale \
  40. --enable-postproc \
  41. --enable-libfaad \
  42. ${CONFIGURE_CPU_OPTS}
  43. post-install:
  44. ${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
  45. ${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
  47. ${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib
  48. include ${TOPDIR}/mk/pkg-bottom.mk