freebsd-ports/multimedia/libv4l/Makefile
Koop Mast a6873e4cca Update to 0.6.4.
Fix build on 6.x [1]

Submitted by:	pointyhat (via pav) [1]
Approved by:	maintainer
2010-01-21 15:12:03 +00:00

38 lines
980 B
Makefile

# Ports collection makefile for: libv4l
# Date created: 13 January 2010
# Whom: Andrew Thompson <thompsa@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libv4l
PORTVERSION= 0.6.4
CATEGORIES= multimedia
MASTER_SITES= http://people.fedoraproject.org/~jwrdegoede/
MAINTAINER= hselasky@FreeBSD.org
COMMENT= Video4Linux library
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" LIBDIR="${PREFIX}/lib"
USE_GZIP= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} < 700000
@${REINPLACE_CMD} -e 's|-fvisibility=hidden||g' -e 's|-lrt||g' \
${WRKSRC}/libv4l1/Makefile \
${WRKSRC}/libv4l2/Makefile \
${WRKSRC}/libv4lconvert/Makefile
.endif
@${REINPLACE_CMD} -e 's|$$(LIBDIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
${WRKSRC}/libv4l1/Makefile \
${WRKSRC}/libv4l2/Makefile \
${WRKSRC}/libv4lconvert/Makefile
.include <bsd.port.post.mk>