pkgsrc/multimedia/mplayer/Makefile
bouyer e40f62ab58 Add -mstackrealign -mpreferred-stack-boundary=4 to CFLAGS on i386 for all
gcc 4.x versions. Fix mplayer coredumping on mp4 videos on netbsd-7.
Patch from John D. Baker
Bump PKGREVISION for all affected packages.
2014-12-03 15:08:02 +00:00

47 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.95 2014/12/03 15:08:02 bouyer Exp $
PKGNAME= mplayer-${MPLAYER_VERSION}
PKGREVISION= 4
COMMENT= Fast, cross-platform movie player
.include "../../multimedia/mplayer-share/Makefile.common"
USE_TOOLS+= pkg-config
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
BUILD_DEPENDS+= yasm-[0-9]*:../../devel/yasm
.endif
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"