Ticket #17527: ffmpeg.diff
File ffmpeg.diff, 2.5 KB (added by takanori@…, 16 years ago) |
---|
-
files/patch-configure.diff
1 --- configure.orig 2008-08-04 15:43:25.000000000 -07002 +++ configure 2008-08-04 15:44:07.000000000 -07003 @@ - 1234,7 +1234,7 @@4 ;;5 darwin)6 disable need_memalign7 - SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress'8 + SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME) -Wl,-read_only_relocs,suppress'9 VHOOKSHFLAGS='-dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(SHLIBDIR)/vhook/$$(@F)'10 strip="strip -x"11 FFLDFLAGS="-Wl,-dynamic,-search_paths_first"1 --- ./configure.orig 2008-12-05 20:07:39.000000000 +0900 2 +++ ./configure 2008-12-05 22:44:48.000000000 +0900 3 @@ -975,7 +975,7 @@ 4 vhook="default" 5 6 # build settings 7 -add_cflags -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 8 +add_cflags -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_DARWIN_C_SOURCE 9 SHFLAGS='-shared -Wl,-soname,$$(@F)' 10 VHOOKSHFLAGS='$(SHFLAGS)' 11 FFSERVERLDFLAGS=-Wl,-E -
files/patch-libswscale-Makefile.diff
1 --- libswscale/Makefile (revision 27347)2 +++ libswscale/Makefile (working copy)3 @@ -1,5 +1,7 @@4 include $(SUBDIR)../config.mak5 6 +EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)7 +8 NAME = swscale9 FFLIBS = avutil10 -
Portfile
34 34 homepage http://ffmpeg.mplayerhq.hu/ 35 35 master_sites 36 36 distfiles 37 patchfiles patch-configure.diff 37 38 use_parallel_build yes 38 39 worksrcdir trunk 39 40 depends_build bin:svn:subversion port:gmake … … 155 156 } 156 157 157 158 variant avfilter requires gpl description {video filter support (replaces vhook)} { 158 patchfiles-append patch-libswscale-Makefile.diff \159 patch-configure.diff159 patchfiles-append avfilter/patch-libswscale-Makefile.diff \ 160 avfilter/patch-configure.diff 160 161 configure.args-append --enable-swscale --enable-avfilter 161 162 162 163 # keep vhook as long as avfilter isnt working fully