2012-10-06 16:10:39 +02:00
|
|
|
# $NetBSD: Makefile,v 1.8 2012/10/06 14:11:06 asau Exp $
|
2008-09-08 21:07:41 +02:00
|
|
|
|
|
|
|
DISTNAME= libv4l-0.4.3
|
2009-01-10 22:04:22 +01:00
|
|
|
PKGREVISION= 2
|
2008-09-08 21:07:41 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://people.atrpms.net/~hdegoede/
|
|
|
|
|
2009-03-18 14:29:07 +01:00
|
|
|
MAINTAINER= tech-multimedia@NetBSD.org
|
2008-09-08 21:07:41 +02:00
|
|
|
HOMEPAGE= http://people.atrpms.net/~hdegoede/
|
|
|
|
COMMENT= Video4Linux userspace library
|
|
|
|
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
|
2008-09-17 16:04:54 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2010-12-27 05:58:10 +01:00
|
|
|
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly") \
|
|
|
|
&& !exists(/usr/include/sys/videoio.h)
|
2008-09-17 16:04:54 +02:00
|
|
|
PLIST.needs_videoio= yes
|
|
|
|
INSTALLATION_DIRS+= include/sys
|
|
|
|
|
|
|
|
pre-configure:
|
2009-01-14 12:27:34 +01:00
|
|
|
${MKDIR} ${BUILDLINK_DIR}/include/sys
|
|
|
|
cp ${FILESDIR}/videoio.h ${BUILDLINK_DIR}/include/sys
|
|
|
|
cp ${FILESDIR}/videodev.h ${BUILDLINK_DIR}/include
|
2008-09-17 16:04:54 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/videoio.h ${DESTDIR}${PREFIX}/include/sys
|
2009-01-10 22:04:22 +01:00
|
|
|
.elif !exists(/usr/include/linux/videodev.h)
|
|
|
|
pre-configure:
|
2009-01-14 12:27:34 +01:00
|
|
|
${MKDIR} ${BUILDLINK_DIR}/include
|
|
|
|
cp ${FILESDIR}/videodev.h ${BUILDLINK_DIR}/include/videodev.h
|
2008-09-08 21:07:41 +02:00
|
|
|
.endif
|
|
|
|
|
2008-09-17 16:04:54 +02:00
|
|
|
PLIST_VARS= needs_videoio
|
|
|
|
|
2012-04-18 19:47:22 +02:00
|
|
|
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
|
|
|
|
|
2008-09-08 21:07:41 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|