From 152b51a663c51fd95f749c7042b495a3a57bdc91 Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Wed, 14 May 2003 16:15:34 +0000 Subject: Fix build on alpha ARCH: emms asm opcode should be noop in non-i386 non-MMX ARCH --- multimedia/libmovtar/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/multimedia/libmovtar/Makefile b/multimedia/libmovtar/Makefile index 3c12f54c451f..b9c1107145ff 100644 --- a/multimedia/libmovtar/Makefile +++ b/multimedia/libmovtar/Makefile @@ -29,6 +29,8 @@ MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config +.include + post-patch: @${REINPLACE_CMD} -e 's|SDL/|SDL11/|' \ ${WRKSRC}/rtjpeg/rtjshow.c \ @@ -36,5 +38,11 @@ post-patch: @${REINPLACE_CMD} -E -e 's|^(LIBS="-ljpeg )|\1 -L${LOCALBASE}/lib|; \ s|(LIBS -ljpeg)"|\1 -L${LOCALBASE}/lib"|' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} +.if ${ARCH} != "i386" +# emms opcode should be noop in non-i386 non-MMX ARCH + @${REINPLACE_CMD} -E \ + -e 's|^.*"emms".*$$||' \ + ${WRKSRC}/movtar_play.c +.endif -.include +.include -- cgit v1.2.3