Use iconv port, for wchar_t.

When running the plexhometheater player, the following line is repeatedly
printed into the log output.

ERROR: convert_checked iconv_open() failed from UTF-8 to WCHAR_T, errno=22(Invalid argument)

This is because the plexhometheater port currently uses the iconv in base,
which does not provide the wchar_t functionality.

PR:		194533
Submitted by:	Ben Woods (maintainer)
This commit is contained in:
Adam Weinberger 2014-10-22 16:25:55 +00:00
parent f303c83fe8
commit fc6c6e172d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371361

View file

@ -69,7 +69,7 @@ GH_PROJECT= plex-home-theater-public
GH_COMMIT= 2d6426d
GH_TAGNAME= pht-v1.2.2
USES= cmake:outsource iconv pkgconfig python:2
USES= cmake:outsource iconv:wchar_t pkgconfig python:2
CMAKE_ARGS+= -DENABLE_AUTOUPDATE:BOOL=false
CMAKE_ARGS+= -DENABLE_DUMP_SYMBOLS:BOOL=false
CMAKE_ARGS+= -DENABLE_PYTHON:BOOL=false
@ -126,6 +126,8 @@ post-patch:
${WRKSRC}/lib/ffmpeg/common.mak \
${WRKSRC}/lib/ffmpeg/configure \
${WRKSRC}/lib/ffmpeg/libavcodec/Makefile
@${REINPLACE_CMD} 's/iconv_open/libiconv_open/' \
${WRKSRC}/plex/CMakeModules/FindIconv.cmake
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin