void-packages/srcpkgs/eiskaltdcpp-qt/template

33 lines
1.3 KiB
Bash

# Template file for 'eiskaltdcpp-qt'
pkgname=eiskaltdcpp-qt
version=2.4.2
revision=2
build_style=cmake
configure_args="-DUSE_QT5=ON -DUSE_QT=OFF -DUSE_ASPELL=OFF -DLINK=STATIC"
hostmakedepends="gettext pkg-config qt5-tools-devel qt5-host-tools qt5-qmake"
makedepends="bzip2-devel zlib-devel openssl-devel libidn-devel lua52-devel
miniupnpc-devel qt5-devel qt5-multimedia-devel qt5-plugin-sqlite pcre-devel
qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-tds"
short_desc="EiskaltDC++ is a file sharing program using Direct Connect protocols"
maintainer="Boris Pek <tehnick-8@yandex.ru>"
license="GPL-3.0-or-later"
homepage="https://github.com/eiskaltdcpp/eiskaltdcpp"
distfiles="https://github.com/eiskaltdcpp/eiskaltdcpp/archive/v${version}.tar.gz"
checksum=2ed853a57c57aab0e87fdea273a01707184ee425a2aaf9fcd2e0a32c57a2de2c
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel"
fi
case $XBPS_TARGET_MACHINE in
# links against libintl.so because it uses LANGUAGE as an env var
# and always messes with _nl_msg_cat_cntr (the latter could be patched out,
# the first is harder).
*-musl) makedepends+=" gettext-devel"
configure_args+=' -DCMAKE_EXE_LINKER_FLAGS="-lintl"'
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gettext"
;;
*) configure_args+=' -DCMAKE_EXE_LINKER_FLAGS="-lpthread"'
;;
esac