You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2008-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libtheora
  9. PKG_VERSION:=1.1.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://downloads.xiph.org/releases/theora/
  13. PKG_MD5SUM:=292ab65cedd5021d6b7ddd117e07cd8e
  14. PKG_FIXUP:=autoreconf
  15. PKG_BUILD_DEPENDS:=libvorbis
  16. include $(INCLUDE_DIR)/package.mk
  17. PKG_INSTALL=1
  18. define Package/libtheora
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=libtheora
  22. URL:=http://xiph.org/theora/
  23. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  24. DEPENDS:=+libogg
  25. endef
  26. define Package/libtheora/description
  27. Theora is Xiph.Org's first publicly released video codec, intended
  28. for use within the Foundation's Ogg multimedia streaming system.
  29. Theora is derived directly from On2's VP3 codec; Currently the
  30. encoders are nearly identical, but Theora will make use of new
  31. features supported by the decoder to improve over what is
  32. is possible with VP3.
  33. endef
  34. define Build/Configure
  35. $(call Build/Configure/Default, \
  36. --disable-examples \
  37. --disable-oggtest \
  38. --disable-vorbistest \
  39. --disable-sdltest \
  40. )
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include/theora/
  44. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/theora/* $(1)/usr/include/theora/
  45. $(INSTALL_DIR) $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  48. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/libtheora/install
  51. $(INSTALL_DIR) $(1)/usr/lib/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,libtheora))