aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2005-07-19 15:13:56 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2005-07-19 15:13:56 +0000
commit3906646085e76ce4397a42179274a7a1efd983ce (patch)
tree17a2d5ca991329ea901f8a7d5c50ac5391b353ce
parent16962b6b7423bfe55b274da7c01db681b1734a8d (diff)
downloadports-3906646085e76ce4397a42179274a7a1efd983ce.tar.gz
ports-3906646085e76ce4397a42179274a7a1efd983ce.zip
Notes
-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>