343c2bf2ae
pkgsrc changes: o Switch all mplayer packages to use multimedia/ffmpeg2 instead of the version bundled with MPlayer. This will make maintainership of mplayer packages probably a bit easier (and it's particular relevant when dealing vulnerability issues). Discussed with wiz@. o Adjust CONFIGURE_ARGS and other part of the Makefile* to reflect the switch to multimedia/ffmpeg2. Changes: 1.2.1: Fixes: * misc GUI fixes * fix build regression in FreeBSD * fix many crashes with fuzzed files * fix errors for multichannels files and pulseaudio >= 6 Other: * building with system FFmpeg libs is possible without a local copy of of private FFmpeg headers * docs building does not require FFmpeg anymore * FFmpeg updated to 2.8.5
24 lines
895 B
Text
24 lines
895 B
Text
# $NetBSD: Makefile.cflags,v 1.8 2016/02/07 13:34:33 leot 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" && !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
|
|
# cpu detection).
|
|
|
|
. include "../../mk/compiler.mk"
|
|
|
|
. if !empty(CC_VERSION:Mgcc-4*)
|
|
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer -mtune=pentiumpro
|
|
. else
|
|
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer -mcpu=pentiumpro
|
|
. endif
|
|
. else
|
|
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer
|
|
. endif
|
|
.endif
|