343c2bf2ae
pkgsrc changes: o Switch all mplayer packages to use multimedia/ffmpeg2 instead of the version bundled with MPlayer. This will make maintainership of mplayer packages probably a bit easier (and it's particular relevant when dealing vulnerability issues). Discussed with wiz@. o Adjust CONFIGURE_ARGS and other part of the Makefile* to reflect the switch to multimedia/ffmpeg2. Changes: 1.2.1: Fixes: * misc GUI fixes * fix build regression in FreeBSD * fix many crashes with fuzzed files * fix errors for multichannels files and pulseaudio >= 6 Other: * building with system FFmpeg libs is possible without a local copy of of private FFmpeg headers * docs building does not require FFmpeg anymore * FFmpeg updated to 2.8.5
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.100 2016/02/07 13:34:34 leot Exp $
|
|
|
|
PKGNAME= mplayer-${MPLAYER_VERSION}
|
|
|
|
COMMENT= Fast, cross-platform movie player
|
|
|
|
.include "../../multimedia/mplayer-share/Makefile.common"
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
CONFIGURE_ARGS+= --disable-mencoder
|
|
CONFIGURE_ARGS+= --confdir=${PREFIX}/share/mplayer
|
|
CONFIGURE_ARGS+= --enable-xvmc
|
|
CONFIGURE_ARGS+= --with-xvmclib=XvMCW
|
|
|
|
# Solaris/x86 has Xv, but the header files live in /usr/X11R6, not
|
|
# ${X11_BASE}, so we need to also look for headers in this path.
|
|
.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "i386"
|
|
CPPFLAGS+= -I/usr/X11R6/include
|
|
BUILDLINK_PASSTHRU_DIRS+= /usr/X11R6/include
|
|
.endif
|
|
|
|
INSTALLATION_DIRS+= bin
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mplayer ${DESTDIR}${PREFIX}/bin
|
|
|
|
.include "../../x11/libXScrnSaver/buildlink3.mk"
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
|
.include "../../x11/libXv/buildlink3.mk"
|
|
.include "../../x11/libXvMC/buildlink3.mk"
|
|
.include "../../x11/libXxf86dga/buildlink3.mk"
|
|
.include "../../x11/libXxf86vm/buildlink3.mk"
|
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
|
|
.include "../../multimedia/mplayer-share/Makefile.depends"
|
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|
|
.include "../../multimedia/mplayer-share/Makefile.cflags"
|