Added
Link Here
|
1 |
# New ports collection makefile for: vdpau-video |
2 |
# Date created: 5 Jan 2011 |
3 |
# Whom: Anonymous |
4 |
# |
5 |
# $FreeBSD$ |
6 |
# |
7 |
|
8 |
PORTNAME= vdpau-video |
9 |
DISTVERSION= 0.7.3.pre2 |
10 |
CATEGORIES= multimedia |
11 |
MASTER_SITES= http://www.splitted-desktop.com/~gbeauchesne/${PORTNAME}/ |
12 |
|
13 |
MAINTAINER= swell.k@gmail.com |
14 |
COMMENT= A VDPAU-based backend for VAAPI |
15 |
|
16 |
LIB_DEPENDS= va.1:${PORTSDIR}/multimedia/libva \ |
17 |
vdpau.1:${PORTSDIR}/multimedia/libvdpau |
18 |
|
19 |
LICENSE= GPLv2 GPLv3 |
20 |
LICENSE_COMB= dual |
21 |
LICENSE_FILE_GPLv2=${WRKSRC}/COPYING |
22 |
|
23 |
USE_GMAKE= yes |
24 |
GNU_CONFIGURE= yes |
25 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" |
26 |
|
27 |
CPPFLAGS+= -I${LOCALBASE}/include |
28 |
|
29 |
.include <bsd.port.pre.mk> |
30 |
|
31 |
VDPAU_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} -m 1 pthread: | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE} |
32 |
|
33 |
.if !defined(WITH_DEBUG) |
34 |
CONFIGURE_ARGS+=--disable-debug |
35 |
.endif |
36 |
|
37 |
.if defined(STRIP) && ${STRIP} != "" |
38 |
INSTALL_TARGET= install-strip |
39 |
.endif |
40 |
|
41 |
post-patch: .SILENT |
42 |
${REINPLACE_CMD} -e '/LIBS/{ s/-ldl//; \ |
43 |
s/-lrt//; s/-lpthread/${PTHREAD_LIBS}/; }' \ |
44 |
-e 's|driverdir|& --define-variable prefix=${PREFIX}|' \ |
45 |
${WRKSRC}/configure |
46 |
${REINPLACE_CMD} 's/^vdpau.*LDFLAGS.*/& \ |
47 |
-Wl,-lc ${VDPAU_PTHREAD_LIBS:S/^/-Wl,/}/' \ |
48 |
${WRKSRC}/src/Makefile.in |
49 |
|
50 |
.include <bsd.port.post.mk> |