Skip to content

Commit

Permalink
Merge pull request msys2#19070 from stahta01/pr-wxwidgets3.2
Browse files Browse the repository at this point in the history
wxwidgets3.2: Update to 3.2.4 and
  • Loading branch information
lazka authored Nov 13, 2023
2 parents 8bb74a8 + b05ed80 commit 393dc27
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mingw-w64-wxwidgets3.2/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-wxwidgets${_wx_basever}-common"
"${MINGW_PACKAGE_PREFIX}-wxwidgets${_wx_basever}-gtk3-libs"
"${MINGW_PACKAGE_PREFIX}-wxwidgets${_wx_basever}-msw"
"${MINGW_PACKAGE_PREFIX}-wxwidgets${_wx_basever}-gtk3")
pkgver=${_wx_basever}.3
pkgver=${_wx_basever}.4
pkgrel=1
pkgdesc="A C++ library that lets developers create applications for Windows, Linux and UNIX (mingw-w64)"
arch=('any')
Expand Down Expand Up @@ -43,7 +43,7 @@ source=(
# the wxTeam rejected this patch
005-wxWidgets-3.1.3-Remove-WX_LIBS_STATIC-from-m4.patch
)
sha256sums=('c170ab67c7e167387162276aea84e055ee58424486404bba692c401730d1a67a'
sha256sums=('0640e1ab716db5af2ecb7389dbef6138d7679261fbff730d23845ba838ca133e'
'2b3b183a6a76ad539abc49a41033aa923c13b395c0e55189ba962068781c7135'
'4a4828f0c9cdc638cffde6a30b5dfb14283719acc9e89e19de8ec2d5a80a5aec')
prepare() {
Expand Down Expand Up @@ -329,6 +329,14 @@ package_wxwidgets3.2-msw() {
sed -s "s|\"-mthreads\"|\"\"|g" -i "${pkgdir}${MINGW_PREFIX}/bin/wx-config-static"
fi

# CLANG gives warnings and in some cases errors on "-mwindows" option while building wxPython
if [[ ${MSYSTEM} == CLANG* ]]; then
sed -s "s| -mwindows||g" -i "${pkgdir}${MINGW_PREFIX}/bin/wx-config"
sed -s "s| -mwindows||g" -i "${pkgdir}${MINGW_PREFIX}/bin/wx-config-static"
sed -s "s| -mwindows||g" -i "${pkgdir}${MINGW_PREFIX}/lib/wx/config/msw-unicode-${_wx_basever}"
sed -s "s| -mwindows||g" -i "${pkgdir}${MINGW_PREFIX}/lib/wx/config/msw-unicode-static-${_wx_basever}"
fi

# create wx-config copy with version file suffix
cp -a ${pkgdir}${MINGW_PREFIX}/bin/wx-config{,-${_wx_basever}}
}
Expand Down

0 comments on commit 393dc27

Please sign in to comment.