From 60ab61b6cfbe46af2668fc81528f3d2b7c3dead5 Mon Sep 17 00:00:00 2001
From: Hye-Shik Chang <perky@FreeBSD.org>
Date: Wed, 14 Apr 2004 03:03:14 +0000
Subject: Use OSVERSION instead of grep'ping libc.so to detect an existence of
 wcwidth(3).

Suggested by:	kris
---
 devel/newt/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'devel/newt')

diff --git a/devel/newt/Makefile b/devel/newt/Makefile
index 11d01268b860..4f619cf1a53a 100644
--- a/devel/newt/Makefile
+++ b/devel/newt/Makefile
@@ -15,7 +15,7 @@ MASTER_SITE_SUBDIR=	perky
 PKGNAMESUFFIX=	${PYTHONSUFFIX}${TCLSUFFIX}${I18NSUFFIX}
 
 MAINTAINER=	perky@FreeBSD.org
-COMMENT=	Not Erik's Windowing Toolkit:  console I/O handling library
+COMMENT=	Not Erik's Windowing Toolkit:  console I/O handling library#'
 
 LIB_DEPENDS=	slang.1:${PORTSDIR}/devel/libslang \
 		popt.0:${PORTSDIR}/devel/popt
@@ -49,9 +49,9 @@ PLIST_SUB+=	TCLOPT=""
 PLIST_SUB+=	TCLOPT="@comment "
 .endif
 
-_HAVE_WCHAR_LIB!=	grep wcwidth ${DESTDIR}/usr/lib/libc.so 2>/dev/null \
-			|| true
-.if empty(_HAVE_WCHAR_LIB)
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} <= 500038
 PATCH_SITES=	${MASTER_SITE_LOCAL} \
 		http://people.freebsd.org/~perky/distfiles/
 PATCH_SITE_SUBDIR=	perky
@@ -78,4 +78,4 @@ post-install:
 .endif
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
-- 
cgit v1.2.3