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.

68 lines
1.8 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_HASH:=b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=COPYING LICENSE
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_DEPENDS:=libvorbis
  18. include $(INCLUDE_DIR)/package.mk
  19. PKG_INSTALL=1
  20. define Package/libtheora
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=libtheora
  24. URL:=http://xiph.org/theora/
  25. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  26. DEPENDS:=+libogg
  27. endef
  28. define Package/libtheora/description
  29. Theora is Xiph.Org's first publicly released video codec, intended
  30. for use within the Foundation's Ogg multimedia streaming system.
  31. Theora is derived directly from On2's VP3 codec; Currently the
  32. encoders are nearly identical, but Theora will make use of new
  33. features supported by the decoder to improve over what is
  34. is possible with VP3.
  35. endef
  36. define Build/Configure
  37. $(call Build/Configure/Default, \
  38. --disable-examples \
  39. --disable-oggtest \
  40. --disable-vorbistest \
  41. --disable-sdltest \
  42. )
  43. endef
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(1)/usr/include/theora/
  46. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/theora/* $(1)/usr/include/theora/
  47. $(INSTALL_DIR) $(1)/usr/lib/
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  49. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  50. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  51. endef
  52. define Package/libtheora/install
  53. $(INSTALL_DIR) $(1)/usr/lib/
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libtheora))