libevhtp: Fix dependencies not selected when building static library
authorJeffery To <jeffery.to@gmail.com>
Wed, 29 Apr 2020 16:27:30 +0000 (00:27 +0800)
committerEneas U de Queiroz <cotequeiroz@gmail.com>
Wed, 6 May 2020 02:03:30 +0000 (23:03 -0300)
commit1c54706b97753b6488a4d8f04b68c4e603f0fd0c
treee0112c6a73073eaa256fd95402e88198b6110066
parent76f5cf1a28f645680af0dfc2a83202e494f94076
libevhtp: Fix dependencies not selected when building static library

When libevhtp is added to a package's PKG_BUILD_DEPENDS (i.e. for
seafile-server), libevhtp's target package dependencies are not
automatically selected, in particular libevent2-openssl and
libevent2-pthreads.

Moreover, if libevent-openssl and libevent2-pthreads are not selected,
OpenSSL and thread support are disabled when compiling libevent2, which
in turn causes a compile error when building libevhtp.

This adds a config option, LIBEVHTP_BUILD_DEPENDS, that will select
libevent2-openssl and libevent2-pthreads (via LIBEVHTP_BUILD_SELECT)
when it is selected.

Other build dependencies are moved to PKG_BUILD_DEPENDS.

This also updates seafile-server to remove the (indirect) dependencies
added in 13d843fec1cd3281cc469fc74de302c1f793b723 and instead select
LIBEVHTP_BUILD_DEPENDS.

This also updates the maintainer's email address and adds myself as
another maintainer.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
libs/libevhtp/Makefile
net/seafile-server/Makefile