Lines 3-9
Link Here
|
3 |
PORTNAME= libvdpau |
3 |
PORTNAME= libvdpau |
4 |
PORTVERSION= 0.5 |
4 |
PORTVERSION= 0.5 |
5 |
CATEGORIES= multimedia |
5 |
CATEGORIES= multimedia |
6 |
MASTER_SITES= http://people.freedesktop.org/~aplattner/vdpau/ |
6 |
MASTER_SITES= http://cgit.freedesktop.org/~aplattner/libvdpau/snapshot/ |
7 |
|
7 |
|
8 |
MAINTAINER= ports@FreeBSD.org |
8 |
MAINTAINER= ports@FreeBSD.org |
9 |
COMMENT= VDPAU wrapper and tracing library |
9 |
COMMENT= VDPAU wrapper and tracing library |
Lines 11-38
Link Here
|
11 |
LICENSE= MIT |
11 |
LICENSE= MIT |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
|
13 |
|
14 |
USE_AUTOTOOLS= autoconf:env automake:env libtool:env |
14 |
USE_XZ= yes |
15 |
GNU_CONFIGURE= yes |
15 |
USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize |
|
|
16 |
ACLOCAL_ARGS= -I. |
17 |
AUTOMAKE_ARGS= --add-missing |
16 |
CONFIGURE_ARGS= --disable-documentation |
18 |
CONFIGURE_ARGS= --disable-documentation |
17 |
USE_GMAKE= yes |
|
|
18 |
USE_XORG= dri2proto xext |
19 |
USE_XORG= dri2proto xext |
19 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
20 |
|
21 |
|
21 |
.include <bsd.port.pre.mk> |
22 |
OPTIONS_DEFINE= DEBUG STRIP |
22 |
|
23 |
|
23 |
.if defined(WITH_DEBUG) |
24 |
.include <bsd.options.mk> |
|
|
25 |
|
26 |
.if ${PORT_OPTIONS:MDEBUG |
24 |
CFLAGS+= -DDEBUG |
27 |
CFLAGS+= -DDEBUG |
25 |
.endif |
28 |
.endif |
26 |
|
29 |
|
27 |
.if defined(STRIP) && ${STRIP} != "" |
30 |
.if {PORT_OPTIONS:MSTRIP} |
28 |
INSTALL_TARGET= install-strip |
31 |
INSTALL_TARGET= install-strip |
29 |
.endif |
32 |
.endif |
30 |
|
33 |
|
31 |
pre-configure: |
34 |
post-patch: .SILENT |
32 |
@cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ./autogen.sh |
|
|
33 |
|
34 |
post-patch: |
35 |
${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \ |
35 |
${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \ |
36 |
${WRKSRC}/Makefile.am |
36 |
${WRKSRC}/Makefile.am |
|
|
37 |
${REINPLACE_CMD} '/^export /d' ${WRKSRC}/doc/Makefile.am |
38 |
cd ${WRKSRC}/src && ${MV} vdpau_wrapper.cfg vdpau_wrapper.cfg.sample |
39 |
${REINPLACE_CMD} 's/vdpau_wrapper.cfg/&.sample/' \ |
40 |
${WRKSRC}/src/Makefile.am |
37 |
|
41 |
|
|
|
42 |
post-install: |
43 |
if [ ! -f ${PREFIX}/etc/vdpau_wrapper.cfg ]; then \ |
44 |
${INSTALL_DATA} ${PREFIX}/etc/vdpau_wrapper.cfg.sample \ |
45 |
${PREFIX}/etc/vdpau_wrapper.cfg; \ |
46 |
fi |
47 |
|
38 |
.include <bsd.port.post.mk> |
48 |
.include <bsd.port.post.mk> |