From 528d4be48b937a2666c1b9b69974f6c52fbd8d0e Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Fri, 2 Mar 2001 19:09:35 +0000 Subject: [PATCH] Heuristically determine if the kernel sources contain knob required to load this module. This allows using it on very recent 4.2-STABLE. Prompted by: bmah --- sysutils/cd9660_unicode/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sysutils/cd9660_unicode/Makefile b/sysutils/cd9660_unicode/Makefile index 44a56cbfe3cd..dec1a0e9c017 100644 --- a/sysutils/cd9660_unicode/Makefile +++ b/sysutils/cd9660_unicode/Makefile @@ -20,11 +20,12 @@ PKGMESSAGE= ${WRKDIR}/.MESSAGE ENCODINGS= cd ${WRKSRC}/templates && ${ECHO} [^C]* | \ ${SED} 's|\.txt|,|g' FMT= /usr/bin/fmt +FLAG!= /usr/bin/grep -e cd9660_wchar2char \ + ${SRCPREFIX}/sys/isofs/cd9660/cd9660_util.c || \ + /usr/bin/true -.include - -.if ${OSVERSION} < 500000 -BROKEN= "FreeBSD 3.*, 4.* are not supported" +.if (${FLAG} == "") +BROKEN= "your FreeBSD version is not supported. Please update to the latest version and try again" .endif pre-fetch: @@ -46,4 +47,4 @@ pre-install: post-install: @${CAT} ${PKGMESSAGE} -.include +.include