summaryrefslogtreecommitdiff
path: root/sysutils/cd9660_unicode
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-03-02 19:09:35 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-03-02 19:09:35 +0000
commit528d4be48b937a2666c1b9b69974f6c52fbd8d0e (patch)
treef720adaee8c28889ca60a80199b98ac0040d43d7 /sysutils/cd9660_unicode
parentOn i386 downgrade to 0.88 because 0.89 is buggy and segfaults very too often. (diff)
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
Notes
Notes: svn path=/head/; revision=38994
Diffstat (limited to 'sysutils/cd9660_unicode')
-rw-r--r--sysutils/cd9660_unicode/Makefile11
1 files 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 <bsd.port.pre.mk>
-
-.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 <bsd.port.post.mk>
+.include <bsd.port.mk>