wxWidgets: fix some cross builds.
Same fix as applied to wxWidgets-gtk3 in aecd085a
.
This commit is contained in:
parent
ab7a34b6c4
commit
2a0e447a2e
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'wxWidgets'
|
# Template file for 'wxWidgets'
|
||||||
pkgname=wxWidgets
|
pkgname=wxWidgets
|
||||||
version=3.0.5.1
|
version=3.0.5.1
|
||||||
revision=3
|
revision=4
|
||||||
configure_args="--enable-unicode --with-opengl --with-sdl --with-libmspack
|
configure_args="--enable-unicode --with-opengl --with-sdl --with-libmspack
|
||||||
--with-libnotify --enable-mediactrl --with-gtk=2 --disable-webview"
|
--with-libnotify --enable-mediactrl --with-gtk=2 --disable-webview"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
@ -44,10 +44,11 @@ post_install() {
|
||||||
${DESTDIR}/usr/lib/wx/config/${_config}
|
${DESTDIR}/usr/lib/wx/config/${_config}
|
||||||
|
|
||||||
fi
|
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 '/^bindir="\/usr/s,/usr,${exec_prefix},' \
|
||||||
-e 's/is_cross() { .* }/is_cross() { false; }/g' \
|
-e 's/is_cross() { .* }/is_cross() { false; }/g' \
|
||||||
-e '/--\*=\*)/i --host=\*) continue;;' \
|
-e '/--\*=\*)/i --host=\*) continue;;' \
|
||||||
|
-e "s/lib${XBPS_WORDSIZE}/lib/g" \
|
||||||
${DESTDIR}/usr/lib/wx/config/${_config}
|
${DESTDIR}/usr/lib/wx/config/${_config}
|
||||||
ln -sf ../lib/wx/config/${_config} ${PKGDESTDIR}/usr/bin/wx-config-3.0
|
ln -sf ../lib/wx/config/${_config} ${PKGDESTDIR}/usr/bin/wx-config-3.0
|
||||||
ln -sf wx-config-3.0 ${DESTDIR}/usr/bin/wx-config
|
ln -sf wx-config-3.0 ${DESTDIR}/usr/bin/wx-config
|
||||||
|
|
Loading…
Reference in a new issue