From 97a50d0b7fcd41dcd184cc6bda3ee4914a02f15a Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Sat, 16 Dec 2017 08:22:21 +0100 Subject: [PATCH] poedit: fix cross compilation Closes: #10040 [via git-merge-pr] --- srcpkgs/poedit/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/poedit/template b/srcpkgs/poedit/template index a3d235c2462..5fbacc8ba3c 100644 --- a/srcpkgs/poedit/template +++ b/srcpkgs/poedit/template @@ -3,7 +3,6 @@ pkgname=poedit version=2.0.5 revision=1 build_style=gnu-configure -configure_args="--with-wx-config=wx-config-3.0" hostmakedepends="pkg-config" makedepends="icu-devel db-devel gtkspell-devel wxWidgets-devel boost-devel Lucene++-devel" depends="hicolor-icon-theme desktop-file-utils" @@ -16,6 +15,11 @@ checksum=c755959555b26e584d953a97ee39ed7d060323d003740ed9309eee7a2e205faa CPPFLAGS="-DUCHAR_TYPE=uint16_t" +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" wxWidgets-devel" + configure_args="WXRC=/usr/bin/wxrc --with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib" +fi + post_install() { vlicense COPYING }