- Switch back to cgit snapshot

- 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
This commit is contained in:
Guido Falsi 2012-10-23 21:13:33 +00:00
parent d719dfcb04
commit 03053661ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306328
3 changed files with 32 additions and 15 deletions

View file

@ -2,37 +2,52 @@
PORTNAME= libvdpau
PORTVERSION= 0.5
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://people.freedesktop.org/~aplattner/vdpau/
MASTER_SITES= http://cgit.freedesktop.org/~aplattner/libvdpau/snapshot/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= madpilot@FreeBSD.org
COMMENT= VDPAU wrapper and tracing library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USE_AUTOTOOLS= autoconf:env automake:env libtool:env
GNU_CONFIGURE= yes
USE_XZ= yes
USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize
ACLOCAL_ARGS= -I.
AUTOMAKE_ARGS= --add-missing
CONFIGURE_ARGS= --disable-documentation
USE_GMAKE= yes
USE_XORG= dri2proto xext
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
OPTIONS_DEFINE= DEBUG
.if defined(WITH_DEBUG)
CFLAGS+= -DDEBUG
.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
pre-configure:
@cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ./autogen.sh
post-patch:
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>

View file

@ -1,2 +1,2 @@
SHA256 (libvdpau-0.5.tar.gz) = 1dba27b86c94c400d540df0cc5166fb683d1157794867627b5fe9febc96f5e4c
SIZE (libvdpau-0.5.tar.gz) = 478945
SHA256 (libvdpau-0.5.tar.xz) = d702305349e762efd56b2aa9fbaaeeb8d25836af6fb38cd20017e19637dcfe05
SIZE (libvdpau-0.5.tar.xz) = 127188

View file

@ -1,4 +1,6 @@
etc/vdpau_wrapper.cfg
@unexec if cmp -s %D/etc/vdpau_wrapper.cfg.sample %D/etc/vdpau_wrapper.cfg; then rm -f %D/etc/vdpau_wrapper.cfg; fi
etc/vdpau_wrapper.cfg.sample
@exec if [ ! -f %D/etc/vdpau_wrapper.cfg ]; then cp -p %D/%F %B/vdpau_wrapper.cfg; fi
include/vdpau/vdpau.h
include/vdpau/vdpau_x11.h
lib/libvdpau.la