pdcurses: update to PDCursesMod 4.5.3

additional: compile with standard flags again, PDCursesMod is portable again (update contains C90/C23 fixes)
This commit is contained in:
Simon Sobisch 2025-08-11 05:50:01 +00:00 committed by Dirk Stolle
parent 068639b3ed
commit a3b9a709a8
2 changed files with 48 additions and 4 deletions

View File

@ -8,7 +8,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-curses")
# No replace or conflict as the installed names are different
#replaces=("${MINGW_PACKAGE_PREFIX}-ncurses" "${MINGW_PACKAGE_PREFIX}-termcap")
#conflicts=("${MINGW_PACKAGE_PREFIX}-ncurses" "${MINGW_PACKAGE_PREFIX}-termcap")
pkgver=4.5.1
pkgver=4.5.3
pkgrel=1
pkgdesc="Curses library on the Win32 API (mingw-w64)"
# ports that are available with this package
@ -21,7 +21,7 @@ license=('Public Domain')
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
changelog=${_realname}.changelog
source=("https://github.com/Bill-Gray/PDCursesMod/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
sha256sums=('21f896f553972de5647a39ac5793ddeaece9a126e60bd14111973801f9006201')
sha256sums=('5be1c4a1ba42c958deb219e6fe45fd3315444bc47cfe0c89f5ac0d8c00cc5930')
#prepare() {
# cd PDCursesMod-${pkgver}
@ -33,7 +33,6 @@ build() {
for pdc_port in ${_pdcports}; do
cp -rf ${pdc_port} ${pdc_port}-shared-${MSYSTEM}
CFLAGS+=" -std=c17" \
make -C ${pdc_port}-shared-${MSYSTEM} \
CC=${MINGW_PREFIX}/bin/cc \
STRIP=${MINGW_PREFIX}/bin/strip \
@ -45,7 +44,6 @@ build() {
DLL=Y
cp -rf ${pdc_port} ${pdc_port}-static-${MSYSTEM}
CFLAGS+=" -std=c17" \
make -C ${pdc_port}-static-${MSYSTEM} \
CC=${MINGW_PREFIX}/bin/cc \
STRIP=${MINGW_PREFIX}/bin/strip \

View File

@ -1,3 +1,49 @@
This is a redacted changelog for parts related to MSYS2.
For the full list, especially ports not included in MSYS or other operating
systems see its [docs/HISTORY.md][1], and/or the [Git log][2] for extreme
detail.
[1]: https://github.com/Bill-Gray/PDCursesMod/blob/v4.5.3/docs/HISTORY.md
[2]: https://github.com/Bill-Gray/PDCursesMod/commits/
PDCursesMod 4.5.3 - 2025 Aug 11
================================
Bug fixes
---------
- stdin/stdout redirection now works on the Windows console platform.
- C23-compliant compilers (and some others) objected to the casting of
function pointers returned by `GetProcAddress()`.
- If `PDC_NCMOUSE` is #defined, the behavior of the mouse routines should
copy that of ncurses, warts and all. Scroll-up and down are mapped to
presses on buttons 4 and 5, and tilt-scroll events and "real" button 4
and 5 events are ignored.
PDCursesMod 4.5.2 - 2025 June 19
================================
Minor new features
------------------
- Fixes for C90 compliance: removed some C++-style // comments, moved
variables to the top of code blocks, used TRUE/FALSE instead of true/false.
Bug fixes
---------
- getch() triggered an assert() if fed a character that expanded to a
multi-byte string in PDC_FORCE_UTF8 builds.
- WinCon/pdckbd.c contained a poorly-written cast to which the C23 standard
objects, resulting in warnings/errors when built to that standard.
PDCursesMod 4.5.1- 2025 May 12
=============================