Added
Link Here
|
1 |
# New ports collection makefile for: libva |
2 |
# Date created: 5 Jan 2011 |
3 |
# Whom: Anonymous |
4 |
# |
5 |
# $FreeBSD$ |
6 |
# |
7 |
|
8 |
PORTNAME= libva |
9 |
PORTVERSION= 1.0.6 |
10 |
CATEGORIES= multimedia |
11 |
MASTER_SITES= http://cgit.freedesktop.org/${PORTNAME}/snapshot/ |
12 |
|
13 |
MAINTAINER= swell.k@gmail.com |
14 |
COMMENT= VAAPI wrapper and dummy driver |
15 |
|
16 |
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat |
17 |
LIB_DEPENDS= drm.2:${PORTSDIR}/graphics/libdrm |
18 |
|
19 |
LICENSE= MIT |
20 |
LICENSE_FILE= ${WRKSRC}/COPYING |
21 |
|
22 |
USE_BZIP2= yes |
23 |
USE_XORG= xext xfixes |
24 |
USE_GL= gl |
25 |
USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize |
26 |
ACLOCAL_ARGS= -I. |
27 |
AUTOMAKE_ARGS= --add-missing |
28 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" |
29 |
CONFIGURE_ARGS= --program-prefix=va |
30 |
USE_LDCONFIG= yes |
31 |
|
32 |
CPPFLAGS+= -I${LOCALBASE}/include |
33 |
# prevent types conflict: videodev2.h vs. drm.h |
34 |
CFLAGS+= -DHAVE_LINUX_INTEGER_TYPES |
35 |
|
36 |
.include <bsd.port.pre.mk> |
37 |
|
38 |
.if !defined(WITH_DEBUG) |
39 |
CFLAGS+= -DNDEBUG |
40 |
.else |
41 |
CFLAGS+= -D_DEBUG |
42 |
.endif |
43 |
|
44 |
.if defined(STRIP) && ${STRIP} != "" |
45 |
INSTALL_TARGET= install-strip |
46 |
.endif |
47 |
|
48 |
post-patch: .SILENT |
49 |
${REINPLACE_CMD} -e 's|\($$libdir\)/dri|\1/va|' \ |
50 |
-e 's|$${libdir}/\(pkgconfig\)|$${prefix}/libdata/\1|' \ |
51 |
${WRKSRC}/configure.ac |
52 |
${REINPLACE_CMD} 's/va\(info\)/\1/' ${WRKSRC}/test/Makefile.am |
53 |
${REINPLACE_CMD} 's/-ldl//' ${WRKSRC}/va/Makefile.am |
54 |
${REINPLACE_CMD} 's/dummy.*LDFLAGS.*/& -Wl,-lc/' \ |
55 |
${WRKSRC}/dummy_drv_video/Makefile.am |
56 |
${REINPLACE_CMD} 's/-pthread/${PTHREAD_LIBS}/' \ |
57 |
${WRKSRC}/i965_drv_video/Makefile.am \ |
58 |
${WRKSRC}/test/putsurface/Makefile.am |
59 |
|
60 |
.include <bsd.port.post.mk> |