I've followed the instructions here that seems to be created for an older release. After creating the /usr/pkg/share/config.site file with the two lines:
CPPFLAGS="-I/usr/pkg/include \$CPPFLAGS"
LDFLAGS="-L/usr/pkg/lib -Wl,-R/usr/pkg/lib \$LDFLAGS"
run ./autogen.sh and then, ./configure --deken-os=NetBSD --prefix=/usr/pkg --disable-alsa --enable-jack MAKE=gmake that gives the error:
checking whether the C compiler works... no
configure: error: in '/home/e900bsd/tmp/pure-data':
configure: error: C compiler cannot create executables
See 'config.log' for more details
and the config.log
gcc version 12.5.0 (nb3 20260326)
configure:5714: $? = 0
configure:5703: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5714: $? = 1
configure:5703: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:5714: $? = 1
configure:5703: gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:5714: $? = 1
configure:5734: checking whether the C compiler works
configure:5756: gcc -I/usr/pkg/include $CPPFLAGS -L/usr/pkg/lib -Wl,-R/usr/pkg/lib $LDFLAGS conftest.c >&5
ld: cannot find $CPPFLAGS: No such file or directory
ld: cannot find $LDFLAGS: No such file or directory
configure:5760: $? = 1
configure:5801: result: no