blob: 6e07b8518d705b1e8bbab7c1dd5e3191757ecbb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile,v 1.23 2022/05/17 11:55:23 jperkin Exp $
LIBV4L_VERS= 1.22.1
DISTNAME= v4l-utils-${LIBV4L_VERS}
CATEGORIES= graphics
PKGNAME= libv4l-${LIBV4L_VERS}
MASTER_SITES= https://www.linuxtv.org/downloads/v4l-utils/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://people.atrpms.net/~hdegoede/
COMMENT= Video4Linux userspace library
LICENSE= gnu-gpl-v2
FORTIFY_SUPPORTED= no
GNU_CONFIGURE= yes
USE_GCC_RUNTIME= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake
CONFIGURE_ARGS+= --disable-libdvbv5
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --disable-v4l-utils
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
NEWHEADER!= ${GREP} V4L2_SEL_TGT_CROP /usr/include/sys/videoio.h > /dev/null 2>&1 || echo "no"
.endif
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly") && !exists(/usr/include/sys/videoio.h)
PLIST.needs_videoio= yes
INSTALLATION_DIRS+= include/sys
pre-configure:
${MKDIR} ${BUILDLINK_DIR}/include/sys
cp ${FILESDIR}/videoio.h ${BUILDLINK_DIR}/include/sys
post-install:
${INSTALL_DATA} ${FILESDIR}/videoio.h ${DESTDIR}${PREFIX}/include/sys
.elif (${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly") && ${NEWHEADER} == "no"
pre-configure:
${MKDIR} ${BUILDLINK_DIR}/include/sys
cp ${FILESDIR}/videoio.h ${BUILDLINK_DIR}/include/sys
.elif ${OPSYS} == "SunOS"
pre-configure:
${MKDIR} ${BUILDLINK_DIR}/include/linux
cp ${FILESDIR}/videodev2.h ${BUILDLINK_DIR}/include/linux
cp ${FILESDIR}/v4l2-controls.h ${BUILDLINK_DIR}/include/linux
.elif ${OPSYS} == "Linux" && !exists(/usr/include/linux/videodev.h)
pre-configure:
${MKDIR} ${BUILDLINK_DIR}/include/linux
cp ${FILESDIR}/videodev.h ${BUILDLINK_DIR}/include/linux
${LN} -sf ${BUILDLINK_DIR}/include/linux/videodev.h \
${BUILDLINK_DIR}/include/
cp ${FILESDIR}/videodev2.h ${BUILDLINK_DIR}/include/linux
${LN} -sf ${BUILDLINK_DIR}/include/linux/videodev2.h \
${BUILDLINK_DIR}/include/
.endif
PLIST_VARS= needs_videoio
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(CC_VERSION:Mgcc-1[0-9].*)
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600
.else
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=500
.endif
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|