diff options
author | nox <nox@FreeBSD.org> | 2011-07-18 00:29:42 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2011-07-18 00:29:42 +0800 |
commit | 240ce5ace3f40f489f0e7dbf2eb53dfaae101bcc (patch) | |
tree | d96d78aa5d84db7a4af7a0ed517b5f1c7684a16e /multimedia/linux_v4l2wrapper-kmod | |
parent | 306369fea2401c7b7cc7a51815e5dfe4d103ba30 (diff) | |
download | freebsd-ports-gnome-240ce5ace3f40f489f0e7dbf2eb53dfaae101bcc.tar.gz freebsd-ports-gnome-240ce5ace3f40f489f0e7dbf2eb53dfaae101bcc.tar.zst freebsd-ports-gnome-240ce5ace3f40f489f0e7dbf2eb53dfaae101bcc.zip |
Fix skype multimedia/linux_v4l2wrapper dependency on 8.
Approved by: itetcu (skype ports maintainer)
Discussed on: -multimedia
Diffstat (limited to 'multimedia/linux_v4l2wrapper-kmod')
-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 |