2014-08-20 15:00:45 +02:00
|
|
|
#
|
2015-12-30 22:13:03 +01:00
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
2014-08-20 15:00:45 +02: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 10:39:20 +01:00
|
|
|
PKG_VERSION:=1.5.1
|
2024-03-23 10:40:34 +01:00
|
|
|
PKG_RELEASE:=2
|
2014-08-20 15:00:45 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2024-02-05 16:49:38 +01:00
|
|
|
PKG_SOURCE_URL:=https://downloads.xiph.org/releases/opus
|
2024-03-20 10:39:20 +01:00
|
|
|
PKG_HASH:=b84610959b8d417b611aa12a22565e0a3732097c6389d19098d844543e340f85
|
2014-08-20 15:00:45 +02:00
|
|
|
|
2018-10-19 03:19:06 +02:00
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitchensync.net>, Ian Leonard <antonlacon@gmail.com>
|
2014-08-20 15:00:45 +02:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2014-11-25 08:42:42 +01:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2018-10-19 03:19:06 +02:00
|
|
|
PKG_CPE_ID:=cpe:/a:opus-codec:opus
|
2014-08-20 15:00:45 +02:00
|
|
|
|
2018-10-19 03:19:06 +02:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-08-20 15:00:45 +02:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libopus
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2015-12-30 22:13:03 +01:00
|
|
|
TITLE:=OPUS Audio Codec
|
2018-10-19 03:19:06 +02:00
|
|
|
URL:=https://opus-codec.org
|
2014-08-20 15:00:45 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libopus/description
|
2015-05-17 21:56:27 +02: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 15:00:45 +02:00
|
|
|
is also intended for storage and streaming applications.
|
|
|
|
endef
|
|
|
|
|
2024-03-23 10:40:34 +01:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-doc \
|
|
|
|
--disable-extra-programs
|
2015-05-17 21:56:27 +02:00
|
|
|
|
2015-12-30 22:13:03 +01:00
|
|
|
ifeq ($(CONFIG_SOFT_FLOAT),y)
|
2024-03-23 10:40:34 +01:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-fixed-point
|
2015-12-30 22:13:03 +01:00
|
|
|
endif
|
|
|
|
|
2020-05-12 10:03:07 +02:00
|
|
|
ifneq ($(findstring neon,$(CONFIG_CPU_TYPE))$(findstring aarch64,$(CONFIG_ARCH)),)
|
2024-03-23 10:40:34 +01:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-fixed-point
|
2017-07-11 17:51:15 +02:00
|
|
|
endif
|
|
|
|
|
2016-11-23 23:22:43 +01:00
|
|
|
CPU_ASM_BLACKLIST:=xscale arm926ej-s
|
|
|
|
ifneq ($(findstring $(call qstrip,$(CONFIG_CPU_TYPE)),$(CPU_ASM_BLACKLIST)),)
|
2024-03-23 10:40:34 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-asm
|
2016-11-23 23:22:43 +01:00
|
|
|
endif
|
|
|
|
|
2014-08-20 15:00:45 +02: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))
|