aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libmovtar
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-05-14 16:15:34 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-05-14 16:15:34 +0000
commit152b51a663c51fd95f749c7042b495a3a57bdc91 (patch)
tree336574703f8ca13348f8d7298059f90bce093f3e /multimedia/libmovtar
parent0c870b3540118a7ad0918e82abfeb75b9bbface5 (diff)
downloadports-152b51a663c51fd95f749c7042b495a3a57bdc91.tar.gz
ports-152b51a663c51fd95f749c7042b495a3a57bdc91.zip
Notes
Diffstat (limited to 'multimedia/libmovtar')
-rw-r--r--multimedia/libmovtar/Makefile10
1 files changed, 9 insertions, 1 deletions
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 <bsd.port.pre.mk>
+
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 <bsd.port.mk>
+.include <bsd.port.post.mk>