2016-02-01 19:37:52 +00:00
|
|
|
# Template file for 'swiften'
|
|
|
|
pkgname=swiften
|
2016-09-07 07:47:50 +00:00
|
|
|
version=3.0
|
|
|
|
revision=1
|
2016-02-01 19:37:52 +00:00
|
|
|
build_style=scons
|
|
|
|
hostmakedepends="scons"
|
|
|
|
makedepends="boost-devel libressl-devel libxml2-devel libidn-devel"
|
|
|
|
short_desc="XMPP library for C++"
|
|
|
|
maintainer="John Regan <john@jrjrtech.com>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="http://swift.im/"
|
|
|
|
distfiles="http://swift.im/git/swift/snapshot/swift-${version}.tar.bz2"
|
2016-09-07 07:47:50 +00:00
|
|
|
checksum=2e48f081d337f471b4eba7c0c807a7b640216a76ed3568ced55abb5b927c7fd2
|
2016-02-01 19:37:52 +00:00
|
|
|
wrksrc="swift-${version}"
|
|
|
|
make_build_targets="Swiften"
|
|
|
|
|
|
|
|
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libxml2 -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_SIGNALS_NO_DEPRECATION_WARNING=1"
|
|
|
|
_scons_options="assertions=1 build_examples=1 max_jobs=1 optimize=1 debug=0 swiften_dll=1"
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
scons \
|
|
|
|
cc="${CC}" \
|
|
|
|
cxx="${CXX}" \
|
|
|
|
linkflags="${LDFLAGS}" \
|
|
|
|
ccflags="${CXXFLAGS}" \
|
|
|
|
${_scons_options} \
|
|
|
|
${make_build_targets}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
scons \
|
|
|
|
cc="${CC}" \
|
|
|
|
cxx="${CXX}" \
|
|
|
|
linkflags="${LDFLAGS}" \
|
|
|
|
ccflags="${CXXFLAGS}" \
|
|
|
|
${_scons_options} \
|
|
|
|
SWIFTEN_INSTALLDIR="${DESTDIR}/usr" \
|
|
|
|
"${DESTDIR}/usr"
|
|
|
|
}
|
|
|
|
|
|
|
|
swiften-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
}
|
|
|
|
}
|