2 # Copyright (C) 2014-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://downloads.xiph.org
/releases
/opus
16 PKG_HASH
:=b84610959b8d417b611aa12a22565e0a3732097c6389d19098d844543e340f85
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitchensync.net
>, Ian Leonard
<antonlacon@gmail.com
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:opus-codec
:opus
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/meson.mk
29 define Package
/libopus
32 TITLE
:=OPUS Audio Codec
33 URL
:=https
://opus-codec.org
36 define Package
/libopus
/description
37 Opus is a totally open
, royalty-free
, highly versatile audio codec. Opus is
38 unmatched for interactive speech and music transmission over the Internet
, but
39 is also intended for storage and streaming applications.
44 -Dextra-programs
=disabled
46 ifeq ($(CONFIG_SOFT_FLOAT
),y
)
51 ifneq ($(findstring neon
,$(CONFIG_CPU_TYPE
))$(findstring aarch64
,$(CONFIG_ARCH
)),)
56 CPU_ASM_BLACKLIST
:=xscale arm926ej-s
57 ifneq ($(findstring $(call qstrip
,$(CONFIG_CPU_TYPE
)),$(CPU_ASM_BLACKLIST
)),)
58 MESON_ARGS
+= -Dasm
=disabled
61 define Build
/InstallDev
62 $(INSTALL_DIR
) $(1)/usr
/include
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/opus
$(1)/usr
/include/
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libopus.so
* $(1)/usr
/lib
/
66 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/opus.
pc $(1)/usr
/lib
/pkgconfig
/
70 define Package
/libopus
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libopus.so.
* $(1)/usr
/lib
/
75 $(eval
$(call BuildPackage
,libopus
))