diff options
Diffstat (limited to 'multimedia/ffmpeg-devel')
-rw-r--r-- | multimedia/ffmpeg-devel/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile index 311af3bd5356..96a7eb99b34f 100644 --- a/multimedia/ffmpeg-devel/Makefile +++ b/multimedia/ffmpeg-devel/Makefile @@ -133,13 +133,25 @@ LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame CONFIGURE_ARGS+= --enable-mp3lame .endif ## optimization -.ifdef(WITH_OPTIMIZED_CFLAGS) +.if ${OSVERSION} > 502124 +. ifdef(WITH_OPTIMIZED_CFLAGS) CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \ -I${X11BASE}/include \ - -ffast-math -fomit-frame-pointer" \ + -ffast-math -fomit-frame-pointer -fno-unit-at-a-time" \ --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm" +. else +CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \ + -I${X11BASE}/include -fno-unit-at-a-time" \ + --disable-opts \ + --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm " +. endif .else CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \ + -I${X11BASE}/include \ + -ffast-math -fomit-frame-pointer" \ + --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm" +. else +CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \ -I${X11BASE}/include" \ --disable-opts \ --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm " |