From 890ccaffc170cfd9e13f5f1c86b0c1be2acd55dd Mon Sep 17 00:00:00 2001 From: Boris Samorodov Date: Fri, 20 Oct 2017 20:16:57 +0000 Subject: [PATCH] textproc/goldendict: Fix iconv wchar_t initialization error. From the original e-mail: Goldendict still uses internal libiconv and can't to load dictionaries that require use of iconv with WCHAR_T producing "Can't initialize iconv conversion: Invalid argument". The patch based on the example 6.17 of porter's handbook solves the problem. Submitted by: Art Kamog (via e-mail) --- textproc/goldendict/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/textproc/goldendict/Makefile b/textproc/goldendict/Makefile index a4c7ab0ee157..29387d8e957e 100644 --- a/textproc/goldendict/Makefile +++ b/textproc/goldendict/Makefile @@ -3,7 +3,7 @@ PORTNAME= goldendict PORTVERSION= 1.0.1 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= textproc MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:C|(.*)\.[0-9]*$|\1|}/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src @@ -17,11 +17,12 @@ LIB_DEPENDS= libhunspell-1.6.so:textproc/hunspell \ libvorbis.so:audio/libvorbis NO_WRKSUBDIR= yes -USES= dos2unix iconv pkgconfig qmake tar:bzip2 +USES= dos2unix iconv:wchar_t pkgconfig qmake tar:bzip2 DOS2UNIX_FILES= processwrapper.cc USE_XORG= xtst USE_QT4= corelib gui webkit phonon \ linguist_build moc_build rcc_build script_build uic_build +LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} INSTALLS_ICONS= yes post-patch: