Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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:= libvpx
  5. PKG_VERSION:= 1.3.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 14783a148872f2d08629ff7c694eb31f
  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_I686:=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 $(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_ARM),y)
  22. CONFIGURE_ARGS+= --target=armv5te-linux-gcc
  23. endif
  24. ifeq ($(ADK_TARGET_SYSTEM_CUBOX_I),y)
  25. CONFIGURE_ARGS+= --target=armv7-linux-gcc
  26. endif
  27. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  28. CONFIGURE_ARGS+= --target=armv6-linux-gcc
  29. endif
  30. ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS),y)
  31. CONFIGURE_ARGS+= --target=armv5te-linux-gcc
  32. endif
  33. ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
  34. CONFIGURE_ARGS+= --target=armv5te-linux-gcc
  35. endif
  36. ifeq ($(ADK_TARGET_SYSTEM_IBM_X40),y)
  37. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  38. endif
  39. ifeq ($(ADK_TARGET_SYSTEM_INTEL_ATOM),y)
  40. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  41. endif
  42. ifeq ($(ADK_TARGET_SYSTEM_QEMU_I686),y)
  43. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  44. endif
  45. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_WRAP),y)
  46. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  47. endif
  48. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX2D13),y)
  49. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  50. endif
  51. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX1C),y)
  52. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  53. endif
  54. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2),y)
  55. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  56. endif
  57. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
  58. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  59. endif
  60. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB4XX),y)
  61. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  62. endif
  63. ifeq ($(ADK_TARGET_SYSTEM_LINKSYS_AG241),y)
  64. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  65. endif
  66. ifeq ($(ADK_TARGET_SYSTEM_FON_FON2100),y)
  67. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  68. endif
  69. ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  70. CONFIGURE_ARGS+= --target=mips64-linux-gcc
  71. endif
  72. ifeq ($(ADK_TARGET_SYSTEM_BROADCOM_BCM47XX),y)
  73. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  74. endif
  75. ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPSEL),y)
  76. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  77. endif
  78. ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS),y)
  79. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  80. endif
  81. CONFIGURE_ARGS+= --prefix=/usr \
  82. --disable-install-docs \
  83. --disable-install-bins \
  84. --enable-install-libs \
  85. --disable-unit-tests \
  86. --disable-docs \
  87. --disable-examples \
  88. --enable-shared
  89. ALL_TARGET:=
  90. post-extract:
  91. chmod a+x $(WRKBUILD)/build/make/*.sh
  92. chmod a+x $(WRKBUILD)/build/make/*.pl
  93. libvpx-install:
  94. $(INSTALL_DIR) $(IDIR_LIBVPX)/usr/lib
  95. $(CP) $(WRKINST)/usr/lib/libvpx.so* \
  96. $(IDIR_LIBVPX)/usr/lib
  97. include ${TOPDIR}/mk/pkg-bottom.mk