Index: head/graphics/swfmill/Makefile =================================================================== --- head/graphics/swfmill/Makefile (revision 433447) +++ head/graphics/swfmill/Makefile (revision 433448) @@ -1,26 +1,26 @@ # Created by: Sergey Skvortsov # $FreeBSD$ PORTNAME= swfmill PORTVERSION= 0.3.3 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= http://swfmill.org/releases/ MAINTAINER= ports@FreeBSD.org COMMENT= Tool to generate or decompile Adobe Flash SWF files LICENSE= GPLv2 LIB_DEPENDS= libpng.so:graphics/png \ libfreetype.so:print/freetype2 USES= dos2unix iconv gmake pkgconfig libtool USE_GNOME= libxml2 libxslt GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include DOS2UNIX_FILES= src/swft/swft_import_ttf.cpp PLIST_FILES= bin/swfmill .include Index: head/graphics/swfmill/files/patch-src_codegen_parsexml.xsl =================================================================== --- head/graphics/swfmill/files/patch-src_codegen_parsexml.xsl (revision 433447) +++ head/graphics/swfmill/files/patch-src_codegen_parsexml.xsl (revision 433448) @@ -1,11 +1,11 @@ --- src/codegen/parsexml.xsl.orig 2013-10-30 17:33:35 UTC +++ src/codegen/parsexml.xsl @@ -19,7 +19,7 @@ char *fromXmlChar(const Context *ctx, co if (ctx->convertEncoding) { size_t len = strlen((const char *)from_str); iconv_t cd = iconv_open(ctx->swf_encoding, "UTF-8"); - if (cd < 0) { -+ if (cd == NULL) { ++ if (cd == (iconv_t)-1) { fprintf(stderr, "iconv_open failed.\n"); char *buf = new char[1]; buf[0] = '\0'; Index: head/graphics/swfmill/files/patch-src_codegen_writexml.xsl =================================================================== --- head/graphics/swfmill/files/patch-src_codegen_writexml.xsl (revision 433447) +++ head/graphics/swfmill/files/patch-src_codegen_writexml.xsl (revision 433448) @@ -1,11 +1,11 @@ --- src/codegen/writexml.xsl.orig 2013-10-30 17:33:35 UTC +++ src/codegen/writexml.xsl @@ -15,7 +15,7 @@ xmlChar *toXmlChar(const Context *ctx, c if (ctx->convertEncoding) { size_t len = strlen(from_str); iconv_t cd = iconv_open("UTF-8", ctx->swf_encoding); - if (cd < 0) { -+ if (cd == NULL) { ++ if (cd == (iconv_t)-1) { fprintf(stderr, "iconv_open failed.\n"); return xmlCharStrdup(""); }