mirror of https://github.com/OpenIPC/firmware.git
Fix baresip (#794)
parent
e540836324
commit
b0d934ca7c
|
@ -1,8 +1,6 @@
|
|||
config BR2_PACKAGE_BARESIP_OPENIPC
|
||||
bool "baresip-openipc"
|
||||
default n
|
||||
depends on BR2_PACKAGE_LIBRE_OPENIPC
|
||||
depends on BR2_PACKAGE_LIBREM_OPENIPC
|
||||
select BR2_PACKAGE_LIBRE_OPENIPC
|
||||
select BR2_PACKAGE_LIBREM_OPENIPC
|
||||
help
|
||||
|
|
|
@ -70,3 +70,5 @@ endef
|
|||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
--- a/src/dns/res.c.orig 2022-03-12 09:42:35.000000000 +0300
|
||||
+++ b/src/dns/res.c 2023-05-15 01:02:30.147277596 +0300
|
||||
@@ -31,7 +31,7 @@
|
||||
state = _res;
|
||||
#else
|
||||
memset(&state, 0, sizeof(state));
|
||||
- ret = res_ninit(&state);
|
||||
+ ret = res_init();
|
||||
#endif
|
||||
if (0 != ret)
|
||||
return ENOENT;
|
||||
@@ -78,7 +78,7 @@
|
||||
out:
|
||||
#ifdef OPENBSD
|
||||
#else
|
||||
- res_nclose(&state);
|
||||
+ pclose(&state);
|
||||
#endif
|
||||
|
||||
return err;
|
|
@ -1,6 +1,5 @@
|
|||
config BR2_PACKAGE_LIBRE_OPENIPC
|
||||
bool "libre-openipc"
|
||||
default n
|
||||
help
|
||||
libre is a Generic library for real-time communications
|
||||
with async IO support.
|
||||
|
|
|
@ -17,7 +17,7 @@ LIBRE_OPENIPC_DEPENDENCIES += zlib
|
|||
endif
|
||||
|
||||
define LIBRE_OPENIPC_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) \
|
||||
$(TARGET_MAKE_ENV) \
|
||||
$(MAKE) -C $(@D) \
|
||||
LIBRE_MK=$(STAGING_DIR)/usr/share/re/re.mk \
|
||||
LIBRE_INC=$(STAGING_DIR)/usr/include/re \
|
||||
|
@ -34,9 +34,13 @@ define LIBRE_OPENIPC_BUILD_CMDS
|
|||
all install
|
||||
endef
|
||||
|
||||
define LIBRE_OPENIPC_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -D -m 644 $(@D)/include/re.h $(STAGING_DIR)/usr/include/re/re.h
|
||||
endef
|
||||
|
||||
define LIBRE_OPENIPC_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 644 -D $(@D)/libre.so $(TARGET_DIR)/usr/lib/libre.so
|
||||
ln -sf libre.so $(TARGET_DIR)/usr/lib/libre.so.2
|
||||
endef
|
||||
|
||||
define LIBRE_OPENIPC_UNINSTALL_STAGING_CMDS
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
config BR2_PACKAGE_LIBREM_OPENIPC
|
||||
bool "librem-openipc"
|
||||
default n
|
||||
depends on BR2_PACKAGE_LIBRE_OPENIPC
|
||||
select BR2_PACKAGE_LIBRE_OPENIPC
|
||||
help
|
||||
librem is a Audio and video processing media library.
|
||||
|
|
|
@ -14,7 +14,7 @@ LIBREM_OPENIPC_DEPENDENCIES += libre-openipc
|
|||
endif
|
||||
|
||||
define LIBREM_OPENIPC_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) \
|
||||
$(TARGET_MAKE_ENV) \
|
||||
$(MAKE) -C $(@D) \
|
||||
LIBRE_MK=$(STAGING_DIR)/usr/share/re/re.mk \
|
||||
LIBRE_INC=$(STAGING_DIR)/usr/include/re \
|
||||
|
@ -34,6 +34,7 @@ endef
|
|||
|
||||
define LIBREM_OPENIPC_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 644 -D $(@D)/librem.so $(TARGET_DIR)/usr/lib/librem.so
|
||||
ln -sf librem.so $(TARGET_DIR)/usr/lib/librem.so.2
|
||||
endef
|
||||
|
||||
define LIBREM_OPENIPC_UNINSTALL_STAGING_CMDS
|
||||
|
@ -47,4 +48,3 @@ define LIBREM_OPENIPC_UNINSTALL_TARGET_CMDS
|
|||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
#$(eval $(host-generic-package))
|
||||
|
|
Loading…
Reference in New Issue