From 5f049474c1c4f333a82e6d12126a6fafe74ca82c Mon Sep 17 00:00:00 2001
From: Pietro Cerutti <gahr@FreeBSD.org>
Date: Thu, 7 Feb 2013 10:39:56 +0000
Subject: [PATCH] - Get rid of PTHREAD_CFLAGS and PTHREAD_LIBS (category:
 korean)

Approved by:	portmgr
---
 korean/gtkcomm/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/korean/gtkcomm/Makefile b/korean/gtkcomm/Makefile
index 4b2415e387ba..4d1db60ade06 100644
--- a/korean/gtkcomm/Makefile
+++ b/korean/gtkcomm/Makefile
@@ -23,7 +23,7 @@ USE_GNOME=	glib20 gtk20
 GNU_CONFIGURE=	yes
 
 pre-patch:
-	@${PERL} -pi -e 's^-l(pthread|c_r)^${PTHREAD_LIBS}^g ; \
-		 s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+	${REINPLACE_CMD} -e 's|-lc_r||; s|DATADIRNAME=lib|DATADIRNAME=share|g' \
+	    ${WRKSRC}/configure
 
 .include <bsd.port.mk>