aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-02-28 21:10:27 +0800
committerpav <pav@FreeBSD.org>2004-02-28 21:10:27 +0800
commitfacc29d0cd952bde9981bde90e37a68471e4279a (patch)
treee4b4a1127e0be0a248ccc2044e2de1b12fd6d284 /multimedia
parenta13dccd989ea54076fd2ea8b8edea0ef4b4c42df (diff)
downloadfreebsd-ports-gnome-facc29d0cd952bde9981bde90e37a68471e4279a.tar.gz
freebsd-ports-gnome-facc29d0cd952bde9981bde90e37a68471e4279a.tar.zst
freebsd-ports-gnome-facc29d0cd952bde9981bde90e37a68471e4279a.zip
- Add WITH_SSE and WITHOUT_MMX knobs
PR: ports/63417 Submitted by: michael johnson <ahze@ahze.net>
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libfame/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/libfame/Makefile b/multimedia/libfame/Makefile
index 0feffb05d59b..0d45dac33ca1 100644
--- a/multimedia/libfame/Makefile
+++ b/multimedia/libfame/Makefile
@@ -18,10 +18,29 @@ COMMENT= A video encoding library
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
+.if !defined(WITH_SSE)
+CONFIGURE_ARGS+= --enable-sse
+.endif
+
+.if defined(WITHOUT_MMX)
+CONFIGURE_ARGS+= --disable-mmx
+.endif
+
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN3= fame_close.3 fame_encode_frame.3 fame_get_object.3 fame_init.3 \
fame_open.3 fame_register.3 fame_unregister.3 fame_encode_slice.3 \
fame_start_frame.3 fame_end_frame.3
+pre-everything::
+.if !defined(WITHOUT_SSE)
+ @${ECHO_MSG} " You can enable SSE optimized routines by defining WITH_SSE."
+ @${ECHO_MSG} ""
+.endif
+
+.if !defined(WITHOUT_MMX)
+ @${ECHO_MSG} " You can disable MMX optimized routines by defining WITHOUT_MMX."
+ @${ECHO_MSG} ""
+.endif
+
.include <bsd.port.mk>