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
:=http
://downloads.xiph.org
/releases
/opus
/
16 PKG_MD5SUM
:=a2c09d995d0885665ff83b5df2505a5f
17 PKG_HASH
:=9122b6b380081dd2665189f97bfd777f04f92dc3ab6698eea1dbb27ad59d8692
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_MAINTAINER
:=Ted Hess
<thess@kitchensync.net
> Ian Leonard
<antonlacon@gmail.com
>
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libopus
30 TITLE
:=OPUS Audio Codec
31 URL
:=http
://opus-codec.org
/
34 define Package
/libopus
/description
35 Opus is a totally open
, royalty-free
, highly versatile audio codec. Opus is
36 unmatched for interactive speech and music transmission over the Internet
, but
37 is also intended for storage and streaming applications.
42 --disable-extra-programs
44 ifeq ($(CONFIG_SOFT_FLOAT
),y
)
49 CPU_ASM_BLACKLIST
:=xscale arm926ej-s
51 ifneq ($(findstring $(call qstrip
,$(CONFIG_CPU_TYPE
)),$(CPU_ASM_BLACKLIST
)),)
52 CONFIGURE_ARGS
+= --disable-asm
55 define Build
/InstallDev
56 $(INSTALL_DIR
) $(1)/usr
/include
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/opus
$(1)/usr
/include/
58 $(INSTALL_DIR
) $(1)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libopus.so
* $(1)/usr
/lib
/
60 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/opus.
pc $(1)/usr
/lib
/pkgconfig
/
64 define Package
/libopus
/install
65 $(INSTALL_DIR
) $(1)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libopus.so.
* $(1)/usr
/lib
/
69 $(eval
$(call BuildPackage
,libopus
))