wxWidgets-gtk3: fix -devel config, add hard dependencies

This commit is contained in:
Andrew J. Hesford 2023-11-20 09:40:41 -05:00
parent 90cde7211e
commit 326b9cacee
1 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'wxWidgets-gtk3'
pkgname=wxWidgets-gtk3
version=3.2.4
revision=1
revision=2
build_style=cmake
cmake_builddir="build-gtk3"
configure_args="-DwxBUILD_TOOLKIT=gtk3 -DwxUSE_OPENGL=ON -DwxUSE_LIBMSPACK=ON
@ -36,11 +36,12 @@ post_install() {
if [ "$CROSS_BUILD" ]; then
# Remove $XBPS_CROSS_TRIPLET from cmake helper...
sed -i -e "s@/usr/${XBPS_CROSS_TRIPLET}@@g" \
local _xprefix="${XBPS_CROSS_BASE}/usr/"
sed -i -e "s@${_xprefix}@\${_IMPORT_PREFIX}/@g" \
${DESTDIR}/usr/lib/cmake/wxWidgets/wxWidgetsTargets.cmake
# ...and the output of the wx-config utility
sed -i -e "s@/usr/${XBPS_CROSS_TRIPLET}@@g" \
sed -i -e "s@${_xprefix}@\${prefix}/@g" \
${DESTDIR}/usr/lib/wx/config/${_config}
fi
@ -74,7 +75,11 @@ wxWidgets-common-devel_package() {
}
wxWidgets-gtk3-devel_package() {
depends="${sourcepkg}>=${version}_${revision} wxWidgets-common-devel>=${version}_${revision}"
depends="
${sourcepkg}>=${version}_${revision}
wxWidgets-common-devel>=${version}_${revision}
gtk+3-devel glib-devel SDL2-devel gspell-devel libnotify-devel
"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin