Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:= 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. --source-path=${WRKSRC} \
  27. --cross-prefix=${TARGET_CROSS} \
  28. --cc=$(TARGET_CC) \
  29. --host-cc=$(HOSTCC) \
  30. --disable-debug \
  31. --disable-stripping \
  32. --enable-small \
  33. --enable-shared \
  34. --enable-static \
  35. --disable-ffmpeg \
  36. --disable-ffplay \
  37. --disable-ffserver \
  38. --disable-vhook \
  39. --enable-gpl \
  40. --enable-swscale \
  41. --enable-postproc \
  42. --enable-libfaad \
  43. ${CONFIGURE_CPU_OPTS}
  44. post-install:
  45. ${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
  47. ${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
  48. ${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib
  49. include ${TOPDIR}/mk/pkg-bottom.mk