blob: e744fdb50a6a3496cd348821fb0398ac577ba4fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
ROC_VERSION=0.4.0
ROC_SOURCE=v${ROC_VERSION}.tar.gz
ROC_SITE=https://github.com/roc-streaming/roc-toolkit/archive/refs/tags
ROC_LICENCE=Mozilla Public License, version 2.0
ROC_LICENSE_FILES = LICENCE
ROC_DEPENDENCIES = \
libopenssl \
libuv \
libunwind \
speexdsp \
libsndfile \
host-ragel \
host-scons \
host-gengetopt \
host-pkgconf
#ROC_CONF_OPTS += -Dlibpulse=enabled
ROC_INSTALL_STAGING = NO
ifneq ($(BR2_PACKAGE_ROC_TOOLS),y)
ROC_DEPENDENCIES += sox
ROC_DEPENDENCIES += pulseaudio
ROC_CONF_OPTS += --disable-tools
endif
ifneq ($(BR2_PACKAGE_ROC_LIB),y)
ROC_CONF_OPTS += --disable-shared
endif
define ROC_BUILD_CMDS
(cd $(@D); \
$(TARGET_CONFIGURE_OPTS) CROSS=$(TARGET_CROSS) $(SCONS) \
$(ROC_CONF_OPTS) \
--prefix=$(TARGET_DIR) \
-Q \
--build-3rdparty=openfec )
endef
define ROC_INSTALL_TARGET_CMDS
(cd $(@D); \
$(TARGET_CONFIGURE_OPTS) CROSS=$(TARGET_CROSS) $(SCONS) \
$(ROC_CONF_OPTS) \
--prefix=$(TARGET_DIR) \
--incdir=$(HOST_DIR)/include \
-Q \
--build-3rdparty=openfec \
install)
endef
$(eval $(generic-package))
|