diff options
author | Juergen Lock <nox@FreeBSD.org> | 2011-07-17 16:29:42 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2011-07-17 16:29:42 +0000 |
commit | 82e01abf4f79553cb268b4304e6453a07615f7a1 (patch) | |
tree | bb34489a90e59d67013738572bf365d62a0b4dc7 /multimedia | |
parent | 26ee3027383083689436ff0608ecf27ba26b15d5 (diff) | |
download | ports-82e01abf4f79553cb268b4304e6453a07615f7a1.tar.gz ports-82e01abf4f79553cb268b4304e6453a07615f7a1.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/linux_v4l2wrapper-kmod/Makefile | 13 | ||||
-rw-r--r-- | multimedia/linux_v4l2wrapper-kmod/Makefile.sub | 12 |
2 files changed, 14 insertions, 11 deletions
diff --git a/multimedia/linux_v4l2wrapper-kmod/Makefile b/multimedia/linux_v4l2wrapper-kmod/Makefile index 71459088a447..1d2a5db1da14 100644 --- a/multimedia/linux_v4l2wrapper-kmod/Makefile +++ b/multimedia/linux_v4l2wrapper-kmod/Makefile @@ -38,18 +38,9 @@ MAKE_ENV+= SYSDIR="${SYSDIR}" CFLAGS+= ${DEBUG_FLAGS} -# try to avoid child processes when finding out if already in the kernel -.if ${OSVERSION} > 900036 || (${OSVERSION} < 900000 && ${OSVERSION} > 802508) -INBASE= 1 -.else -.if ${OSVERSION} == 900036 || ${OSVERSION} == 802508 -INBASE!= ($(SYSCTL) -n kern.features.linuxulator_v4l2 2>/dev/null || true) -.else -INBASE= 0 -.endif -.endif +.include "${.CURDIR}/Makefile.sub" -.if ${INBASE} == "1" +.if ${LINUX_V4L2_AVAILABLE} == "1" IGNORE= is already in kernel .else .if !exists(${SYSDIR}/Makefile) diff --git a/multimedia/linux_v4l2wrapper-kmod/Makefile.sub b/multimedia/linux_v4l2wrapper-kmod/Makefile.sub new file mode 100644 index 000000000000..e6f16d7c758d --- /dev/null +++ b/multimedia/linux_v4l2wrapper-kmod/Makefile.sub @@ -0,0 +1,12 @@ +# $FreeBSD$ + +# try to avoid child processes when finding out if already in the kernel +.if ${OSVERSION} > 900036 || (${OSVERSION} < 900000 && ${OSVERSION} > 802508) +LINUX_V4L2_AVAILABLE= 1 +.else +.if ${OSVERSION} == 900036 || ${OSVERSION} == 802508 +LINUX_V4L2_AVAILABLE!= ($(SYSCTL) -n kern.features.linuxulator_v4l2 2>/dev/null || true) +.else +LINUX_V4L2_AVAILABLE= 0 +.endif +.endif |