Index: head/graphics/exif/Makefile =================================================================== --- head/graphics/exif/Makefile (revision 190817) +++ head/graphics/exif/Makefile (revision 190818) @@ -1,26 +1,34 @@ # New ports collection makefile for: exif # Date created: May 02 2005 # Whom: Pav Lucistnik # # $FreeBSD$ # PORTNAME= exif PORTVERSION= 0.6.9 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= libexif MAINTAINER= pav@FreeBSD.org COMMENT= Command line utility to read and manipulate EXIF data LIB_DEPENDS= exif.12:${PORTSDIR}/graphics/libexif \ popt.0:${PORTSDIR}/devel/popt GNU_CONFIGURE= yes -USE_ICONV= yes CONFIGURE_ARGS= --with-popt-prefix=${LOCALBASE} + +.if defined(WITHOUT_NLS) +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.else +USE_ICONV= yes +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.endif MAN1= exif.1 .include Property changes on: head/graphics/exif/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.5 \ No newline at end of property +1.6 \ No newline at end of property Index: head/graphics/exif/files/patch-exif-i18n.c =================================================================== --- head/graphics/exif/files/patch-exif-i18n.c (nonexistent) +++ head/graphics/exif/files/patch-exif-i18n.c (revision 190818) @@ -0,0 +1,30 @@ +--- exif/exif-i18n.c 2003/09/30 22:53:37 1.2 ++++ exif/exif-i18n.c 2004/08/27 16:28:18 1.3 +@@ -1,7 +1,10 @@ + #include + #include "exif-i18n.h" + +-#include ++#ifdef HAVE_ICONV ++# include ++#endif ++ + #include + #include + +@@ -11,6 +14,7 @@ + const char * + exif_i18n_convert_utf8_to_lat1 (const char *in) + { ++#ifdef HAVE_ICONV + static iconv_t tr = 0; + size_t t = (in ? strlen (in) : 0); + static char buf[2048]; +@@ -23,4 +27,7 @@ + if (!tr) tr = iconv_open ("ISO-8859-1", "UTF-8"); + iconv (tr, (char **) &in, &t, (char **) &out, &buf_size); + return buf; ++#else ++ return in; ++#endif + } Property changes on: head/graphics/exif/files/patch-exif-i18n.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/graphics/exif/pkg-plist =================================================================== --- head/graphics/exif/pkg-plist (revision 190817) +++ head/graphics/exif/pkg-plist (revision 190818) @@ -1,4 +1,4 @@ bin/exif -share/locale/de/LC_MESSAGES/exif.mo -share/locale/es/LC_MESSAGES/exif.mo -share/locale/fr/LC_MESSAGES/exif.mo +%%NLS%%share/locale/de/LC_MESSAGES/exif.mo +%%NLS%%share/locale/es/LC_MESSAGES/exif.mo +%%NLS%%share/locale/fr/LC_MESSAGES/exif.mo Property changes on: head/graphics/exif/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property