2017-10-17 15:53:52 +00:00
|
|
|
# We switched download locations so Asterisk users don't bombard the Teluu
|
|
|
|
# site with download requests.
|
|
|
|
#
|
|
|
|
# For future reference when upgrading bundled PJPROJECT the next time
|
|
|
|
# PJPROJECT is released.
|
|
|
|
# Teluu's download URL.
|
2018-07-16 20:08:20 +00:00
|
|
|
# PACKAGE_URL ?= http://www.pjsip.org/release/$(PJPROJECT_VERSION)
|
2017-10-17 15:53:52 +00:00
|
|
|
|
2018-07-16 20:08:20 +00:00
|
|
|
PACKAGE_URL ?= https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/$(PJPROJECT_VERSION)
|
|
|
|
TARBALL_FILE = pjproject-$(PJPROJECT_VERSION).tar.bz2
|
build-system: Allow building with static pjproject
Background here:
http://lists.digium.com/pipermail/asterisk-dev/2016-January/075266.html
From CHANGES:
* To help insure that Asterisk is compiled and run with the same known
version of pjproject, a new option (--with-pjproject-bundled) has been
added to ./configure. When specified, the version of pjproject specified
in third-party/versions.mak will be downloaded and configured. When you
make Asterisk, the build process will also automatically build pjproject
and Asterisk will be statically linked to it. Once a particular version
of pjproject is configured and built, it won't be configured or built
again unless you run a 'make distclean'.
To facilitate testing, when 'make install' is run, the pjsua and pjsystest
utilities and the pjproject python bindings will be installed in
ASTDATADIR/third-party/pjproject.
The default behavior remains building with the shared pjproject
installation, if any.
Building:
All you have to do is include the --with-pjproject-bundled option on
the ./configure command line (and remove any existing --with-pjproject
option if specified). Everything else is automatic.
Behind the scenes:
The top-level Makefile was modified to include 'third-party' in the
list of MOD_SUBDIRS.
The third-party directory was created to contain any third party
packages that may be needed in the future. Its Makefile automatically
iterates over any subdirectories passing on targets.
The third-party/pjproject directory was created to house the pjproject
source distribution. Its Makefile contains targets to download, patch
configure, generate dependencies, compile libs, apps and python bindings,
sanitized build.mak and generate a symbols list.
When bootstrap.sh is run, it automatically includes the configure.m4
file in third-party/pjproject. This file has a macro to download and
conifgure pjproject and get and set PJPROJECT_INCLUDE, PJPROJECT_DIR
and PJPROJECT_BUNDLED. It also tests for the capabilities like
PJ_TRANSACTION_GRP_LOCK by parsing preprocessor output as opposed to
trying to compile. Of course, bootstrap.sh is only run once and the
configure file is incldued in the patch.
When configure is run with the new options, the macro in configure.m4
triggers the download, patch, conifgure and tests. No compilation is
performed at this time. The downloaded tarball is cached in /tmp so
it doesn't get downloaded again on a distclean.
When make is run in the top-level Asterisk source directory, it will
automatically descend all the subdirectories in third_party just as it
does for addons, apps, etc. The top-level Makefile makes sure that
the 'third-party' is built before 'main' so that dependencies from the
other directories are built first.
When main does build, a new shared library (libasteriskpj) is created that
links statically to the pjproject .a files and exports all their symbols.
The asterisk binary links to that, just as it does with libasteriskssl.
When Asterisk is installed, the pjsua and pjsystest apps, and the pjproject
python bindings are installed in ASTDATADIR/third-party/pjproject. This
will facilitate testing, including running the testsuite which will be
updated to check that directory for the pjsua module ahead of the system
python library.
Modules should continue to depend on pjproject if they use pjproject APIs
directly. They should not care about the implementation. No changes to any
res_pjsip modules were made.
Change-Id: Ia7a60c28c2e9ba9537c5570f933c1ebcb20a3103
2016-01-19 03:54:28 +00:00
|
|
|
|
2017-06-30 13:31:52 +00:00
|
|
|
# PJPROJECT_CONFIGURE_OPTS could come from the command line or could be
|
|
|
|
# set/modified by configure.m4 if the build or host tuples aren't the same
|
|
|
|
# as the current build environment (cross-compile).
|
build-system: Allow building with static pjproject
Background here:
http://lists.digium.com/pipermail/asterisk-dev/2016-January/075266.html
From CHANGES:
* To help insure that Asterisk is compiled and run with the same known
version of pjproject, a new option (--with-pjproject-bundled) has been
added to ./configure. When specified, the version of pjproject specified
in third-party/versions.mak will be downloaded and configured. When you
make Asterisk, the build process will also automatically build pjproject
and Asterisk will be statically linked to it. Once a particular version
of pjproject is configured and built, it won't be configured or built
again unless you run a 'make distclean'.
To facilitate testing, when 'make install' is run, the pjsua and pjsystest
utilities and the pjproject python bindings will be installed in
ASTDATADIR/third-party/pjproject.
The default behavior remains building with the shared pjproject
installation, if any.
Building:
All you have to do is include the --with-pjproject-bundled option on
the ./configure command line (and remove any existing --with-pjproject
option if specified). Everything else is automatic.
Behind the scenes:
The top-level Makefile was modified to include 'third-party' in the
list of MOD_SUBDIRS.
The third-party directory was created to contain any third party
packages that may be needed in the future. Its Makefile automatically
iterates over any subdirectories passing on targets.
The third-party/pjproject directory was created to house the pjproject
source distribution. Its Makefile contains targets to download, patch
configure, generate dependencies, compile libs, apps and python bindings,
sanitized build.mak and generate a symbols list.
When bootstrap.sh is run, it automatically includes the configure.m4
file in third-party/pjproject. This file has a macro to download and
conifgure pjproject and get and set PJPROJECT_INCLUDE, PJPROJECT_DIR
and PJPROJECT_BUNDLED. It also tests for the capabilities like
PJ_TRANSACTION_GRP_LOCK by parsing preprocessor output as opposed to
trying to compile. Of course, bootstrap.sh is only run once and the
configure file is incldued in the patch.
When configure is run with the new options, the macro in configure.m4
triggers the download, patch, conifgure and tests. No compilation is
performed at this time. The downloaded tarball is cached in /tmp so
it doesn't get downloaded again on a distclean.
When make is run in the top-level Asterisk source directory, it will
automatically descend all the subdirectories in third_party just as it
does for addons, apps, etc. The top-level Makefile makes sure that
the 'third-party' is built before 'main' so that dependencies from the
other directories are built first.
When main does build, a new shared library (libasteriskpj) is created that
links statically to the pjproject .a files and exports all their symbols.
The asterisk binary links to that, just as it does with libasteriskssl.
When Asterisk is installed, the pjsua and pjsystest apps, and the pjproject
python bindings are installed in ASTDATADIR/third-party/pjproject. This
will facilitate testing, including running the testsuite which will be
updated to check that directory for the pjsua module ahead of the system
python library.
Modules should continue to depend on pjproject if they use pjproject APIs
directly. They should not care about the implementation. No changes to any
res_pjsip modules were made.
Change-Id: Ia7a60c28c2e9ba9537c5570f933c1ebcb20a3103
2016-01-19 03:54:28 +00:00
|
|
|
# Even though we're not installing pjproject, we're setting prefix to /opt/pjproject to be safe
|
2016-07-17 23:28:36 +00:00
|
|
|
|
2017-06-30 13:31:52 +00:00
|
|
|
PJPROJECT_CONFIG_OPTS = $(PJPROJECT_CONFIGURE_OPTS) --prefix=/opt/pjproject \
|
2016-07-17 23:28:36 +00:00
|
|
|
--disable-speex-codec \
|
|
|
|
--disable-speex-aec \
|
2018-02-12 12:16:00 +00:00
|
|
|
--disable-bcg729 \
|
2016-07-17 23:28:36 +00:00
|
|
|
--disable-gsm-codec \
|
|
|
|
--disable-ilbc-codec \
|
|
|
|
--disable-l16-codec \
|
|
|
|
--disable-g722-codec \
|
|
|
|
--disable-g7221-codec \
|
|
|
|
--disable-opencore-amr \
|
|
|
|
--disable-silk \
|
|
|
|
--disable-opus \
|
|
|
|
--disable-video \
|
|
|
|
--disable-v4l2 \
|
|
|
|
--disable-sound \
|
|
|
|
--disable-ext-sound \
|
|
|
|
--disable-sdl \
|
|
|
|
--disable-libyuv \
|
|
|
|
--disable-ffmpeg \
|
|
|
|
--disable-openh264 \
|
|
|
|
--disable-ipp \
|
2017-04-26 13:45:31 +00:00
|
|
|
--disable-libwebrtc \
|
2016-07-17 23:28:36 +00:00
|
|
|
--without-external-pa \
|
2017-12-04 00:49:14 +00:00
|
|
|
--without-external-srtp
|
2016-04-30 22:52:47 +00:00
|
|
|
|
2018-11-16 12:20:11 +00:00
|
|
|
ifneq ($(AST_DEVMODE),yes)
|
2016-11-03 16:55:06 +00:00
|
|
|
PJPROJECT_CONFIG_OPTS += --disable-resample --disable-g711-codec
|
|
|
|
endif
|
|
|
|
|
2016-04-30 22:52:47 +00:00
|
|
|
ifeq ($(shell uname -s),Linux)
|
2016-10-31 21:12:57 +00:00
|
|
|
PJPROJECT_CONFIG_OPTS += --enable-epoll
|
2016-04-30 22:52:47 +00:00
|
|
|
endif
|