blob: 5b79a2c10e59c10b13af7e502a4a3242786f57e1 (
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
|
# $NetBSD: Makefile,v 1.17 2018/08/05 10:54:58 rjs Exp $
DISTNAME= libv4l-0.4.3
PKGREVISION= 3
CATEGORIES= graphics
#MASTER_SITES= http://people.atrpms.net/~hdegoede/
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://people.atrpms.net/~hdegoede/
COMMENT= Video4Linux userspace library
LICENSE= gnu-gpl-v2
USE_GCC_RUNTIME= yes
USE_TOOLS+= gmake
.include "../../mk/bsd.prefs.mk"
.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
cp ${FILESDIR}/videodev.h ${BUILDLINK_DIR}/include
post-install:
${INSTALL_DATA} ${FILESDIR}/videoio.h ${DESTDIR}${PREFIX}/include/sys
.elif !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/
.endif
PLIST_VARS= needs_videoio
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-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"
|