diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-03-03 03:09:35 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-03-03 03:09:35 +0800 |
commit | be1e13ca8df4973de166fa92ec948699092f9395 (patch) | |
tree | 9f667566c63f44dfdaab67002f84ff25dcbec961 | |
parent | 3292b449c39e8f76251179fecc0290918ca0b4cc (diff) | |
download | freebsd-ports-gnome-be1e13ca8df4973de166fa92ec948699092f9395.tar.gz freebsd-ports-gnome-be1e13ca8df4973de166fa92ec948699092f9395.tar.zst freebsd-ports-gnome-be1e13ca8df4973de166fa92ec948699092f9395.zip |
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
-rw-r--r-- | sysutils/cd9660_unicode/Makefile | 11 |
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> |