wireshark-qt: enable cross build

This commit is contained in:
Alessio Sergi 2016-11-23 01:26:33 +01:00
parent 578e3cffa9
commit 840e5f9b83
1 changed files with 5 additions and 12 deletions

View File

@ -1,13 +1,14 @@
# Template file for 'wireshark'
pkgname=wireshark
version=2.2.2
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-ssl --with-pcap --with-libcap --with-zlib --with-lua
--with-krb5 --with-gtk=3 --without-portaudio CC_FOR_BUILD=cc"
hostmakedepends="pkg-config flex perl python-devel mit-krb5-devel automake libtool qt5-tools glib-devel"
--with-krb5 --with-gtk=3 --with-qt=5 --without-portaudio CC_FOR_BUILD=cc"
hostmakedepends="pkg-config flex perl python-devel mit-krb5-devel automake libtool
qt5-host-tools qt5-tools glib-devel"
makedepends="libpcap-devel zlib-devel lua52-devel mit-krb5-devel gnutls-devel
geoip-devel libgcrypt-devel gtk+3-devel libcap-devel sbc-devel c-ares-devel"
geoip-devel libgcrypt-devel gtk+3-devel qt5-devel libcap-devel sbc-devel c-ares-devel"
depends="libcap-progs"
short_desc="A network protocol analyzer"
maintainer="Enno Boland <gottox@voidlinux.eu>"
@ -18,17 +19,9 @@ distfiles="http://www.wireshark.org/download/src/${pkgname}-${version}.tar.bz2"
#distfiles="https://sources.voidlinux.eu/${pkgname}-${version}/${pkgname}-${version}.tar.bz2"
checksum=f9acef5e9a9021a400b4244fafc06969f41ec594ec57fd7f0ff63bafca0055b3
system_groups="wireshark"
subpackages="libwireshark libwireshark-devel wireshark-gtk"
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt5-devel"
configure_args+=" --with-qt=yes"
subpackages+=" wireshark-qt"
else
configure_args+=" --with-qt=no"
fi
pre_configure() {
autoreconf -fi