diff options
Diffstat (limited to 'package/roc/roc.mk')
-rw-r--r-- | package/roc/roc.mk | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/package/roc/roc.mk b/package/roc/roc.mk new file mode 100644 index 0000000..e744fdb --- /dev/null +++ b/package/roc/roc.mk @@ -0,0 +1,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)) |