astobj2.c: Fix core when ref_log enabled
[asterisk/asterisk.git] / third-party / pjproject / Makefile.rules
1 # We switched download locations so Asterisk users don't bombard the Teluu
2 # site with download requests.
3 #
4 # For future reference when upgrading bundled PJPROJECT the next time
5 # PJPROJECT is released.
6 # Teluu's download URL.
7 # PACKAGE_URL ?= http://www.pjsip.org/release/$(PJPROJECT_VERSION)
8
9 PACKAGE_URL ?= https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/$(PJPROJECT_VERSION)
10 TARBALL_FILE = pjproject-$(PJPROJECT_VERSION).tar.bz2
11
12 # PJPROJECT_CONFIGURE_OPTS could come from the command line or could be
13 # set/modified by configure.m4 if the build or host tuples aren't the same
14 # as the current build environment (cross-compile).
15 # Even though we're not installing pjproject, we're setting prefix to /opt/pjproject to be safe
16
17 PJPROJECT_CONFIG_OPTS = $(PJPROJECT_CONFIGURE_OPTS) --prefix=/opt/pjproject \
18         --disable-speex-codec \
19         --disable-speex-aec \
20         --disable-bcg729 \
21         --disable-gsm-codec \
22         --disable-ilbc-codec \
23         --disable-l16-codec \
24         --disable-g722-codec \
25         --disable-g7221-codec \
26         --disable-opencore-amr \
27         --disable-silk \
28         --disable-opus \
29         --disable-video \
30         --disable-v4l2 \
31         --disable-sound \
32         --disable-ext-sound \
33         --disable-sdl \
34         --disable-libyuv \
35         --disable-ffmpeg \
36         --disable-openh264 \
37         --disable-ipp \
38         --disable-libwebrtc \
39         --without-external-pa \
40         --without-external-srtp
41
42 ifneq ($(AST_DEVMODE),yes)
43     PJPROJECT_CONFIG_OPTS += --disable-resample --disable-g711-codec
44 endif
45
46 ifeq ($(shell uname -s),Linux)
47     PJPROJECT_CONFIG_OPTS +=  --enable-epoll
48 endif