pkgsrc/graphics/libv4l/Makefile

38 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2012/10/06 14:11:06 asau Exp $
DISTNAME= libv4l-0.4.3
PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://people.atrpms.net/~hdegoede/
MAINTAINER= tech-multimedia@NetBSD.org
HOMEPAGE= http://people.atrpms.net/~hdegoede/
COMMENT= Video4Linux userspace library
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
cp ${FILESDIR}/videodev.h ${BUILDLINK_DIR}/include/videodev.h
.endif
PLIST_VARS= needs_videoio
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
.include "../../mk/bsd.pkg.mk"