freebsd-ports/multimedia/v4l_compat/Makefile
Koop Mast 636dab0705 Update libv4l and friends to 1.6.3.
Turn v4l-util and v4l_compat into slave ports.
"Steal" the dvb headers from linux 3.16.7 and roll them into a tarball.
Assign maintainership to multimedia@

Differential Revision:	https://reviews.freebsd.org/D1482
Approved by:		nox@, hslasky@, kwm@ (multimedia@)
2015-06-14 04:59:37 +00:00

42 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= v4l_compat
PORTREVISION= 0
COMMENT= Video4Linux IOCTL header files
NO_BUILD= yes
NO_ARCH= yes
MASTERDIR= ${.CURDIR}/../../multimedia/libv4l
EXTRADIR= ${WRKSRC}/../linux
DESCR= ${.CURDIR}/pkg-descr
PLIST= ${.CURDIR}/pkg-plist
LIBV4L_SLAVE= compat
BASE_HEADERS= input.h uinput.h ivtv.h v4l2-controls.h \
v4l2-common.h videodev2.h
DVB_HEADERS= audio.h dmx.h frontend.h video.h
EXTRA_HEADERS= ca.h osd.h version.h
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/linux/dvb/
.for i in ${BASE_HEADERS}
${INSTALL_DATA} ${WRKSRC}/contrib/freebsd/include/linux/${i} \
${STAGEDIR}${PREFIX}/include/linux/
.endfor
.for i in ${DVB_HEADERS}
${INSTALL_DATA} ${WRKSRC}/include/linux/dvb/${i} \
${STAGEDIR}${PREFIX}/include/linux/dvb
.endfor
# V4L1 is dead in linux, however webcamd still supports it.
${INSTALL_DATA} ${FILESDIR}/videodev.h \
${STAGEDIR}${PREFIX}/include/linux/
# Extra dvb headers supplied taken from the linux kernel distfile.
# vdr and the gst dvb plugin need them at least
.for i in ${EXTRA_HEADERS}
${INSTALL_DATA} ${EXTRADIR}/dvb/${i} \
${STAGEDIR}${PREFIX}/include/linux/dvb/
.endfor
.include "${MASTERDIR}/Makefile"