Skip to content

Commit 62c2fd4

Browse files
libopusenc: required by opus-tools 0.2
new dep on opus-tools a638dfa37bd857e14b088e0ccade701dc6aafc79 Signed-off-by: Eduardo Abinader <[email protected]>
1 parent 9eba4f5 commit 62c2fd4

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

libs/libopusenc/Makefile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
# This is free software, licensed under the GNU General Public License v2.
3+
# See /LICENSE for more information.
4+
#
5+
6+
include $(TOPDIR)/rules.mk
7+
8+
PKG_NAME:=libopusenc
9+
PKG_VERSION:=0.2.1
10+
PKG_RELEASE:=1
11+
12+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13+
PKG_SOURCE_URL:=https://archive.mozilla.org/pub/opus
14+
PKG_HASH:=8298db61a8d3d63e41c1a80705baa8ce9ff3f50452ea7ec1c19a564fe106cbb9
15+
16+
PKG_MAINTAINER:=Eduardo Abinader <[email protected]>
17+
PKG_LICENSE:=BSD-3-Clause
18+
PKG_LICENSE_FILES:=COPYING
19+
20+
PKG_BUILD_PARALLEL:=1
21+
PKG_INSTALL:=1
22+
23+
include $(INCLUDE_DIR)/package.mk
24+
25+
define Package/libopusenc
26+
SECTION:=libs
27+
CATEGORY:=Libraries
28+
DEPENDS:=+libopus
29+
TITLE:=OPUS Audio stream files
30+
URL:=https://opus-codec.org
31+
endef
32+
33+
define Package/libopusenc/descriptiion
34+
Libopusenc provides a high-level API for creating .opus files and streams.
35+
endef
36+
37+
define Build/InstallDev
38+
$(INSTALL_DIR) $(1)/usr/include
39+
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
40+
$(INSTALL_DIR) $(1)/usr/lib
41+
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
42+
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
43+
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libopusenc.pc $(1)/usr/lib/pkgconfig/
44+
endef
45+
46+
define Package/libopusenc/install
47+
$(INSTALL_DIR) $(1)/usr/lib
48+
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
49+
endef
50+
51+
$(eval $(call BuildPackage,libopusenc))

0 commit comments

Comments
 (0)