Commit Graph

12 Commits

Author SHA1 Message Date
3fd44ec840 contrib: Relax the file name requirements for the contrib scripts.
It should only worry about its parent directory, not its grandparent.
This makes it possible to bind mount just daemon/contrib in a
container, to run 'make fetch' for example.

* contrib/bootstrap: Adjust relative paths.
* contrib/src/main.mak: Express using the CURDIR variable.
(PATH): Express using the TOPSRC variable.
(pkg_static): Express using the SRC environment variable.

Change-Id: I02cba2249e4971d76ef0af0fa00f4b1af61c5aff
2021-02-26 13:28:32 -05:00
88f2c6fe64 contrib: Add a 'list-tarballs' target.
This target can be used to print a list of the contrib tarballs
required to build the daemon.  It can be used to copy only the
required tarballs from a cache when building a source release, for
example.

Change-Id: I402c29989b3e6fed8a82418d19dbbacea8c44f50
2021-02-26 13:28:32 -05:00
6d3b0c0708 contrib: Ease the configuration of a custom cache directory.
It was previously possible by overriding the TARBALLS variable on each
make call, but that's inconvenient.  This changes allows specifying it
once, at bootstrap time.  If the TARBALLS environment is defined, it
is also honored (and takes precedence over the value provided at
bootstrap time).

* contrib/src/ffmpeg/rules.mak (ffmpeg): Because the $(TARBALLS)
variable is now made absolute (for clarity in the build output), do
not use a relative path.
* contrib/src/onnx/rules.mak (onnx): Likewise.
* contrib/src/vpx/rules.mak (libvpx): Likewise.
* contrib/src/x264/rules.mak: Likewise.

Change-Id: I07497b095938c7885159f44753ead2814ed2a2fe
2021-02-26 13:28:32 -05:00
9d566c576c contrib: Fallback to gcc if cc is not available.
Some systems do not ship a cc executable.

Change-Id: Idb8ee8a5da0433bd96fb75dfcf1bd2d0aa6355e1
2021-02-14 12:00:25 -05:00
14f5475015 build in non-debug mode by default
* declare NDEBUG for library and contrib
* activate pjsip extra checks as all PJ_ASSERT's are deactivated

Side effect: pjsip does not call abort() due to disabled assertions.

If debug is required:
* contrib: call bootstrap with --enable-debug
* libring: call configure with --enable-debug

Change-Id: I47b104c0f32352f0503457a9d419c4ed5db4e126
2018-02-05 14:17:25 -05:00
7fa53d79df Contrib: new --no-checksums parameter
The new --no-checksums parameter allows for skipping checksums
verifications. This can be used to replace tarballs and still use the
contrib system.

This is useful for atleast the two following cases:

 - Distro developper needs contrib to patch the source, but has the
   original source in the distribution.

 - Distro developper repacks the source, breaking the checksum.

Change-Id: I015ce3d0f6f4fb2f5fd5ec2f95528bfb4b045298
Tuleap: #879
2016-07-27 14:42:09 -04:00
451d697369 Allow for disabling contrib downloads
This adds the support for the DISABLE_CONTRIB_DOWNLOADS environment
variable. It if it set to TRUE, the contrib system will not download
tarballs from the internet.

It can be set from the bootstrap script with the --disable-downloads
option.

This is useful for distro packaging because distribution developpers
have to make sure they have full control of what is included in the
package. In Debian, some tarballs are included such as pjsip but the
rest should not be downloaded. A small mistake such as a missging build
dependency could cause a tarball download. This new options will help
pervent such issues.

Tuleap: #847
Change-Id: I5f579774c53def751111f9366750670fcd75d893
2016-07-20 12:35:41 -04:00
ba088bf225 contrib: allow ios build
Change-Id: Ib5deee2d0172f92febe72d4d3a57a7c3334414c4
Tuleap: #313
2016-06-10 10:27:59 -04:00
0f1203c345 win32: fix CROSS_COMPIL settings to be transparent
Refs #75281

Change-Id: I4d7dfdaeed01f5c31b2ca3c494245ccccb2347e4
2015-06-19 14:31:05 -04:00
8507024c70 daemon: move up daemon into top directory
Refs #68986

Change-Id: Ia95b140e4f4d6625d1df12d52a40414482b2e773
2015-03-20 15:56:31 -04:00
e7ca5592a8 contrib: move into daemon
Rationale: only daemon uses it and it simplifies packaging, where
daemon is the top-level directory.

Change-Id: Id99bd61f2b0269e0fc594c1782cd7945120acf49
2014-08-25 14:00:18 -04:00
37a994662f import contrib system from VideoLan
Refs: #46617
Change-Id: I51a7bc40954c6d1175aaf6ef4d86fbec1fb9d44d
2014-08-12 17:16:00 -04:00