blob: 261007ea00a27191635ac77000b248e55c594fdc (
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
|
# $NetBSD: Makefile,v 1.4 2009/01/14 11:27:34 obache Exp $
DISTNAME= libv4l-0.4.3
PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://people.atrpms.net/~hdegoede/
MAINTAINER= jmcneill@NetBSD.org
HOMEPAGE= http://people.atrpms.net/~hdegoede/
COMMENT= Video4Linux userspace library
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && !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
cp ${FILESDIR}/videodev.h ${BUILDLINK_DIR}/include/videodev.h
.endif
PLIST_VARS= needs_videoio
.include "../../mk/bsd.pkg.mk"
|