wxWidgets: fix some cross builds.

Same fix as applied to wxWidgets-gtk3 in aecd085a.
This commit is contained in:
Érico Rolim 2021-01-28 00:55:08 -03:00
parent ab7a34b6c4
commit 2a0e447a2e

View file

@ -1,7 +1,7 @@
# Template file for 'wxWidgets'
pkgname=wxWidgets
version=3.0.5.1
revision=3
revision=4
configure_args="--enable-unicode --with-opengl --with-sdl --with-libmspack
--with-libnotify --enable-mediactrl --with-gtk=2 --disable-webview"
build_style=gnu-configure
@ -44,10 +44,11 @@ post_install() {
${DESTDIR}/usr/lib/wx/config/${_config}
fi
sed -i -e '/^libdir="\/usr/s,/usr,${exec_prefix},' \
vsed -i -e '/^libdir="\/usr/s,/usr,${exec_prefix},' \
-e '/^bindir="\/usr/s,/usr,${exec_prefix},' \
-e 's/is_cross() { .* }/is_cross() { false; }/g' \
-e '/--\*=\*)/i --host=\*) continue;;' \
-e "s/lib${XBPS_WORDSIZE}/lib/g" \
${DESTDIR}/usr/lib/wx/config/${_config}
ln -sf ../lib/wx/config/${_config} ${PKGDESTDIR}/usr/bin/wx-config-3.0
ln -sf wx-config-3.0 ${DESTDIR}/usr/bin/wx-config