pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/ffmpeg o Disable debug compilation flags.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b31134eb4565
branches:  trunk
changeset: 476685:b31134eb4565
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Sat Jun 19 23:15:12 2004 +0000

description:
o Disable debug compilation flags.
o Honour USE_MMX.

diffstat:

 multimedia/ffmpeg/Makefile |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r c37223a39861 -r b31134eb4565 multimedia/ffmpeg/Makefile
--- a/multimedia/ffmpeg/Makefile        Sat Jun 19 22:07:52 2004 +0000
+++ b/multimedia/ffmpeg/Makefile        Sat Jun 19 23:15:12 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/05/26 11:14:33 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2004/06/19 23:15:12 xtraeme Exp $
 
 DISTNAME=      ffmpeg-0.4.8
 CATEGORIES=    multimedia net
@@ -16,8 +16,20 @@
                FFSERVER_CONF=${PKG_SYSCONFDIR}/ffserver.conf \
                LOCALBASE="${LOCALBASE}"
 
-CONFIGURE_ARGS=        --cc=${CC} --disable-grab --disable-mmx --prefix=${PREFIX}
-CONFIGURE_ARGS+=       --disable-vhook
+CONFIGURE_ARGS=                --cc=${CC} --disable-grab --prefix=${PREFIX}
+CONFIGURE_ARGS+=       --disable-vhook --disable-debug
+
+BUILD_DEFS+=           USE_MMX
+
+.include "../../mk/compiler.mk"
+
+.if !empty(MACHINE_ARCH:Mi386) && !empty(USE_MMX:M[Yy][Ee][Ss])
+.  if !empty(CC_VERSION:Mgcc*)
+CFLAGS+=       -fomit-frame-pointer
+.  endif
+.else
+CONFIGURE_ARGS+=       --disable-mmx
+.endif
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg \



Home | Main Index | Thread Index | Old Index