From 9ed6e13898ec9a7f9d6031838cc63290409d4d9e Mon Sep 17 00:00:00 2001
From: Dmitry Sivachenko <demon@FreeBSD.org>
Date: Thu, 5 Jul 2007 09:00:01 +0000
Subject: Unbreak.

PR:		114302
Submitted by:	novel
---
 x11-fm/xnc/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/x11-fm/xnc/Makefile b/x11-fm/xnc/Makefile
index 08bd1cc10e39..fea15a4eb4c1 100644
--- a/x11-fm/xnc/Makefile
+++ b/x11-fm/xnc/Makefile
@@ -26,8 +26,6 @@ LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
 		png.5:${PORTSDIR}/graphics/png \
 		tiff.4:${PORTSDIR}/graphics/tiff
 
-BROKEN=		Does not build
-
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 USE_GETTEXT=	yes
 USE_XLIB=	yes
@@ -38,6 +36,13 @@ CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 
 MAN1=		ives.1 xjpegroot.1 xnc.1 xnlaunch.1 iedit.1 iview.1
 
+post-configure:
+	${REINPLACE_CMD} -e 's|-I$$(MYSRCDIR)/intl||;s|$${top_builddir}/intl/libintl.a|-lintl|' \
+		${WRKSRC}/src/ives/makefile \
+		${WRKSRC}/src/launch/makefile \
+		${WRKSRC}/src/xsetup/makefile \
+		${WRKSRC}/src/makefile
+
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-- 
cgit v1.2.3