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.

62 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2008-2014 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:=libogg
  9. PKG_VERSION:=1.3.5
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://downloads.xiph.org/releases/ogg/
  13. PKG_HASH:=c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libogg
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=libogg
  25. URL:=https://xiph.org/ogg/
  26. ABI_VERSION:=0
  27. endef
  28. define Package/libogg/description
  29. Ogg project codecs use the Ogg bitstream format to arrange the raw,
  30. compressed bitstream into a more robust, useful form. For example,
  31. the Ogg bitstream makes seeking, time stamping and error recovery
  32. possible, as well as mixing several sepearate, concurrent media
  33. streams into a single physical bitstream.
  34. endef
  35. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include/ogg/
  38. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/ogg/* $(1)/usr/include/ogg/
  39. $(INSTALL_DIR) $(1)/usr/lib/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  42. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  43. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  44. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
  45. endef
  46. define Package/libogg/install
  47. $(INSTALL_DIR) $(1)/usr/lib/
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libogg.so.* $(1)/usr/lib/
  49. endef
  50. $(eval $(call BuildPackage,libogg))