From 75e19f0d0267210b0c9f7df5c480f8fb7a23113a Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 6 May 2014 18:21:56 +0200 Subject: [PATCH] wireshark: fixing crossbuild --- srcpkgs/wireshark/template | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/srcpkgs/wireshark/template b/srcpkgs/wireshark/template index 5faf5f62dc..a2ecd99eaf 100644 --- a/srcpkgs/wireshark/template +++ b/srcpkgs/wireshark/template @@ -9,8 +9,9 @@ configure_args=" --with-ssl \ --with-zlib \ --with-lua \ --with-krb5 \ - --without-portaudio" -hostmakedepends="pkg-config bison flex perl" + --without-portaudio \ + CC_FOR_BUILD=cc" +hostmakedepends="pkg-config bison flex perl mit-krb5-devel libtool" makedepends="libpcap-devel zlib-devel lua-devel libcap-devel mit-krb5-devel gtk+-devel" depends="libcap-progs" short_desc="A graphical network protocol analyzer for Unix/Linux" @@ -20,7 +21,13 @@ license="GPL-2" distfiles="http://www.wireshark.org/download/src/${pkgname}-${version}.tar.bz2" checksum=d98d263b31dd904a0337ba2db6d1a80bb495b4ac419a304f0f25c551d50cafc6 system_groups="wireshark" -only_for_archs="i686 x86_64" + +pre_configure() { + libtoolize -f + sed -i \ + -e "s/^LIBS = .*/\0 -ldl/" \ + `find -name Makefile.in` +} post_install() { local _includeDir=usr/include/wireshark