diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2025-08-13 14:46:03 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2025-08-13 14:46:03 +0200 |
commit | ccdd33c63dc1d855db7bb64f2f3f02879740b9be (patch) | |
tree | 9f3d524beae54ed98476c37a04c2f6e956e4e980 /package/roc/roc.mk | |
parent | 0640b403f2dc33fca3b1ca121012b98c2420ef24 (diff) |
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)) |