Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= ffmpeg
  7. PKG_VERSION:= 0.5
  8. PKG_RELEASE:= 2
  9. PKG_MD5SUM:= be8503f15c3b81ba00eb8379ca8dcf33
  10. PKG_DESCR:= cross-platform solution to record, convert and stream audio and video
  11. PKG_SECTION:= sound
  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. CONFIGURE_STYLE:= manual
  18. BUILD_STYLE:= auto
  19. INSTALL_STYLE:= auto
  20. include ${TOPDIR}/mk/cpu.mk
  21. do-configure:
  22. cd ${WRKBUILD}; \
  23. env ${CONFIGURE_ENV} \
  24. ${BASH} ${WRKSRC}/configure \
  25. --prefix=/usr \
  26. --arch=${CPU_ARCH} \
  27. --enable-cross-compile \
  28. --cross-prefix=${TARGET_CROSS} \
  29. --cc=$(TARGET_CC) \
  30. --host-cc=$(HOSTCC) \
  31. --disable-debug \
  32. --disable-stripping \
  33. --enable-small \
  34. --enable-shared \
  35. --enable-static \
  36. --disable-ffmpeg \
  37. --disable-ffplay \
  38. --disable-ffserver \
  39. --disable-vhook \
  40. --enable-gpl \
  41. --enable-swscale \
  42. --enable-postproc \
  43. --enable-libfaad \
  44. ${CONFIGURE_CPU_OPTS}
  45. post-install:
  46. ${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
  47. ${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
  48. ${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
  49. ${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib
  50. include ${TOPDIR}/mk/pkg-bottom.mk