2016-03-05 00:32:43 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libpjsip
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-01-27 19:47:38 +01:00
|
|
|
LIBPJSIP_VERSION = 2.6
|
2016-03-05 00:32:43 +01:00
|
|
|
LIBPJSIP_SOURCE = pjproject-$(LIBPJSIP_VERSION).tar.bz2
|
|
|
|
LIBPJSIP_SITE = http://www.pjsip.org/release/$(LIBPJSIP_VERSION)
|
2016-03-09 00:06:41 +01:00
|
|
|
LIBPJSIP_DEPENDENCIES = libsrtp
|
2016-03-05 00:32:43 +01:00
|
|
|
LIBPJSIP_LICENSE = GPLv2+
|
|
|
|
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-sound \
|
2016-03-17 13:51:11 +01:00
|
|
|
--disable-gsm-codec \
|
2016-03-05 00:32:43 +01:00
|
|
|
--disable-speex-codec \
|
|
|
|
--disable-speex-aec \
|
|
|
|
--disable-resample \
|
|
|
|
--disable-video \
|
2016-03-09 00:06:41 +01:00
|
|
|
--disable-opencore-amr \
|
2016-03-17 13:51:12 +01:00
|
|
|
--disable-g7221-codec \
|
|
|
|
--disable-ilbc-codec \
|
2017-01-27 19:47:38 +01:00
|
|
|
--disable-libwebrtc \
|
2016-11-06 22:30:09 +01:00
|
|
|
--disable-opus \
|
2017-01-05 22:16:37 +01:00
|
|
|
--disable-oss \
|
|
|
|
--disable-ext-sound \
|
|
|
|
--disable-small-filter \
|
|
|
|
--disable-large-filter \
|
|
|
|
--disable-g711-codec \
|
|
|
|
--disable-l16-codec \
|
|
|
|
--disable-g722-codec \
|
|
|
|
--disable-libsamplerate \
|
|
|
|
--disable-sdl \
|
|
|
|
--disable-ffmpeg \
|
|
|
|
--disable-v4l2 \
|
|
|
|
--disable-openh264 \
|
|
|
|
--disable-libyuv \
|
|
|
|
--disable-ipp \
|
|
|
|
--disable-ssl \
|
|
|
|
--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
|
|
|
|
|
2016-03-05 00:32:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += openssl
|
|
|
|
LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
LIBPJSIP_CONF_OPTS += --disable-ssl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
|
|
|
LIBPJSIP_DEPENDENCIES += util-linux
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|