blob: bbe4046029bef3784eeda0220f00b095b9a761e8 (
plain) (
blame)
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
|
# Created by: Andrew Thompson <thompsa@FreeBSD.org>
# $FreeBSD$
PORTNAME= libv4l
PORTVERSION= 0.8.8
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://linuxtv.org/downloads/v4l-utils/
DISTNAME= v4l-utils-${PORTVERSION}
MAINTAINER= hselasky@FreeBSD.org
COMMENT= Video4Linux library
BUILD_DEPENDS= v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" LIBDIR="${PREFIX}/lib"
USE_BZIP2= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/lib
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|$$(LIBDIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
-e 's|-lrt||g' \
${WRKSRC}/libv4l1/Makefile \
${WRKSRC}/libv4l2/Makefile \
${WRKSRC}/libv4lconvert/Makefile
@${RM} ${WRKSRC}/../include/linux/videodev2.h
.include <bsd.port.post.mk>
|