diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2004-09-03 21:48:56 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2004-09-03 21:48:56 +0000 |
commit | 7b30f2b5d4d9e680c391be6747799c17a245682c (patch) | |
tree | 0918fdc432706bb541d16c2899e870db9bb956d2 /multimedia/ffmpeg-devel | |
parent | b06683882ca742014334c5109f5eec55479f4f53 (diff) | |
download | ports-7b30f2b5d4d9e680c391be6747799c17a245682c.tar.gz ports-7b30f2b5d4d9e680c391be6747799c17a245682c.zip |
Fix build on gcc 3.4
Notes
Notes:
svn path=/head/; revision=118101
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 " |