diff options
author | mm <mm@FreeBSD.org> | 2010-06-10 00:41:52 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2010-06-10 00:41:52 +0800 |
commit | 5e1b843150922239057f8ae3e96169504f24e517 (patch) | |
tree | a6ee3765c38a3fe2430f0d16844f00d52b922942 /multimedia/ffmpeg-devel | |
parent | f5e01a15d90d4c7ff7606679d8ea86eeff042ca0 (diff) | |
download | freebsd-ports-gnome-5e1b843150922239057f8ae3e96169504f24e517.tar.gz freebsd-ports-gnome-5e1b843150922239057f8ae3e96169504f24e517.tar.zst freebsd-ports-gnome-5e1b843150922239057f8ae3e96169504f24e517.zip |
- Fix CFLAGS
- Support SSSE3 without GCC44+ (devel/binutils only)
- Turn on SSSE3 support by default
Diffstat (limited to 'multimedia/ffmpeg-devel')
-rw-r--r-- | multimedia/ffmpeg-devel/Makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile index d8fd68df6614..1b4a7c99f591 100644 --- a/multimedia/ffmpeg-devel/Makefile +++ b/multimedia/ffmpeg-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= ffmpeg DISTVERSION= 2010-04-18 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia audio ipv6 net MASTER_SITES= http://people.freebsd.org/~mm/distfiles/ PKGNAMESUFFIX= -devel @@ -40,7 +40,7 @@ OPTIONS= AMR_NB "AMR Narrow Band encoder (opencore)" on \ SCHROEDINGER "Dirac codec via libschroedinger" on \ SDL "SDL support (build ffplay)" off \ SPEEX "Speex audio decoder" off \ - SSSE3 "Enable ssse3 support (gcc 4.4+)" off \ + SSSE3 "Enable ssse3 support" on \ THEORA "Theora encoder (implies OGG)" on \ VORBIS "Vorbis encoder via libvorbis (implies OGG)" on \ X264 "H.264 encoder" off \ @@ -108,13 +108,14 @@ DOC_DOCFILES= APIchanges avutil.txt faq.html ffmpeg-doc.html \ snow.txt soc.txt swscale.txt TODO PORTDOCS= * -.ifndef(WITHOUT_FFSERVER) -USE_RC_SUBR= ffserver +.if !defined(WITHOUT_SSSE3) +BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils +CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin +MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin .endif -.if defined(WITH_SSSE3) -USE_GCC= 4.4+ -BUILD_DEPENDS+= as:${PORTSDIR}/devel/binutils +.ifndef(WITHOUT_FFSERVER) +USE_RC_SUBR= ffserver .endif # sse hardware vector support @@ -146,10 +147,7 @@ MAN1+= ffserver.1 # optimizations .ifdef(WITH_OPTIMIZED_CFLAGS) -CFLAGS:= ${CFLAGS:N-O*} -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer -.else -CFLAGS:= ${CFLAGS:N-O0} -O2 -DEBUG_FLAGS+= -O2 +CFLAGS+= -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer .endif # amr |