aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/ffmpeg/Makefile
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2004-09-04 05:48:56 +0800
committerlofi <lofi@FreeBSD.org>2004-09-04 05:48:56 +0800
commit165c7cb45df29c3a40467fe64a9f9f6d7602c9f6 (patch)
treee9d2eb1bfba838d0fd81be89c15be6395890e802 /multimedia/ffmpeg/Makefile
parentfc5d0b38c776368188a9da726d0660a06c08bdb0 (diff)
downloadfreebsd-ports-gnome-165c7cb45df29c3a40467fe64a9f9f6d7602c9f6.tar.gz
freebsd-ports-gnome-165c7cb45df29c3a40467fe64a9f9f6d7602c9f6.tar.zst
freebsd-ports-gnome-165c7cb45df29c3a40467fe64a9f9f6d7602c9f6.zip
Fix build on gcc 3.4
Diffstat (limited to 'multimedia/ffmpeg/Makefile')
-rw-r--r--multimedia/ffmpeg/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile
index 311af3bd5356..96a7eb99b34f 100644
--- a/multimedia/ffmpeg/Makefile
+++ b/multimedia/ffmpeg/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 "