2016-03-05 00:32:43 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libpjsip
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-09-05 12:01:09 +02:00
|
|
|
LIBPJSIP_VERSION = 2.9
|
2016-03-05 00:32:43 +01:00
|
|
|
LIBPJSIP_SOURCE = pjproject-$(LIBPJSIP_VERSION).tar.bz2
|
2019-09-05 12:01:09 +02:00
|
|
|
LIBPJSIP_SITE = https://www.pjsip.org/release/$(LIBPJSIP_VERSION)
|
2016-03-09 00:06:41 +01:00
|
|
|
LIBPJSIP_DEPENDENCIES = libsrtp
|
2017-03-30 15:43:32 +02:00
|
|
|
LIBPJSIP_LICENSE = GPL-2.0+
|
2016-03-05 00:32:43 +01:00
|
|
|
LIBPJSIP_LICENSE_FILES = COPYING
|
|
|
|
LIBPJSIP_INSTALL_STAGING = YES
|
2016-05-12 14:48:13 +02:00
|
|
|
LIBPJSIP_MAKE = $(MAKE1)
|
2016-03-05 00:32:43 +01:00
|
|
|
|
2016-08-06 15:25:48 +02:00
|
|
|
LIBPJSIP_CFLAGS = $(TARGET_CFLAGS) -DPJ_HAS_IPV6=1
|
|
|
|
|
|
|
|
# relocation truncated to fit: R_68K_GOT16O
|
|
|
|
ifeq ($(BR2_m68k_cf),y)
|
|
|
|
LIBPJSIP_CFLAGS += -mxgot
|
|
|
|
endif
|
|
|
|
|
2016-03-05 00:32:43 +01:00
|
|
|
LIBPJSIP_CONF_ENV = \
|
|
|
|
LD="$(TARGET_CC)" \
|
2016-08-06 15:25:48 +02:00
|
|
|
CFLAGS="$(LIBPJSIP_CFLAGS)"
|
2016-03-05 00:32:43 +01:00
|
|
|
|
|
|
|
LIBPJSIP_CONF_OPTS = \
|
|
|
|
--disable-resample \
|
2016-03-17 13:51:12 +01:00
|
|
|
--disable-g7221-codec \
|
|
|
|
--disable-ilbc-codec \
|
2017-01-27 19:47:38 +01:00
|
|
|
--disable-libwebrtc \
|
2017-01-05 22:16:37 +01:00
|
|
|
--disable-ext-sound \
|
|
|
|
--disable-g711-codec \
|
|
|
|
--disable-l16-codec \
|
|
|
|
--disable-g722-codec \
|
|
|
|
--disable-ipp \
|
|
|
|
--disable-silk \
|
2017-01-05 22:16:38 +01:00
|
|
|
--with-external-srtp
|
2016-03-05 00:32:43 +01:00
|
|
|
|
2017-01-05 22:16:37 +01:00
|
|
|
# Note: aconfigure.ac is broken: --enable-epoll or --disable-epoll will
|
|
|
|
# both enable it. But that's OK, epoll is better than the alternative,
|
|
|
|
# so we want to use it.
|
|
|
|
LIBPJSIP_CONF_OPTS += --enable-epoll
|
|
|
|
|
2020-01-29 21:26:28 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += alsa-lib
|
|
|
|
LIBPJSIP_CONF_OPTS += --enable-sound
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-sound
|
|
|
|
endif
|
|
|
|
|
2020-01-29 19:55:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BCG729),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += bcg729
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-bcg729=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-bcg729
|
|
|
|
endif
|
|
|
|
|
2020-02-02 21:54:10 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += ffmpeg
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-ffmpeg=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-ffmpeg
|
|
|
|
endif
|
|
|
|
|
2018-10-14 11:02:00 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGSM),y)
|
|
|
|
LIBPJSIP_CONF_OPTS += \
|
|
|
|
--enable-gsm-codec \
|
|
|
|
--with-external-gsm
|
|
|
|
LIBPJSIP_DEPENDENCIES += libgsm
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += \
|
|
|
|
--disable-gsm-codec
|
|
|
|
endif
|
|
|
|
|
2020-02-02 14:53:52 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBOPENH264),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += libopenh264
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-openh264=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-openh264
|
|
|
|
endif
|
|
|
|
|
2017-11-14 15:42:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += libopenssl
|
2016-03-05 00:32:43 +01:00
|
|
|
LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
|
2019-09-05 12:01:09 +02:00
|
|
|
else ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += gnutls
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-gnutls=$(STAGING_DIR)/usr
|
2016-03-05 00:32:43 +01:00
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-ssl
|
|
|
|
endif
|
|
|
|
|
2020-01-22 20:29:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += libsamplerate
|
|
|
|
LIBPJSIP_CONF_OPTS += --enable-libsamplerate
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-libsamplerate
|
|
|
|
endif
|
|
|
|
|
2020-01-31 19:11:36 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
|
|
|
# --enable-v4l2 is broken (check for libv4l2 will be omitted)
|
|
|
|
LIBPJSIP_DEPENDENCIES += libv4l
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-v4l2
|
|
|
|
endif
|
|
|
|
|
2020-02-02 11:45:57 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBYUV),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += libyuv
|
|
|
|
LIBPJSIP_CONF_OPTS += \
|
|
|
|
--enable-libyuv \
|
|
|
|
--with-external-yuv
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-libyuv
|
|
|
|
endif
|
|
|
|
|
2020-01-28 23:22:41 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += opencore-amr
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-opencore-amr=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-opencore-amr
|
|
|
|
endif
|
|
|
|
|
2020-01-19 10:52:50 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPUS),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += opus
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-opus=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-opus
|
|
|
|
endif
|
|
|
|
|
2020-02-03 23:07:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += portaudio
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-external-pa
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --without-external-pa
|
|
|
|
endif
|
|
|
|
|
2020-02-02 17:30:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL2),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += sdl2
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-sdl=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-sdl
|
|
|
|
endif
|
|
|
|
|
2018-10-14 11:01:59 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SPEEX)$(BR2_PACKAGE_SPEEXDSP),yy)
|
|
|
|
LIBPJSIP_CONF_OPTS += \
|
|
|
|
--enable-speex-aec \
|
|
|
|
--enable-speex-codec \
|
|
|
|
--with-external-speex
|
|
|
|
LIBPJSIP_DEPENDENCIES += speex speexdsp
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += \
|
|
|
|
--disable-speex-aec \
|
|
|
|
--disable-speex-codec
|
|
|
|
endif
|
|
|
|
|
2016-03-05 00:32:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += util-linux
|
|
|
|
endif
|
|
|
|
|
2018-10-14 11:01:57 +02:00
|
|
|
# disable build of test binaries
|
|
|
|
LIBPJSIP_MAKE_OPTS = lib
|
|
|
|
|
2016-03-05 00:32:43 +01:00
|
|
|
$(eval $(autotools-package))
|