diff --git a/br-ext-chip-ambarella/package/baresip-openipc b/br-ext-chip-ambarella/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-ambarella/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-ambarella/package/libre-openipc b/br-ext-chip-ambarella/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-ambarella/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-ambarella/package/librem-openipc b/br-ext-chip-ambarella/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-ambarella/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-anyka/package/baresip-openipc b/br-ext-chip-anyka/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-anyka/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-anyka/package/libre-openipc b/br-ext-chip-anyka/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-anyka/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-anyka/package/librem-openipc b/br-ext-chip-anyka/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-anyka/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-fullhan/package/baresip-openipc b/br-ext-chip-fullhan/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-fullhan/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-fullhan/package/libre-openipc b/br-ext-chip-fullhan/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-fullhan/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-fullhan/package/librem-openipc b/br-ext-chip-fullhan/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-fullhan/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-goke/package/baresip-openipc b/br-ext-chip-goke/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-goke/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-goke/package/libre-openipc b/br-ext-chip-goke/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-goke/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-goke/package/librem-openipc b/br-ext-chip-goke/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-goke/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-grainmedia/package/baresip-openipc b/br-ext-chip-grainmedia/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-grainmedia/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-grainmedia/package/libre-openipc b/br-ext-chip-grainmedia/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-grainmedia/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-grainmedia/package/librem-openipc b/br-ext-chip-grainmedia/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-grainmedia/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-hisilicon/package/baresip-openipc b/br-ext-chip-hisilicon/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-hisilicon/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-hisilicon/package/libre-openipc b/br-ext-chip-hisilicon/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-hisilicon/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-hisilicon/package/librem-openipc b/br-ext-chip-hisilicon/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-hisilicon/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-ingenic/package/baresip-openipc b/br-ext-chip-ingenic/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-ingenic/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-ingenic/package/libre-openipc b/br-ext-chip-ingenic/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-ingenic/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-ingenic/package/librem-openipc b/br-ext-chip-ingenic/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-ingenic/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-novatek/package/baresip-openipc b/br-ext-chip-novatek/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-novatek/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-novatek/package/libre-openipc b/br-ext-chip-novatek/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-novatek/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-novatek/package/librem-openipc b/br-ext-chip-novatek/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-novatek/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-rockchip/package/baresip-openipc b/br-ext-chip-rockchip/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-rockchip/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-rockchip/package/libre-openipc b/br-ext-chip-rockchip/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-rockchip/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-rockchip/package/librem-openipc b/br-ext-chip-rockchip/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-rockchip/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-sigmastar/package/baresip-openipc b/br-ext-chip-sigmastar/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-sigmastar/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-sigmastar/package/libre-openipc b/br-ext-chip-sigmastar/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-sigmastar/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-sigmastar/package/librem-openipc b/br-ext-chip-sigmastar/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-sigmastar/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/br-ext-chip-xiongmai/package/baresip-openipc b/br-ext-chip-xiongmai/package/baresip-openipc new file mode 120000 index 00000000..4cd4f4a9 --- /dev/null +++ b/br-ext-chip-xiongmai/package/baresip-openipc @@ -0,0 +1 @@ +../../general/package/baresip-openipc \ No newline at end of file diff --git a/br-ext-chip-xiongmai/package/libre-openipc b/br-ext-chip-xiongmai/package/libre-openipc new file mode 120000 index 00000000..ce716f5a --- /dev/null +++ b/br-ext-chip-xiongmai/package/libre-openipc @@ -0,0 +1 @@ +../../general/package/libre-openipc \ No newline at end of file diff --git a/br-ext-chip-xiongmai/package/librem-openipc b/br-ext-chip-xiongmai/package/librem-openipc new file mode 120000 index 00000000..5b872831 --- /dev/null +++ b/br-ext-chip-xiongmai/package/librem-openipc @@ -0,0 +1 @@ +../../general/package/librem-openipc \ No newline at end of file diff --git a/general/package/baresip-openipc/Config.in b/general/package/baresip-openipc/Config.in new file mode 100644 index 00000000..22b114e7 --- /dev/null +++ b/general/package/baresip-openipc/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_BARESIP_OPENIPC + bool "baresip-openipc" + help + Baresip is a portable and modular SIP User-Agent with audio + and video support. Copyright (c) 2010 - 2022 Alfred E. Heggestad + and Contributors Distributed under BSD license. + + https://github.com/baresip/baresip + diff --git a/general/package/baresip-openipc/baresip-openipc.mk b/general/package/baresip-openipc/baresip-openipc.mk new file mode 100644 index 00000000..c8533fa7 --- /dev/null +++ b/general/package/baresip-openipc/baresip-openipc.mk @@ -0,0 +1,72 @@ +############################################################# +# +# baresip-openipc +# +############################################################# + +BARESIP_VERSION = 1.0.0 +BARESIP_SOURCE = v$(BARESIP_VERSION).tar.gz +BARESIP_SITE = https://github.com/baresip/baresip/archive +BARESIP_DEPENDENCIES = libre librem zlib + +BARESIP_MAKE_ENV = \ + $(TARGET_CONFIGURE_OPTS) \ + SYSROOT=$(STAGING_DIR)/usr \ + SYSROOT_LOCAL=$(STAGING_DIR)/usr \ + LD="$(TARGET_CC)" \ + LFLAGS="$(TARGET_LDFLAGS)" + +BARESIP_MAKE_ARGS = \ + LIBRE_MK="$(STAGING_DIR)/usr/share/re/re.mk" \ + LIBRE_INC="$(STAGING_DIR)/usr/include/re" \ + LIBRE_SO="$(STAGING_DIR)/usr/lib" \ + LIBREM_MK="$(STAGING_DIR)/usr/share/rem/rem.mk" \ + LIBREM_INC="$(STAGING_DIR)/usr/include/rem" \ + LIBREM_SO="$(STAGING_DIR)/usr/lib" + +ifeq ($(BR2_PACKAGE_ALSA_LIB),y) +BARESIP_DEPENDENCIES += alsa-lib +endif + +ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y) +BARESIP_DEPENDENCIES += ffmpeg +BARESIP_MAKE_ENV += \ + CFLAGS+=-DCODEC_TYPE_VIDEO=AVMEDIA_TYPE_VIDEO +endif + +ifeq ($(BR2_PACKAGE_LIBSNDFILE),y) +BARESIP_DEPENDENCIES += libsndfile +endif + +ifeq ($(BR2_PACKAGE_SPEEX),y) +BARESIP_DEPENDENCIES += speex +endif + +ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y) +BARESIP_DEPENDENCIES += util-linux +endif + +ifeq ($(BR2_PACKAGE_XORG7),y) +BARESIP_DEPENDENCIES += xlib_libXext +endif + +define BARESIP_BUILD_CMDS + $(BARESIP_MAKE_ENV) $(MAKE) $(BARESIP_MAKE_ARGS) -C $(@D) all +endef + +define BARESIP_CLEAN_CMDS + $(BARESIP_MAKE_ENV) $(MAKE) $(BARESIP_MAKE_ARGS) -C $(@D) clean +endef + +define BARESIP_INSTALL_TARGET_CMDS + $(BARESIP_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(MAKE) $(BARESIP_MAKE_ARGS) -C $(@D) install +endef + +define BARESIP_UNINSTALL_TARGET_CMDS + $(RM) $(TARGET_DIR)/usr/bin/baresip + $(RM) -r $(TARGET_DIR)/usr/lib/baresip + $(RM) -r $(TARGET_DIR)/usr/share/baresip +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package) diff --git a/general/package/libre-openipc/Config.in b/general/package/libre-openipc/Config.in new file mode 100644 index 00000000..2d2f4c46 --- /dev/null +++ b/general/package/libre-openipc/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBRE_OPENIPC + bool "libre-openipc" + help + libre is a Generic library for real-time communications + with async IO support. + + https://github.com/baresip/re + diff --git a/general/package/libre-openipc/libre-openipc.mk b/general/package/libre-openipc/libre-openipc.mk new file mode 100644 index 00000000..fa425f40 --- /dev/null +++ b/general/package/libre-openipc/libre-openipc.mk @@ -0,0 +1,53 @@ +############################################################################ +# +# libre-openipc +# +########################################################################### + +LIBRE_VERSION = 1.1.0 +LIBRE_SOURCE = v$(LIBRE_VERSION).tar.gz +LIBRE_SITE = https://github.com/baresip/re/archive +LIBRE_INSTALL_STAGING = YES + +ifeq ($(BR2_PACKAGE_OPENSSL),y) +LIBRE_DEPENDENCIES += openssl +endif +ifeq ($(BR2_PACKAGE_ZLIB),y) +LIBRE_DEPENDENCIES += zlib +endif + +define LIBRE_BUILD_CMDS + $(TARGET_MAKE_ENV) \ + $(MAKE) -C $(@D) \ + LIBRE_MK=$(STAGING_DIR)/usr/share/re/re.mk \ + LIBRE_INC=$(STAGING_DIR)/usr/include/re \ + LIBRE_SO=$(STAGING_DIR)/usr/lib \ + CC="$(TARGET_CC)" \ + EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ + EXTRA_LFLAGS="-lm" \ + DESTDIR="$(STAGING_DIR)" \ + SYSROOT="$(STAGING_DIR)/usr" \ + SYSROOT_ALT="$(STAGING_DIR)/usr" \ + RELEASE=1 \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + OS=linux \ + all install +endef + + +define LIBRE_INSTALL_TARGET_CMDS + $(INSTALL) -m 644 -D $(@D)/libre.so $(TARGET_DIR)/usr/lib/libre.so +endef + +define LIBRE_UNINSTALL_STAGING_CMDS + $(RM) -r $(STAGING_DIR)/usr/include/re + $(RM) $(STAGING_DIR)/usr/lib/libre.a + $(RM) $(STAGING_DIR)/usr/lib/libre.so +endef + +define LIBRE_UNINSTALL_TARGET_CMDS + $(RM) $(TARGET_DIR)/usr/lib/libre.so +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package)) \ No newline at end of file diff --git a/general/package/librem-openipc/Config.in b/general/package/librem-openipc/Config.in new file mode 100644 index 00000000..50531ecd --- /dev/null +++ b/general/package/librem-openipc/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBREM_OPENIPC + bool "librem-openipc" + help + librem is a Audio and video processing media library. + + https://github.com/baresip/rem + diff --git a/general/package/librem-openipc/librem-openipc.mk b/general/package/librem-openipc/librem-openipc.mk new file mode 100644 index 00000000..76bb254c --- /dev/null +++ b/general/package/librem-openipc/librem-openipc.mk @@ -0,0 +1,50 @@ +############################################################# +# +# librem-openipc +# +############################################################# + +LIBREM_VERSION = 0.6.0 +LIBREM_SOURCE = v$(LIBREM_VERSION).tar.gz +LIBREM_SITE = https://github.com/baresip/rem/archive +LIBREM_INSTALL_STAGING = YES + +ifeq ($(BR2_PACKAGE_LIBRE),y) +LIBREM_DEPENDENCIES += libre +endif + +define LIBREM_BUILD_CMDS + $(TARGET_MAKE_ENV) \ + $(MAKE) -C $(@D) \ + LIBRE_MK=$(STAGING_DIR)/usr/share/re/re.mk \ + LIBRE_INC=$(STAGING_DIR)/usr/include/re \ + LIBRE_SO=$(STAGING_DIR)/usr/lib \ + HAVE_LIBRESOLV= \ + CC="$(TARGET_CC)" \ + EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ + EXTRA_LFLAGS="-lm" \ + DESTDIR="$(STAGING_DIR)" \ + SYSROOT="$(STAGING_DIR)/usr" \ + SYSROOT_ALT="$(STAGING_DIR)/usr" \ + RELEASE=1 \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + OS=linux \ + all install +endef + +define LIBREM_INSTALL_TARGET_CMDS + $(INSTALL) -m 644 -D $(@D)/librem.so $(TARGET_DIR)/usr/lib/librem.so +endef + +define LIBREM_UNINSTALL_STAGING_CMDS + $(RM) -r $(STAGING_DIR)/usr/include/rem + $(RM) $(STAGING_DIR)/usr/lib/librem.a + $(RM) $(STAGING_DIR)/usr/lib/librem.so +endef + +define LIBREM_UNINSTALL_TARGET_CMDS + $(RM) $(TARGET_DIR)/usr/lib/librem.so +endef + +$(eval $(generic-package)) +#$(eval $(host-generic-package)) \ No newline at end of file