diff --git a/srcpkgs/perl-Glib/template b/srcpkgs/perl-Glib/template index 197ddee04c7..6fb0daf3334 100644 --- a/srcpkgs/perl-Glib/template +++ b/srcpkgs/perl-Glib/template @@ -4,13 +4,18 @@ version=1.3292 revision=1 wrksrc="Glib-${version}" build_style=perl-module -hostmakedepends="perl" -makedepends="perl-ExtUtils-Depends perl-ExtUtils-PkgConfig glib-devel" -depends="${hostmakedepends/glib-devel/}" +hostmakedepends="libglib-devel perl-ExtUtils-Depends perl-ExtUtils-PkgConfig" +makedepends="glib-devel perl" +depends="perl" short_desc="Perl bindings for Glib 2" maintainer="Zach Dykstra " license="LGPL-2.1-or-later" homepage="http://gtk2-perl.sourceforge.net/" distfiles="${SOURCEFORGE_SITE}/gtk2-perl/Glib-${version}.tar.gz" checksum=2f3bf06de572500e168acc6536d04f0066dd2fcbdfc3724cd5e5896d5a39a0e0 -nocross=yes + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" perl-Glib" + export REALFULLPERLRUN="/usr/bin/perl -I/usr/lib/perl5/vendor_perl" + make_build_args='FULLPERLRUN=$(REALFULLPERLRUN)' +fi