mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
03053661ac
- Use xz format archive - Preserve configuraton file - Remove uneeded dependency on gmake - Properly USE_AUTOTOOLS which implies GNU_CONFIGURE - Convert to optionsng - Bump PORTREVISION due to diffs in installed files - Take maintainership (submitter declined) PR: ports/171824 Submmitted by: Jan Beich <jbeich@tormail.org> Appproved by: tabthorpe (portmgr) Feature safe: yes
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libvdpau
|
|
PORTVERSION= 0.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://cgit.freedesktop.org/~aplattner/libvdpau/snapshot/
|
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
|
COMMENT= VDPAU wrapper and tracing library
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USE_XZ= yes
|
|
USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize
|
|
ACLOCAL_ARGS= -I.
|
|
AUTOMAKE_ARGS= --add-missing
|
|
CONFIGURE_ARGS= --disable-documentation
|
|
USE_XORG= dri2proto xext
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= DEBUG
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CFLAGS+= -D_DEBUG
|
|
.else
|
|
CFLAGS+= -DNDEBUG
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(STRIP) && ${STRIP} != ""
|
|
INSTALL_TARGET= install-strip
|
|
.endif
|
|
|
|
post-patch: .SILENT
|
|
${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
|
|
${WRKSRC}/Makefile.am
|
|
${REINPLACE_CMD} '/^export /d' ${WRKSRC}/doc/Makefile.am
|
|
cd ${WRKSRC}/src && ${MV} vdpau_wrapper.cfg vdpau_wrapper.cfg.sample
|
|
${REINPLACE_CMD} 's/vdpau_wrapper.cfg/&.sample/' \
|
|
${WRKSRC}/src/Makefile.am
|
|
|
|
post-install:
|
|
if [ ! -f ${PREFIX}/etc/vdpau_wrapper.cfg ]; then \
|
|
${INSTALL_DATA} ${PREFIX}/etc/vdpau_wrapper.cfg.sample \
|
|
${PREFIX}/etc/vdpau_wrapper.cfg; \
|
|
fi
|
|
|
|
.include <bsd.port.post.mk>
|