1
0

Makefile 3.0 KB

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