Index: mplayer/Makefile =================================================================== RCS file: /cvsroot/pkgsrc/multimedia/mplayer/Makefile,v retrieving revision 1.69 diff -u -r1.69 Makefile --- mplayer/Makefile 24 Jan 2010 13:26:11 -0000 1.69 +++ mplayer/Makefile 7 Aug 2010 22:24:18 -0000 @@ -18,6 +18,18 @@ CONFIGURE_ARGS+= --disable-mencoder CONFIGURE_ARGS+= --confdir=${PREFIX}/share/mplayer +# Avoid crash with system include file: +.if !empty(MACHINE_PLATFORM:MNetBSD-*-arm) +pre-patch: + mv ${WRKSRC}/libavutil/arm/bswap.h ${WRKSRC}/libavutil/arm/avutil-bswap.h + +SUBST_CLASSES+= arm_bswap +SUBST_STAGE.arm_bswap= pre-configure +SUBST_FILES.arm_bswap= libavutil/bswap.h +SUBST_SED.arm_bswap= -e s,\"arm/bswap.h\",\"arm/avutil-bswap.h\",g +SUBST_MESSAGE.arm_bswap= Fixing arm/bswap.h in libavutil confusion +.endif + # 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"