Hi ports@ Starting from version 3.3.5 libiconv can be used so I added 'iconv' to 'WANTLIB'.
Further in order for the configure script to find/recognize support for libiconv and libintl setting 'CONFIGURE_ENV' seems to be necessary. I attach a diff. Markus
Index: Makefile =================================================================== RCS file: /cvs/ports/net/swirc/Makefile,v retrieving revision 1.17 diff -u -p -r1.17 Makefile --- Makefile 29 Jul 2022 16:44:06 -0000 1.17 +++ Makefile 29 Jul 2022 22:04:11 -0000 @@ -9,7 +9,8 @@ MAINTAINER = Markus Uhlin <markus.uhlin PERMIT_PACKAGE = Yes # uses pledge() -WANTLIB = ${COMPILER_LIBCXX} c crypto curl curses idn intl m panel pthread ssl +WANTLIB = ${COMPILER_LIBCXX} c crypto curl curses iconv idn intl \ + m panel pthread ssl MASTER_SITES = https://www.nifty-networks.net/swirc/releases/ EXTRACT_SUFX = .tgz @@ -18,6 +19,10 @@ BUILD_DEPENDS = devel/gettext,-tools LIB_DEPENDS = devel/gettext,-runtime \ devel/libidn \ net/curl + +CONFIGURE_ENV += CFLAGS="-I${LOCALBASE}/include" \ + CXXFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_STYLE = simple TEST_DEPENDS = devel/cmocka