2014-08-20 21:00:45 +08:00
|
|
|
#
|
2015-12-31 05:13:03 +08:00
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
2014-08-20 21:00:45 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=opus
|
2024-03-20 17:39:20 +08:00
|
|
|
PKG_VERSION:=1.5.1
|
2024-02-05 23:49:38 +08:00
|
|
|
PKG_RELEASE:=1
|
2014-08-20 21:00:45 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2024-02-05 23:49:38 +08:00
|
|
|
PKG_SOURCE_URL:=https://downloads.xiph.org/releases/opus
|
2024-03-20 17:39:20 +08:00
|
|
|
PKG_HASH:=b84610959b8d417b611aa12a22565e0a3732097c6389d19098d844543e340f85
|
2014-08-20 21:00:45 +08:00
|
|
|
|
2018-10-19 09:19:06 +08:00
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitchensync.net>, Ian Leonard <antonlacon@gmail.com>
|
2014-08-20 21:00:45 +08:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2014-11-25 15:42:42 +08:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2018-10-19 09:19:06 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:opus-codec:opus
|
2014-08-20 21:00:45 +08:00
|
|
|
|
2018-10-19 09:19:06 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-08-20 21:00:45 +08:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2024-03-20 17:39:20 +08:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2014-08-20 21:00:45 +08:00
|
|
|
|
|
|
|
define Package/libopus
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2015-12-31 05:13:03 +08:00
|
|
|
TITLE:=OPUS Audio Codec
|
2018-10-19 09:19:06 +08:00
|
|
|
URL:=https://opus-codec.org
|
2014-08-20 21:00:45 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libopus/description
|
2015-05-18 03:56:27 +08:00
|
|
|
Opus is a totally open, royalty-free, highly versatile audio codec. Opus is
|
|
|
|
unmatched for interactive speech and music transmission over the Internet, but
|
2014-08-20 21:00:45 +08:00
|
|
|
is also intended for storage and streaming applications.
|
|
|
|
endef
|
|
|
|
|
2024-03-20 17:39:20 +08:00
|
|
|
MESON_ARGS+= \
|
|
|
|
-Ddocs=disabled \
|
|
|
|
-Dextra-programs=disabled
|
2015-05-18 03:56:27 +08:00
|
|
|
|
2015-12-31 05:13:03 +08:00
|
|
|
ifeq ($(CONFIG_SOFT_FLOAT),y)
|
2024-03-20 17:39:20 +08:00
|
|
|
MESON_ARGS+= \
|
|
|
|
-Dfixed-point=true
|
2015-12-31 05:13:03 +08:00
|
|
|
endif
|
|
|
|
|
2020-05-12 16:03:07 +08:00
|
|
|
ifneq ($(findstring neon,$(CONFIG_CPU_TYPE))$(findstring aarch64,$(CONFIG_ARCH)),)
|
2024-03-20 17:39:20 +08:00
|
|
|
MESON_ARGS+= \
|
|
|
|
-Dfixed-point=true
|
2017-07-11 23:51:15 +08:00
|
|
|
endif
|
|
|
|
|
2016-11-24 06:22:43 +08:00
|
|
|
CPU_ASM_BLACKLIST:=xscale arm926ej-s
|
|
|
|
ifneq ($(findstring $(call qstrip,$(CONFIG_CPU_TYPE)),$(CPU_ASM_BLACKLIST)),)
|
2024-03-20 17:39:20 +08:00
|
|
|
MESON_ARGS+= -Dasm=disabled
|
2016-11-24 06:22:43 +08:00
|
|
|
endif
|
|
|
|
|
2014-08-20 21:00:45 +08:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/opus $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopus.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/opus.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libopus/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopus.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libopus))
|