summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-10-16 14:57:17 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-10-16 14:57:17 +0000
commitfea2fe3c5ce7a83fed31f9805244d2cfea1adcbe (patch)
treed1d989a43c75fe60bdf3e91b6e2793296f04afa5
parent- Remove WITH_APR_FROM_PORTS knob (diff)
- Use jpeg-mmx on i386
PR: ports/72557 Submitted by: Michael Johnson <ahze@ahze.net> (maintainer)
-rw-r--r--multimedia/libquicktime/Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/multimedia/libquicktime/Makefile b/multimedia/libquicktime/Makefile
index daa8da676e72..0e126e0476b0 100644
--- a/multimedia/libquicktime/Makefile
+++ b/multimedia/libquicktime/Makefile
@@ -8,6 +8,7 @@
PORTNAME= libquicktime
PORTVERSION= 0.9.3
+PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -48,12 +49,31 @@ PORTDOCS= codecs.html \
.include <bsd.port.pre.mk>
-.if defined(WITH_MMX) && (${ARCH} == "i386")
+.if ${ARCH} != "i386"
+WITHOUT_MMX= yes
+WITHOUT_JPEGMMX=yes
+.endif
+
+.if !defined(WITHOUT_MMX) && (${ARCH} == "i386")
CONFIGURE_ARGS+= --enable-mmx
.else
CONFIGURE_ARGS+= --disable-mmx
.endif
+.if !defined(WITHOUT_MMX) && !defined(WITHOUT_JPEGMMX)
+LIB_DEPENDS+= jpeg-mmx.62:${PORTSDIR}/graphics/jpeg-mmx
+.endif
+
+pre-everything::
+.if !defined(WITHOUT_MMX)
+ @${ECHO_MSG} "===> Define WITHOUT_MMX if your system does not support MMX"
+ @${ECHO_MSG} "===>"
+.endif
+.if !defined(WITHOUT_JPEGMMX)
+ @${ECHO_MSG} "===> Define WITHOUT_JPEGMMX to disable graphics/jpeg-mmx support"
+ @${ECHO_MSG} "===>"
+.endif
+
post-extract:
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
${WRKSRC}/plugins/audiocodec/* \