Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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:= 0.9.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= bd888cffde8d9c3061c7fd719b0cd4ce
  8. PKG_DESCR:= VP8 codec library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.webmproject.org/about/
  11. PKG_SITES:= http://webm.googlecode.com/files/
  12. PKG_SYSTEM_DEPENDS:= sharp-zaurus ibm-x40 lemote-yeelong
  13. DISTFILES:= ${PKG_NAME}-v${PKG_VERSION}-p1.tar.bz2
  14. WRKDIST= $(WRKDIR)/${PKG_NAME}-v${PKG_VERSION}-p1
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,LIBVPX,libvpx,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= minimal
  18. ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS),y)
  19. CONFIGURE_ARGS+= --target=armv5te-linux-gcc
  20. endif
  21. ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
  22. CONFIGURE_ARGS+= --target=armv5te-linux-gcc
  23. endif
  24. ifeq ($(ADK_TARGET_SYSTEM_IBM_X40),y)
  25. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  26. endif
  27. ifeq ($(ADK_TARGET_SYSTEM_INTEL_ATOM),y)
  28. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  29. endif
  30. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_WRAP),y)
  31. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  32. endif
  33. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX2D13),y)
  34. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  35. endif
  36. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX1C),y)
  37. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  38. endif
  39. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2),y)
  40. CONFIGURE_ARGS+= --target=x86-linux-gcc --as=yasm
  41. endif
  42. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
  43. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  44. endif
  45. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB4XX),y)
  46. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  47. endif
  48. ifeq ($(ADK_TARGET_SYSTEM_LINKSYS_AG241),y)
  49. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  50. endif
  51. ifeq ($(ADK_TARGET_SYSTEM_FON_FON2100),y)
  52. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  53. endif
  54. ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  55. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  56. endif
  57. ifeq ($(ADK_TARGET_SYSTEM_BROADCOM_BCM47XX),y)
  58. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  59. endif
  60. ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPSEL),y)
  61. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  62. endif
  63. ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS),y)
  64. CONFIGURE_ARGS+= --target=mips32-linux-gcc
  65. endif
  66. CONFIGURE_ARGS+= --prefix=/usr \
  67. --disable-install-docs \
  68. --disable-install-bins \
  69. --enable-install-libs \
  70. --disable-examples \
  71. --enable-shared
  72. ALL_TARGET:=
  73. libvpx-install:
  74. $(INSTALL_DIR) $(IDIR_LIBVPX)/usr/lib
  75. $(CP) $(WRKINST)/usr/lib/libvpx.so* \
  76. $(IDIR_LIBVPX)/usr/lib
  77. include ${TOPDIR}/mk/pkg-bottom.mk