aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/xcdroast/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xcdroast/Makefile')
-rw-r--r--sysutils/xcdroast/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysutils/xcdroast/Makefile b/sysutils/xcdroast/Makefile
index 7e9b59377f9e..7635da3f0236 100644
--- a/sysutils/xcdroast/Makefile
+++ b/sysutils/xcdroast/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xcdroast
PORTVERSION= 0.98.a.15
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.xcdroast.org/download/:src \
@@ -53,6 +53,7 @@ PLIST_SUB= NLS=""
.if defined(WITH_GTK2)
CONFIGURE_ARGS+=--enable-gtk2
USE_GNOME= gtk20
+PATCH_DEPENDS= iconv:${PORTSDIR}/converters/libiconv
.else
CONFIGURE_ARGS+=--disable-gtk2
USE_GNOME= gdkpixbuf
@@ -84,5 +85,13 @@ pre-patch:
post-patch:
@${REINPLACE_CMD} -e 's|gint in, out|gsize in, out|g' \
${WRKSRC}/src/xtools.c
+.if defined(WITH_GTK2)
+ @cd ${WRKSRC}/po ; for FILE in *.po ; do \
+ SOURCE=`${AWK} -F'[=\\\\\\\\]' '/charset=/ { print $$2 }' $$FILE` ; \
+ ${LOCALBASE}/bin/iconv -f $$SOURCE -t UTF-8 $$FILE > $$FILE.bak ; \
+ ${MV} $$FILE.bak $$FILE ; \
+ ${REINPLACE_CMD} -e 's|charset='$$SOURCE'|charset=UTF-8|g' $$FILE ; \
+ done
+.endif
.include <bsd.port.post.mk>