Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= libvpx
  5. PKG_VERSION:= 1.3.0
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= d3dcc8d84af51c6c382b214397c62402e37a799e8ebcda6f4217aef0010451a9
  8. PKG_DESCR:= vp8/vp9 codec library
  9. PKG_SECTION:= libs/video
  10. PKG_URL:= http://www.webmproject.org/about/
  11. PKG_SITES:= https://webm.googlecode.com/files/
  12. PKG_OPTS:= dev
  13. PKG_BUILDDEP_IBM_X40:= yasm-host
  14. PKG_BUILDDEP_QEMU_X86:= yasm-host
  15. PKG_ARCH_DEPENDS:= !m68k
  16. DISTFILES:= ${PKG_NAME}-v${PKG_VERSION}.tar.bz2
  17. WRKDIST= $(WRKDIR)/${PKG_NAME}-v${PKG_VERSION}
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,LIBVPX,libvpx,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. CONFIG_STYLE:= minimal
  21. ifeq ($(ADK_TARGET_SYSTEM_QEMU_XTENSA),y)
  22. CONFIGURE_ARGS+= --target=generic-gnu
  23. endif
  24. ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
  25. CONFIGURE_ARGS+= --target=armv5te-linux-gcc
  26. endif
  27. ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y)
  28. CONFIGURE_ARGS+= --target=armv7-linux-gcc
  29. endif
  30. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  31. CONFIGURE_ARGS+= --target=armv6-linux-gcc
  32. endif
  33. ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS),y)
  34. CONFIGURE_ARGS+= --target=armv5te-linux-gcc
  35. endif
  36. ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
  37. CONFIGURE_ARGS+= --target=armv5te-linux-gcc
  38. endif
  39. ifeq ($(ADK_TARGET_SYSTEM_IBM_X40),y)
  40. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  41. endif
  42. ifeq ($(ADK_TARGET_SYSTEM_INTEL_ATOM),y)
  43. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  44. endif
  45. ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86),y)
  46. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  47. endif
  48. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_WRAP),y)
  49. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  50. endif
  51. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX2D13),y)
  52. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  53. endif
  54. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX1C),y)
  55. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  56. endif
  57. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2),y)
  58. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  59. endif
  60. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
  61. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  62. endif
  63. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB4XX),y)
  64. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  65. endif
  66. ifeq ($(ADK_TARGET_SYSTEM_LINKSYS_AG241),y)
  67. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  68. endif
  69. ifeq ($(ADK_TARGET_SYSTEM_FON_FON2100),y)
  70. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  71. endif
  72. ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  73. CONFIGURE_ARGS+= --target=mips64-linux-gcc
  74. endif
  75. ifeq ($(ADK_TARGET_SYSTEM_BROADCOM_BCM47XX),y)
  76. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  77. endif
  78. ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPSEL),y)
  79. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  80. endif
  81. ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS),y)
  82. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  83. endif
  84. CONFIGURE_ARGS+= --prefix=/usr \
  85. --disable-install-docs \
  86. --disable-install-bins \
  87. --enable-install-libs \
  88. --disable-unit-tests \
  89. --disable-docs \
  90. --disable-examples \
  91. --enable-shared
  92. ALL_TARGET:=
  93. post-extract:
  94. chmod a+x $(WRKBUILD)/build/make/*.sh
  95. chmod a+x $(WRKBUILD)/build/make/*.pl
  96. libvpx-install:
  97. $(INSTALL_DIR) $(IDIR_LIBVPX)/usr/lib
  98. $(CP) $(WRKINST)/usr/lib/libvpx.so* \
  99. $(IDIR_LIBVPX)/usr/lib
  100. include ${ADK_TOPDIR}/mk/pkg-bottom.mk