pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mplayer-share Fix a pbulk scan failure. mpl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8465e52b5951
branches:  trunk
changeset: 538432:8465e52b5951
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Feb 08 10:17:26 2008 +0000

description:
Fix a pbulk scan failure. mplayer is only available with gcc, but
the Makefile.cflags naively checked the value of CC_VERSION which is
unset if we're not using gcc. Found with Solaris x86 and sunpro.

diffstat:

 multimedia/mplayer-share/Makefile.cflags |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r cf19826614b4 -r 8465e52b5951 multimedia/mplayer-share/Makefile.cflags
--- a/multimedia/mplayer-share/Makefile.cflags  Fri Feb 08 03:51:20 2008 +0000
+++ b/multimedia/mplayer-share/Makefile.cflags  Fri Feb 08 10:17:26 2008 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile.cflags,v 1.4 2007/09/06 18:31:00 abs Exp $
+# $NetBSD: Makefile.cflags,v 1.5 2008/02/08 10:17:26 tnn Exp $
 
 # This must be included after everything else to truly clear ${CFLAGS}
 # in the non-runtime-cpu-detection case. If ${CFLAGS} is non-empty, the
 # configure script refuses to add any optimizations at all.
 
 .if !empty(PKG_OPTIONS:Mmplayer-default-cflags)
-.  if ${MACHINE_ARCH} == i386
+.  if ${MACHINE_ARCH} == "i386" && !empty(PKGSRC_COMPILER:Mgcc)
 # Schedule for the typical machine fast enough to run mplayer. This
 # is nearly optimal for K6-2 as well. Anything slower will still run
 # (but would probably benefit greatly from turning off the run-time



Home | Main Index | Thread Index | Old Index