mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			[PACKAGES] Add baresip package and libs
							parent
							
								
									c41bd157ff
								
							
						
					
					
						commit
						25872fa2af
					
				|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/baresip-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/libre-openipc | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | ../../general/package/librem-openipc | ||||||
|  | @ -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 | ||||||
|  | 
 | ||||||
|  | @ -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) | ||||||
|  | @ -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 | ||||||
|  | 
 | ||||||
|  | @ -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)) | ||||||
|  | @ -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 | ||||||
|  | 
 | ||||||
|  | @ -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))
 | ||||||
		Loading…
	
		Reference in New Issue