diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-26 07:42:03 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-26 07:42:03 +0300 |
commit | eb50c350322fa5edf56794c6dae286e45ab7f380 (patch) | |
tree | fc05e4c079beb207bb651dd24da9b2a5c22a04ab | |
parent | a51a6e572c103d2e1d92fa37c1f98dbe746dbbb4 (diff) |
swiften added
-rw-r--r-- | packages/net-im/swiften/swiften-scm.exheres-0 | 6 | ||||
-rw-r--r-- | packages/net-im/swiften/swiften.exlib | 60 |
2 files changed, 66 insertions, 0 deletions
diff --git a/packages/net-im/swiften/swiften-scm.exheres-0 b/packages/net-im/swiften/swiften-scm.exheres-0 new file mode 100644 index 0000000..d507be9 --- /dev/null +++ b/packages/net-im/swiften/swiften-scm.exheres-0 @@ -0,0 +1,6 @@ +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> +# Distributed under the terms of the GNU General Public License v2 + +require swiften + +PLATFORMS="~amd64 ~x86" diff --git a/packages/net-im/swiften/swiften.exlib b/packages/net-im/swiften/swiften.exlib new file mode 100644 index 0000000..a171de7 --- /dev/null +++ b/packages/net-im/swiften/swiften.exlib @@ -0,0 +1,60 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +SCM_REPOSITORY="git://swift.im/swift" +SCM_BRANCH="swift-4.x" + +require scons scm-git + +export_exlib_phases src_prepare + +SUMMARY="Just a perfect C++ XMPP library" +HOMEPAGE="http://swift.im/" +SLOT="0" +LICENCES="GPL-3" + +MYOPTIONS=" + avahi + ( providers: libressl openssl ) [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build+run: + dev-libs/boost[>=1.42] + net-dns/libidn[>=1.10] + dev-libs/libxml2 + dev-libs/expat + net-libs/miniupnpc + sys-libs/zlib + avahi? ( net-dns/avahi ) + providers:libressl? ( dev-libs/libressl:= ) + providers:openssl? ( dev-libs/openssl ) +" + + +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}/*.patch" +) + +swiften_src_prepare() { + edo pushd 3rdParty + edo rm -rf Boost CAres DocBook Expat LCov LibIDN OpenSSL SCons SQLite ZLib + edo popd + edo rm -rf Swiften/Examples +} + +SCONS_SRC_CONFIGURE_PARAMS=( + allow_warnings=1 + swiften_dll=1 + cc=$(exhost --target)-cc + cxx=$(exhost --target)-c++ + Swiften +) + +SCONS_SRC_COMPILE_PARAMS=( + cc=$(exhost --target)-cc + cxx=$(exhost --target)-c++ + Swiften +) + +SCONS_SRC_INSTALL_PARAMS=${SCONS_SRC_COMPILE_PARAMS[@]} |